Jump to content

No price after selecting a variation on product page


Recommended Posts


Hi everyone!

I have an issue displaying product price when selecting a variation: the price disappear.

My product contains two variations:
- "Mono moteur" + "10Ah"
- "Bi moteur" + "16Ah"

With "Mono moteur" and "Bi moteur" as the only selectable variations. You can see the product here:
https://besycle.fr/trottinettes/70-129-teverun-blade-mini-mini-pro.html

When clicking on "Mono moteur", the price is not displayed (and clicking back on "Bi moteur" is broken too). I've looked the HTTP request used to updated the product information:
https://besycle.fr/index.php?controller=product&token=xxxx&id_product=70&id_customization=0&group[2]=22&group[5]=40&group[3]=11&group[4]=1&qty=1

When looking at the response, I can see product_prices: "" in the JSON payload.
group[3]=11 correspond to "16Ah" and group[5]=40 to "Mono moteur". So, this variation doesn't exist, which explain why my price is empty.

Weird things are:
- the updated URL is ok: https://besycle.fr/trottinettes/70-119-teverun-blade-mini-mini-pro.html#/22-voltage-48_v/6-amperes_heures-10_ah/1-couleur-noir/40-motorisation-mono_moteur and when refreshing the page, the price is displayed
- after clicking on the "Mono moteur", the DOM is updated and the only option for "Ah" is now "10Ah"

When enabling debug mode, "Can not retrieve the id_product_attribute" error is displayed instead of the price. I've googled this error but don't found anything relevant to my issue.

I was wondering if it's a bug only with my site, so I've done a fresh install with the same version, and it's work well (see at https://test.omnisnash.net/fr/accueil/20-47-test-produit.html)

What I've already try:
- Remove all my template override (I don't think I have override on Class, only on .tpl - using theme inheritance + an extra CSS file)
- Disabled all non-prestashop modules

My Prestashop version is: 1.7.8.8

Thanks in advance for you help and advises

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