Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove:Customers who bought this product also purc


Guest

Recommended Posts

Posted

Good afternoon everyone,

 

I was wondering how i can remove the "Customers who bought this product also purchased" Box on the bottom of some products?

 

Thank You!

 

-Deepshock

Posted

Comment out the call to that module in index.php.

Your online success is Paramount.

Posted

This is what you should be looking for on product_info.php not index.php

 

<?php

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_also_purchased(3600);

} else {

include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);

}

}

?>

 

To remove it I believe you still have to leave

<?php

}

?>

Because one of the } has to do with another piece of code.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Posted

OK,

 

I want to do the opposite. I would like to add this box into another page, but i keep getting an error. The page I want to add it to is shopping_cart.php.

 

Any one know how or where I drop the code?

 

 

Cheers

 

Neil

Posted
OK,

 

I want to do the opposite. I would like to add this box into another page, but i keep getting an error. The page I want to add it to is shopping_cart.php.

 

Any one know how or where I drop the code?

Cheers

 

Neil

 

well, also purchased expects a product id in the url (GET) and when in the shopping cart that is not present. Instead it gets the products id's from the cart object.

 

So you need to decide which product in the cart you wish to process this on and set that as the $_GET['products_id'] so that the module will process correctly. If you want to do all products in the cart then you need to revise the also purchased box because currently it only takes 1 product and for very good (performance) reasons.

Treasurer MFC

Archived

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

×
×
  • Create New...