Sunday, June 3, 2012

Disable Shopping Cart functionality from oscommerce/Use osCommerce as catalog application

If you need to use osCommerce as a catalog(Displaying Product) application rather then fully shopping cart below changes will be required.


1.) go to Admin/Configuration/mystore/ and set 'Display Cart After Adding Product' false.
2.) go to Admin/Modules/Boxes and set 'Shopping Cart' false.
3.) To remove the 'Buy Now' button from  osCommerce v2.3.1
     GoTo Admin Panel/configuration/Product Listing
     select the line 'Display Buy Now Column' edit it and set the value '0'
4.)To remove 'Add to Cart' Button  from Product Description in osCommerce v2.3.1
    Open File 'Product_info.php' and comment out the echo statement at around line no. 194 as below.

<?php //echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?>
5.)To remove 'Add to cart' button  from product reviews page in osCommerce go to
   product_reviews.php and comment out the echo statement at around line 65 as below

<?php// echo tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', 

tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array

('action')) . 'action=buy_now')); ?>
6.) To remove 'checkout' button
        go to shopping_cart.php and comment out the echo statement around line 134 as below


<?php //echo tep_draw_button

(IMAGE_BUTTON_CHECKOUT, 'triangle-1-e', tep_href_link

(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary'); ?>
7.)To remove CartContents,Checkout,Myaccount button from Top header in main page of osCommerce
go to includes/header.php file and comment out the echo statement at around line 23 as below



// echo tep_draw_button(HEADER_TITLE_CART_CONTENTS . ($cart-

>count_contents() > 0 ? ' (' . $cart->count_contents() . ')' : ''), 

'cart', tep_href_link(FILENAME_SHOPPING_CART)) .

8.)Remove(Hide) the Price on product info page if it is 0
   go to Product_info.php and on line 58 replace
    below statement


echo $products_price;

with this one

echo (($product_info['products_price'] > 0) ? $products_price : 

'');

Disable Shopping Cart in osCommerce

1.) go to Admin/Configuration/mystore/ and set 'Display Cart After Adding Product' false


2.) go to Admin/Modules/Boxes and set 'Shopping Cart' false

Remove(Hide) the Price on product description if it is 0 in osCommerce

Remove(Hide) the Price on product info page if it is 0
go to Product_info.php and on line 58 replace
below statement


echo $products_price;

with this one

echo (($product_info['products_price'] > 0) ? $products_price : 

'');

Remove CartContents,Checkout,Myaccount button from Top header in main page of osCommerce

To remove CartContents,Checkout,Myaccount button from Top header in main page of osCommerce
go to includes/header.php file and comment out the echo statement at around line 23 as below



// echo tep_draw_button(HEADER_TITLE_CART_CONTENTS . ($cart-

>count_contents() > 0 ? ' (' . $cart->count_contents() . ')' : ''), 

'cart', tep_href_link(FILENAME_SHOPPING_CART)) .

Remove 'Add to cart' button from product reviews page in osCommerce

To remove 'Add to cart' button  from product reviews page in osCommerce go to
product_reviews.php and comment out the echo statement at around line 65 as below


<?php// echo tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', 

tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array

('action')) . 'action=buy_now')); ?>

Remove 'Checkout ' Button from Shopping Cart in osCommerce

To remove 'checkout' button
go to shopping_cart.php and comment out the echo statement around line 134 as below


<?php //echo tep_draw_button

(IMAGE_BUTTON_CHECKOUT, 'triangle-1-e', tep_href_link

(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary'); ?>

Saturday, June 2, 2012

Remove 'Add to Cart ' Button from Product Description in osCommerce

To remove 'Add to Cart' Button  from Product Description in osCommerce v2.3.1
Open File 'Product_info.php' and comment out the echo statement at around line no. 194 as below.



<?php //echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?>

Remove 'Buy Now' Button while browsing categories in osCommerce

 To remove the 'Buy Now' button from  osCommerce v2.3.1


GoTo Admin Panel/configuration/Product Listing
select the line 'Display Buy Now Column' edit it and set the value '0'