Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to properly delete Also Purchased Product??


johnnyosc

Recommended Posts

How do you properly delete the Also Purchase Product modules from the product_info.php? I tried to delete the code in the product_info but i get a parse error message. Do I have to delete some other kind of code as well in another file??? Please advise. Thanks.

 

Johnnyosc

Link to comment
Share on other sites

What version of OSC are you using? I am using fully loaded 4 and the fix for my product_info.php file is:

 

Located the following code @ roughly Line 300:

 

<tr>

 <td><br>

   <?php

     if ( (USE_CACHE == 'true') && !SID) {

       echo tep_cache_also_purchased(3600);

     } else {

       include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);

     }

   }

   ?>

 </td>

</tr>

 

Replace this with:

<?php } ?>

 

That fixes it just fine for me. If your product_info.php is different to this, please disregard - but i'm pretty sure your parse error is because your deleting the very last } and therefore aren't closing an open statement.

 

HTH

Regards, Jay.

Link to comment
Share on other sites

  • 3 years later...
What version of OSC are you using? I am using fully loaded 4 and the fix for my product_info.php file is:

Located the following code @ roughly Line 300:

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

Replace this with:

<?php } ?>

That fixes it just fine for me. If your product_info.php is different to this, please disregard - but i'm pretty sure your parse error is because your deleting the very last } and therefore aren't closing an open statement.

HTH

 

This worked for me:

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...