Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Help !!! Parse Error in my template

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-17-2003, 06:52 AM
 
mysoftware mysoftware is offline
 

Member
  
Join Date: Sep 2003
Posts: 10
 

Default 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 !
Reply With Quote
  #2  
Old 12-17-2003, 07:15 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 12-17-2003, 07:42 AM
 
mysoftware mysoftware is offline
 

Member
  
Join Date: Sep 2003
Posts: 10
 

Default

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%}
Reply With Quote
  #4  
Old 12-17-2003, 09:08 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

post your version number and os in your forum signature and maybe post a link to the site where the problem is
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:51 PM.

   

 
X-Cart forums © 2001-2020