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

giftcert.tpl unable to edit Smarty Error

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-24-2009, 06:22 PM
 
storeadmin@mauipineapple storeadmin@mauipineapple is offline
 

Newbie
  
Join Date: Jan 2009
Posts: 4
 

Default giftcert.tpl unable to edit Smarty Error

I have a weird problem I've been trying to edit the giftcart.tpl so that i can limit the amount of characters inputted in the gift cert message. no matter how i edit the file i get a smarty error message.

Error: Smarty error: [in modules/Gift_Certificates/giftcert.tpl line 203]: syntax error: invalid attribute name: '' title=$lng.lbl_gift_certificate_checking content=$smarty.capture.dialog extra='width' (Smarty_Compiler.class.php, line 1533) in C:\Inetpub\kapstore\shop\Smarty-2.6.12\Smarty.class.php on line 1095

line 203 is this
{include file="dialog.tpl" ' title=$lng.lbl_gift_certificate_checking content=$smarty.capture.dialog extra='width="100%"'}


This happens no matter what i do if i hit the space bar in an empty space and save it it get the error even if i undo it and save again i still get the error. I've tried editing in multiple editors even the x-cart template editor and i still have the same problem.

Please help i'm going mad!!!
__________________
4.1.9
Reply With Quote
  #2  
Old 09-24-2009, 06:25 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: giftcert.tpl unable to edit Smarty Error

Look at line 203 again. You have extra ' just before title
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 09-24-2009, 06:45 PM
 
storeadmin@mauipineapple storeadmin@mauipineapple is offline
 

Newbie
  
Join Date: Jan 2009
Posts: 4
 

Default Re: giftcert.tpl unable to edit Smarty Error

Quote:
Originally Posted by cflsystems
Look at line 203 again. You have extra ' just before title

I took that out and i have the same problem. This only happens if i edit the file if i copy the file over from backup it works fine if i do anything to the file and save it then i get the error. even when i removed the quote and then put it back and saved i get the error
__________________
4.1.9
Reply With Quote
  #4  
Old 09-24-2009, 08:17 PM
  Vetrivel's Avatar 
Vetrivel Vetrivel is offline
 

eXpert
  
Join Date: Apr 2008
Posts: 398
 

Default Re: giftcert.tpl unable to edit Smarty Error

PHP Code:
{include file="dialog.tpl" ' title=$lng.lbl_gift_certificate_checking content=$smarty.capture.dialog extra='width="100%"'} 


Hi
Try this.

PHP Code:
{include file="dialog.tpl"  title=$lng.lbl_gift_certificate_checking content=$smarty.capture.dialog extra='width="100%"} 
Reply With Quote
  #5  
Old 09-25-2009, 10:14 AM
 
storeadmin@mauipineapple storeadmin@mauipineapple is offline
 

Newbie
  
Join Date: Jan 2009
Posts: 4
 

Default Re: giftcert.tpl unable to edit Smarty Error

Quote:
Originally Posted by Vetrivel
PHP Code:
{include file="dialog.tpl" ' title=$lng.lbl_gift_certificate_checking content=$smarty.capture.dialog extra='width="100%"'} 


Hi
Try this.

PHP Code:
{include file="dialog.tpl"  title=$lng.lbl_gift_certificate_checking content=$smarty.capture.dialog extra='width="100%"} 

Tried that and now got a different error
Error: Smarty error: [in modules/Gift_Certificates/giftcert.tpl line 203]: syntax error: invalid attribute name: '=' (Smarty_Compiler.class.php, line 1533) in C:\Inetpub\kapstore\shop\Smarty-2.6.12\Smarty.class.php on line 1095

__________________
4.1.9
Reply With Quote
  #6  
Old 09-25-2009, 02:05 PM
 
robertswww robertswww is offline
 

X-Adept
  
Join Date: Jul 2003
Posts: 586
 

Default Re: giftcert.tpl unable to edit Smarty Error

Try this:
Code:
{include file="dialog.tpl" title=$lng.lbl_gift_certificate_checking content=$smarty.capture.dialog extra='width="100%"'}
Robert
__________________
X-cart 4.1.10
Reply With Quote
  #7  
Old 09-25-2009, 03:57 PM
 
storeadmin@mauipineapple storeadmin@mauipineapple is offline
 

Newbie
  
Join Date: Jan 2009
Posts: 4
 

Default Re: giftcert.tpl unable to edit Smarty Error

Quote:
Originally Posted by robertswww
Try this:
Code:
{include file="dialog.tpl" title=$lng.lbl_gift_certificate_checking content=$smarty.capture.dialog extra='width="100%"'}
Robert

same issues
__________________
4.1.9
Reply With Quote
  #8  
Old 09-25-2009, 10:10 PM
  Vetrivel's Avatar 
Vetrivel Vetrivel is offline
 

eXpert
  
Join Date: Apr 2008
Posts: 398
 

Default Re: giftcert.tpl unable to edit Smarty Error

PHP Code:
{include file="dialog.tpl"  title=$lng.lbl_gift_certificate_checking content=$smarty.capture.dialog extra='width="100%"'

Hey this is working .
run a cleanup.php and then check it.
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 11:16 AM.

   

 
X-Cart forums © 2001-2020