safius Posted October 30, 2015 Share Posted October 30, 2015 I have this snippet inside order-address.tpl {capture}<h3 class="page-subheading">{l s='Your billing address' js=1}</h3>{/capture} {addJsDefL name=titleInvoice}{$smarty.capture.default|@addcslashes:'\''}{/addJsDefL} The thing is, if I change the captured html and console.log the titleInvoice variable, it retains the default value, rather than the updated one. I have disabled all cache options from the back office "Performance" panel, cleared the cache manually, and have forced templates to always recompile. My last hope is that I have not understood how addJsDefL works, but there is no mention of it in the PrestaShop and Smarty docs. So, I'm lost at this point. Link to comment Share on other sites More sharing options...
NemoPS Posted October 31, 2015 Share Posted October 31, 2015 You can use it a lot more easily than thathttp://nemops.com/prestashop-functions-5/#.VjSHDLfnvmg 2 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