Jump to content
Sign in to follow this  
negativeexistence

also_purchased_products

Recommended Posts

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×