Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

also_purchased_products


negativeexistence

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...