Jump to content

prestashop 1.6 (addJsDef not working?)


Recommended Posts

perhaps your shop uses some overrides? are you able to verify it?

it's worth to, i've noticed that problem several times before, and it was a matter of overrides in modules.

 

what theme you use? default one?

if some other template, you have to be sure that it is compatibile with ps 1.6

Link to comment
Share on other sites

  • 4 months later...
  • 1 month later...
  • 1 year later...

1.{addJsDef product_id=$product_id|escape:'html':'UTF-8'},

 

2.{literal}

<script language="javascript">
var product_id = {$product_id};
</script> 
{/literal}

 

Both 1 and 2 are  not working in prestashop 1.7 latest version in tpl file in my custom module.But prestashop1.6.1.9 working fine

Please any suggest me.

 

Thanks!

Edited by Radhanatha (see edit history)
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...