Bubiko Posted February 17, 2015 Share Posted February 17, 2015 (edited) Hi guys. I have the following error when validating and order: Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home/content/74/10469774/html/bubiko/themes/default-bootstrap/mails/ro/order_conf_product_list.txt" on line 2 "{$product[\'order_reference\']}" - Unexpected "\" <-- thrown in /home/content/74/10469774/html/bubiko/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 2 What I have in my "order_conf_product_list.txt" is "{foreach $list as $product} {$product[\'reference\']} {$product[\'name\']} {$product[\'price\']} {$product[\'quantity\']} {$product[\'price\']} {foreach $product[\'customization\'] as $customization} {$product[\'name\']} {$customization[\'customization_text\']} {$product[\'price\']} {$product[\'customization_quantity\']} {$product[\'quantity\']} {/foreach}{/foreach}" I`ve tried deleting " {$product[\'reference\']}" both from txt and tpl file, the error kept showing but with the next line {$product[\'name\']}, tried replacing "reference" with "order_reference". Any ideas? Edited February 17, 2015 by Bubiko (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted February 17, 2015 Share Posted February 17, 2015 this is a known issue when using the translation and email editing feature in the back office. The issue is that it adds the back slashes that should not be there. For example, this is not correct {$product[\'reference\']} Instead it should be {$product['reference']} So to fix the issue for now, you need to remove all those back slashes from the variables. 1 Link to comment Share on other sites More sharing options...
Bubiko Posted February 17, 2015 Author Share Posted February 17, 2015 Thank you, that fixed it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now