Hi Nicolas,
After updating to HikaShop 6.4.0, I’m facing a critical issue: on some product pages the price is not displayed on screen when the price depends on HikaShop – Price Calculations (price computed from custom fields such as width/height/quantity/shape).
What happens
The calculation is triggered (an XHR request returns HTTP 200), but the price never renders.
The browser console shows:
Uncaught TypeError: Cannot read properties of null (reading 'price')
Triggered inside the xhr.onreadystatechange callback (hikashop.js).
Technical evidence (Network/XHR)
In Network → XHR there is a request named calculate returning:
Response: No product id
And in Payload / Form data, only these parameters are sent:
{"cart_type":"cart","add":"1","ctrl":"product","task":"updatecart","return_url":"aHR0cHM6Ly93d3cuaGVybWFub3NnYWxpYW5vLmVzL2NvbXByYXIvZXRpcXVldGFzLXBlcnNvbmFsaXphZGFz"}
As you can see, product_id is not being sent.
DOM evidence
In Elements, I can see:
<span id="hikashop_product_id_main" class="hikashop_product_id_main"></span>
This span is empty (no ID inside), so the AJAX/calculation flow cannot retrieve the product_id and the request ends with “No product id”. Then the JS tries to read .price and crashes.
Important notes
This does not affect all products: it happens only on products where the price is calculated using Price Calculations with custom fields.
Products with a “normal” price (no calculation) are not affected.
Example URL
www.hermanosgaliano.es/comprar/etiquetas-personalizadas
Request
Could you please confirm if this is a regression in 6.4.0 and provide a patch?
It looks like the issue is that product_id is not injected into the DOM (or is not being read properly) when building the calculate/updatecart request.
Thank you in advance — this is urgent because it directly impacts conversions.
Best regards,
José Ángel
Hermanos Galiano