Jump to content

JS var ipa_default causes error in product page


Recommended Posts

Maybe is a bug,

 

in last version of prestashop 1.4.7.3 I have this problem:

 

in same of the pages of products appear this error:

 

 

Messaggio: sintax error

Linea: 388

Carattere: 19

Code: 0

URI: http://miodominio.it/product.php?id_product=5

product.php

 

Under folder "themes" there is a file:

product.tpl :

var ipa_default = {if isset($ipa_default)}{$ipa_default}{/if};

 

but if the ips_default is not set then output is:

 

 

var ipa_default = ;

 

which causes a JS error on load.

 

I have a question: what's the var ipa_default??? where is this option in back office of ps???

thanks

Link to comment
Share on other sites

  • 1 month later...

Hello,

I had the same problem in 1.4.7.3

In 1.4.8.2, problem has been solved by replacing :

 

{if isset($ipa_default)}{$ipa_default}{/if}

by

{if isset($ipa_default)}{$ipa_default}{else}0{/if}

 

It works perfectly for me.

  • Like 1
Link to comment
Share on other sites

Hello,

I had the same problem in 1.4.7.3

In 1.4.8.2, problem has been solved by replacing :

 

{if isset($ipa_default)}{$ipa_default}{/if}

by

{if isset($ipa_default)}{$ipa_default}{else}0{/if}

 

It works perfectly for me.

 

Merci beaucoup ébewè, tu viens de nous sortir une grosse épine du pied :D

Des semaines qu'on cherche une solution ! encore merci !

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