Jump to content

Validation page Error help


Recommended Posts

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 by Bubiko (see edit history)
Link to comment
Share on other sites

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. 

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...