Guest Posted August 17, 2005 Posted August 17, 2005 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
♥yesudo Posted August 18, 2005 Posted August 18, 2005 Comment out the call to that module in index.php. Your online success is Paramount.
Wendy James Posted August 18, 2005 Posted August 18, 2005 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.
♥yesudo Posted August 18, 2005 Posted August 18, 2005 Comment out the call to that module in index.php. <{POST_SNAPBACK}> whoops - I meant product_info.php. Your online success is Paramount.
dunlavy Posted August 19, 2005 Posted August 19, 2005 Well, well, well... as soon as someone asks something I know, I get beat to the answer. Yeah.
♥yesudo Posted August 19, 2005 Posted August 19, 2005 Thx Fellas ;) -Deepshock <{POST_SNAPBACK}> Something you are not telling us Wendy James ? Your online success is Paramount.
Guest Posted August 22, 2005 Posted August 22, 2005 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
boxtel Posted August 22, 2005 Posted August 22, 2005 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 <{POST_SNAPBACK}> 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.