Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Customers who bought this product also purchased


toto46

Recommended Posts

Posted

HI

I do not want this section Customers who bought this product also purchased to show below the products (in fact not at all)

so in product_info.php i found this piece of code and deleted it

 

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

 

but I get an error message

Parse error: syntax error, unexpected $end in /var/www/apache2-default/mysite.com/catalog/product_info.php on line 277

 

On line 22t I have

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

?!?

 

I have had a good look at this and can not see what the problem is, if somebody can point me in the right direction, thanks

 

Philip

Posted

Ok I am replying to my own post here as I just realized what what was wrong

the above code needs to be replaced with

 

<?php
}
?> 

 

Not sure why. but would like to know I have never seen this before..

Posted

Ok I am replying to my own post here as I just realized what what was wrong

the above code needs to be replaced with

 

<?php
}
?> 

 

Not sure why. but would like to know I have never seen this before..

For each

{

you must have a

}

If you look at your code above you will notice you have one more } than { which means unexpected $end error.

Archived

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

×
×
  • Create New...