HSeba7 Posted March 3, 2023 Share Posted March 3, 2023 Hello. Im trying to adjust script inside tpl product file. (attached image with script) When im adjusting it im reciving error: SmartyCompilerException Quote Syntax error in template "/themes/epresta/templates/catalog/product/product-first.tpl" on line 83 "} else {if (typeof ekomiWidgetMain != 'undefined') {ekomiWidgetMain('ajax', token);}}" - Unexpected " " Any clue how to implement this ? Link to comment Share on other sites More sharing options...
Mediacom87 Posted March 3, 2023 Share Posted March 3, 2023 https://www.smarty.net/docsv2/en/language.function.literal.tpl Link to comment Share on other sites More sharing options...
phinq1910 Posted March 3, 2023 Share Posted March 3, 2023 You should put script to file.js then import it in controller. Something like this: $this->addJS(_MODULE_DIR_.'yourmodule/views/js/your-file-script.js'); 1 Link to comment Share on other sites More sharing options...
idnovate.com Posted March 3, 2023 Share Posted March 3, 2023 As said by @Mediacom87, enclose your code between {literal} tags: <script> {literal} // your eKomi script {/literal} </script> 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