X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Help !!! Parse Error in my template (https://forum.x-cart.com/showthread.php?t=5643)

mysoftware 12-17-2003 06:52 AM

Help !!! Parse Error in my template
 
I have try to add in some custom field to be display in products detail, initially it works, then I am not sure why it come out some parse error, I try to replace with original files, it still does not work.

the file I touch was in skin\module\extrafield\product.tpl
But when I can't find the following files in the template,it was empty in the templates_c\431\ directory..

What could have gone wrong ? Please advice me, really need help as I am not familiar with php.

Error message encounter :

Parse error: parse error in /shop/templates_c/%%431/%%431887105/product.tpl.php on line 88

When I open any products detail information in
shop/customer/product.php?productid=16140&cat=&page=

thanks in advance !

shan 12-17-2003 07:15 AM

try and run yoursite.com/xcartdir/cleanup.php or run the cleanup option from the general settings of your admin area to clear the cache once you have restored the file you changed

mysoftware 12-17-2003 07:42 AM

thanks for the help, I have use the cleanup.php as you mentioned, it clean up, but he same error still appear.

Is there any other files I should look into ?
any other possible advice would be helpful.

Thanks.

This is the files product.tpl which was store in
/shop/skin1/modules/Extra_Fields
I have all the extra field working fine with no prob previously.

It works fine for quite sometime, till I make a changes which come out errors, even I restor the orginal files, it still errors.

{* $Id: product.tpl,v 1.2 2002/04/23 10:38:01 mav Exp $ *}
{if $product.categoryid eq 26
or $product.categoryid eq 251
or $product.categoryid eq 252
or $product.categoryid eq 253
or $product.categoryid eq 254
or $product.categoryid eq 255
or $product.categoryid eq 256
or $product.categoryid eq 257
or $product.categoryid eq 258
or $product.categoryid eq 259
or $product.categoryid eq 260
or $product.categoryid eq 261
}
<tr>
<td width="30%">{$lng.lbl_soft_author}</td>
<td>{$product.param00}</td>
</tr>
<tr>
<td>{$lng.lbl_soft_homepage}</td>
<td>{$product.param01}</td>
</tr>
<tr>
<td>{$lng.lbl_soft_os}</td>
<td>{$product.param05}</td>
</tr>

<tr>
<td valign="top">{$lng.lbl_soft_download}</td>
<td>[img]{$ImagesDir}/dl.gif[/img]</td>
</tr>
{else}
{section name=field loop=$extra_fields}
{if $extra_fields[field].active eq "Y"}
<tr>
<td width="30%">{$extra_fields[field].field}</td>
<td>
{if %field.index% eq 0}
{$product.param00}
{elseif %field.index% eq 1}
{$product.param01}
{elseif %field.index% eq 2}
{$product.param02}
{elseif %field.index% eq 3}
{$product.param03}
{elseif %field.index% eq 4}
{$product.param04}
{elseif %field.index% eq 5}
{$product.param05}
{elseif %field.index% eq 6}
{$product.param06}
{elseif %field.index% eq 7}
{$product.param07}
{elseif %field.index% eq 8}
{$product.param08}
{elseif %field.index%}

shan 12-17-2003 09:08 AM

post your version number and os in your forum signature and maybe post a link to the site where the problem is


All times are GMT -8. The time now is 10:12 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.