Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

removing the "add to cart" button


johnduo0007

Recommended Posts

In product_info.php you can just comment it out

 

<?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?>

 

to

 

<?php //echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?>

 

Just add the //

 

I think it is also on another page but I can't remember which one. It might be modules/product_listing.php

Link to comment
Share on other sites

In product_info.php you can just comment it out

 

<?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?>

 

to

 

<?php //echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?>

 

Just add the //

 

I think it is also on another page but I can't remember which one. It might be modules/product_listing.php

 

 

Thanks Peter, that // seems to do it!

Link to comment
Share on other sites

It also makes it easy to add back in if you change your mind. You might try and search the contributions also for something that might add a contact section to the product pages to make it easy for customers. I am not sure if it exists but would be worth looking for.

Link to comment
Share on other sites

It also makes it easy to add back in if you change your mind. You might try and search the contributions also for something that might add a contact section to the product pages to make it easy for customers. I am not sure if it exists but would be worth looking for.

 

I will check into that contribution, sounds like something I would need. Do you know how I can remove the add to cart in the index.php? I can't seem to find anything there. I think it is "nested" in the index page but can't seem to find it.

Link to comment
Share on other sites

I will check into that contribution, sounds like something I would need. Do you know how I can remove the add to cart in the index.php? I can't seem to find anything there. I think it is "nested" in the index page but can't seem to find it.

 

It is probably NOT on the index page but in the modules folder under new_products.php or something like that. If it is on your category pages try modules/product_listing.php

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...