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)
-   -   giftcert.tpl unable to edit Smarty Error (https://forum.x-cart.com/showthread.php?t=49869)

storeadmin@mauipineapple 09-24-2009 06:22 PM

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!!!

cflsystems 09-24-2009 06:25 PM

Re: giftcert.tpl unable to edit Smarty Error
 
Look at line 203 again. You have extra ' just before title

storeadmin@mauipineapple 09-24-2009 06:45 PM

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

Vetrivel 09-24-2009 08:17 PM

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%"} 


storeadmin@mauipineapple 09-25-2009 10:14 AM

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


robertswww 09-25-2009 02:05 PM

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

storeadmin@mauipineapple 09-25-2009 03:57 PM

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

Vetrivel 09-25-2009 10:10 PM

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.


All times are GMT -8. The time now is 10:19 PM.

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