SD Modelcar Posted January 16, 2020 Share Posted January 16, 2020 Hello, i've got this error 500 on order confirmation page: Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home/sdmodelc/public_html/themes/default-bootstrap/order-confirmation.tpl" on line 49 "function gtag(){dataLayer.push(arguments);}" - Unexpected ".", expected one of: "}" <-- thrown in /home/sdmodelc/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 49 Any ideas? Thanks! Link to comment Share on other sites More sharing options...
MarlexLadag Posted January 17, 2020 Share Posted January 17, 2020 do you have a screenshot of the your order-confirmation.tpl. Link to comment Share on other sites More sharing options...
SD Modelcar Posted January 24, 2020 Author Share Posted January 24, 2020 Here it is: Link to comment Share on other sites More sharing options...
Rhobur Posted January 25, 2020 Share Posted January 25, 2020 try to disable the google tag manager module and retry. Link to comment Share on other sites More sharing options...
MarlexLadag Posted January 25, 2020 Share Posted January 25, 2020 13 hours ago, SD Modelcar said: Here it is: its because of the {dataLayer.push(arguments);} please add {literal} on this part {literal} SCRIPT HERE {/literal} 1 Link to comment Share on other sites More sharing options...
SD Modelcar Posted January 25, 2020 Author Share Posted January 25, 2020 13 hours ago, ML Software Services said: its because of the {dataLayer.push(arguments);} please add {literal} on this part {literal} SCRIPT HERE {/literal} Thanks, it worked! 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