Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem With icecat


Zahir

Recommended Posts

Hej I get this error

when I put this filove

 

<?php

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_also_purchased(3600);

} else {

include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);

}

}

// ELSE FOR ICECAT IF : if ICEcat page exists & it's good - show it in frame

 

line 241 }else{

 

echo '<tr><td><iframe frameborder=0 width="780px" height="900px"

src="'.$url.'"></iframe></td></tr>';

}

// ICECAT CODE ENDS HERE

?>

</td>

</tr>

</table></form></td>

 

Parse error: syntax error, unexpected '}' in /home/xxxxxxxxx/public_html/product_info.php on line 241

 

Can someone help me.

Link to comment
Share on other sites

  • 8 months later...

Count your { and } pairs. You have an extra } on the line before }else{. Actually, your code assumes that there are two open { when you hit }else{. It didn't complain about the first }, so presumably you had just one { open at the start of the code you gave.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...