Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing the "Also purchase" box below the product info..??


Prilum

Recommended Posts

I want to remove the "Customers who purchased this product, also purchased"-box that appear below the pruduct info box.

 

I have searched the forum and scrolled it page for page for an answer for 2 hours now and I give up... :'(

 

If the answer for this layout problem of mine already exist, please link me to the correct topic. ;)

(but all I have seen is how to optimize this module)

 

At the bottom of the product_info.php file, I have tried to remove (and also comment out) the code:

 

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

 

But then the page would go totally blank.

 

I'll be very thankful for some help in this matter!!!?

Link to comment
Share on other sites

You were on the right track, you just need to leave that last curly bracket } there, it needs that one or else it wipes out the whole thing.

 

So you can comment out (or remove) this

 

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

 

 

...and leave that other curly bracket under it intact...that will work.

Link to comment
Share on other sites

Maaan.... I knew there must be something I missed...

 

But..hey.. must have something to do 2 am, right?! :D

sometimes one really need a third eye.

 

Thanks alot! worked perfectly!! ;)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...