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
go to shopping_cart.php and comment out the echo statement around line 134 as below
go to includes/header.php file and comment out the echo statement at around line 23 as below
8.)Remove(Hide) the Price on product info page if it is 0
with this one
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
5.)To remove 'Add to cart' button from product reviews page in osCommerce go to4.)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'); ?>
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' buttongo 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 osCommercego 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
below statement
echo $products_price;
with this one
echo (($product_info['products_price'] > 0) ? $products_price :
'');
Also if you do not want the prices listed on the main page when the manufacturer or category is selected, You need to comment out the following line in index.php.
ReplyDelete'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,
with //'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,
great stuff. thanks.
ReplyDeletestill working thanks!!!
ReplyDelete