Jump to content

Can someone explain how addJsDef and addJsDefL work?


Recommended Posts

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

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...