seniz Posted March 25, 2011 Share Posted March 25, 2011 Hi All,I'm getting error when trying to update delivery or billing adrresses on my account page, could someone help me to solve that problem? PrestaShop Version: 1.4.0.17error code : Fatal error: Smarty error: [in /home/public_html/themes/prestashop/address.tpl line 147]: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 590) in /home/public_html/tools/smarty_v2/Smarty.class.php on line 1095 BR,Marius Link to comment Share on other sites More sharing options...
_kelvin_ Posted March 31, 2011 Share Posted March 31, 2011 Hi Marius,I had the same problem, guess Smarty had a problem with the brackets {} used in the document.ready.functionTherefore added and moved {literal} in the source beginning on line 147 in: [removed] {literal} $(document).ready(function(){ var ajaxurl = '{/literal}{$ajaxurl}{literal}'; $('#id_country').change(function() { $.ajax({ type: "GET", url: ajaxurl+"vatnumber/ajax.php?id_country="+$('#id_country').val(), success: function(isApplicable){ if(isApplicable == "1") { $('#vat_area').show(); $('#vat_number').show(); } else { $('#vat_area').hide(); } } }); }); }); {/literal} [removed] Probably there is a better way to solve this however it works again... Link to comment Share on other sites More sharing options...
JakobFriis Posted April 17, 2011 Share Posted April 17, 2011 Thanks a lot - solved my problem Link to comment Share on other sites More sharing options...
Yoriel79 Posted April 20, 2011 Share Posted April 20, 2011 I had the same problem and I fixed it.Thanks for your help. Link to comment Share on other sites More sharing options...
PrestaMagic Posted July 15, 2011 Share Posted July 15, 2011 Yes, thanks too. Solved my problem. Link to comment Share on other sites More sharing options...
altaleto Posted April 1, 2013 Share Posted April 1, 2013 Hello, i have a same problem, but where is the DOCUMENT to change LITERAL ? in Smarty_Compiler.class.php ? or Smarty.class.php thanks a lot Link to comment Share on other sites More sharing options...
vekia Posted April 1, 2013 Share Posted April 1, 2013 Hello, i have a same problem, but where is the DOCUMENT to change LITERAL ? in Smarty_Compiler.class.php ? or Smarty.class.php thanks a lot hello altaleto they talked about address.tpl template file, you can find out this file in themes/your_theme/ directory 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