negativeexistence Posted December 19, 2008 Share Posted December 19, 2008 Hello, I have been trying to figure out how to replace the "product not found" with the also_purchased_products module. I have had no luck... I think the code to replace is in .../Catalog/product_info.php <?php if ($product_check['total'] < 1) { ?> <tr> <td><?php new infoBox(array(array('text' => TEXT_PRODUCT_NOT_FOUND))); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> replaced with something like: <?php if ($product_check['total'] < 1) { ?> <tr> <td><?php if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } } ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> What I would like to accomplish: When a customer searches for an item that is out of stock, the website will then display the items that previous Customers, who bought this product, additionally purchased. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.