yubnub Posted December 7, 2007 Posted December 7, 2007 Hi, i am having trouble in getting my product info.php file to display correctly. The problem all seems to be related to a contribution i recently installed. i have added a the following code to the product info page <?php //*** <Cross-Sell Mod> if ( (USE_CACHE == 'true') && !SID) { // echo tep_cache_cross_sell_products(3600); // echo '<br />'; //*** </Cross-Sell Mod> // echo tep_cache_also_purchased(3600); // } else { //*** <Cross-Sell Mod> include(DIR_WS_MODULES . FILENAME_CROSS_SELL_PRODUCTS); // echo '<br />'; // include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); //*** </Cross-Sell Mod> } } ?> As you can see i have commented out most of the lines as i do not run the also purchased module With the code as it is above the product info page displays correctly (as long as the product you are viewing has cross sell products linked to it) If you then view a page that has not had any cross sell products linked to it (by me in admin) then the page goes a bit weird. Here is a link to a good page, from here click on another product and see what happens. http://www.scub adivingstore.co.uk/suunto-gekko-free-delivery-p-75.html (remove the spaces) If i comment out the two remaining lines from the code box above then everything works fine (although not displaying my cross sell box!) could the above code be changed so it only includes the cross sell file IF that product has items linked to it. hope this makes sense, thanks for your looking at this
Recommended Posts
Archived
This topic is now archived and is closed to further replies.