Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove Also Purchased


Guest

Recommended Posts

Hi

I want to remove the 'also purchased' code from product_info.php, but apparently it isn't straightfoward!

Could someone please advise how you do this?

 

 

Many thanks.

Link to comment
Share on other sites

No, it's simple. Here's the code:

<?php
if ((USE_CACHE == 'true') && empty($SID)) {
  echo tep_cache_also_purchased(3600);
} else {
  include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
}
 }
?>

Link to comment
Share on other sites

Hi

I want to remove the 'also purchased' code from product_info.php, but apparently it isn't straightfoward!

Could someone please advise how you do this?

Many thanks.

 

 

In product_info.php look for this code:

 

 <?php
if ((USE_CACHE == 'true') && empty($SID)) {
  echo tep_cache_also_purchased(3600);
} else {
  include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
}
 }
?>

 

and comment out using 2 backslashes, such as:

 

<?php
if ((USE_CACHE == 'true') && empty($SID)) {
  echo tep_cache_also_purchased(3600);
} else {
  //include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
}
 }
?>

 

or you can remove the code altogether. Comment out if you want to use this code later.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...