[Skip to main content](#vessel-content)

#   Price Calculations v2.4.1 not working after HikaShop 6.4.1 update

##

- **[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")**
- [![Lumiga's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31479.png)](/forum/user/31479-lumiga "View Lumiga's Profile") Topic Author
- [ Offline](/forum/user/31479-lumiga)

Less More

- Posts: 637
- Thank you received: 26
-
-
-

5 months 1 week ago [\#371921](#371921) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  *[Price Calculations v2.4.1 not working after HikaShop 6.4.1 update](/forum/25-install-update/910525-price-calculations-v2-4-1-not-working-after-hikashop-6-4-1-update#371921 "-- HikaShop version -- : 6.4.1 -- Joomla version -- : 6.1.0 -- PHP version -- : 8.4  I hope you can help me. Since updating HikaShop and the Price Calculations plugin, the price calculations on my product pages are no longer working. I am not a developer myself, so I reached out to Claude (AI assistant by Anthropic) for help investigating the issue. I want to be upfront about this — I am not certain whether the findings below are the actual cause, but I wanted to share everything we found so you have as much context as possible.  Environment: - HikaShop Business: v6.4.1 - Price Calculations plugin: v2.4.1 - Joomla version: 6.1.0  What we found during investigation:  1. The browser console shows the following error on the product page: &quot;Cannot read properties of null (reading 'price')&quot; at aluminium-naam-typeplaat/:140 at xhr.onreadystatechange (hikashop.js:1587)  2. The AJAX call to /component/hikashop/calculations/calculate/ returns: &quot;No product id&quot;  3. When inspecting the form element on the product page via the browser console: - document.getElementById('hikashop&#95;product&#95;form') exists - However, the form only contains basic cart fields (cart&#95;type, add, ctrl, task, return&#95;url) - There is no product&#95;id field and no custom fields present in the form - window.Oby.getFormData() therefore returns no product&#95;id  4. In calculations.php (line 81), the generated JavaScript uses resp.price to read the AJAX response. Based on the changelog of v2.3.0, the response now returns price&#95;value instead of price. I have already updated this line locally as a test, but this did not resolve the issue because the form is empty. After this test I bring everyting back to normal to instal the latets plugin again.  5. The form&#91;name=&quot;hikashop&#95;product&#95;form&quot;&#93; appears to no longer contain the product data and custom field values that the plugin relies on. This may be related to a change in HikaShop 6.4.x in how the product form is structured or populated.  Thank you very much for your time and support.  Kind regards, Lumiga")* was created by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")*

-- HikaShop version -- : 6.4.1
-- Joomla version -- : 6.1.0
-- PHP version -- : 8.4

I hope you can help me. Since updating HikaShop and the Price Calculations plugin, the price calculations on my product pages are no longer working. I am not a developer myself, so I reached out to Claude (AI assistant by Anthropic) for help investigating the issue. I want to be upfront about this — I am not certain whether the findings below are the actual cause, but I wanted to share everything we found so you have as much context as possible.

Environment:
- HikaShop Business: v6.4.1
- Price Calculations plugin: v2.4.1
- Joomla version: 6.1.0

What we found during investigation:

1. The browser console shows the following error on the product page:
"Cannot read properties of null (reading 'price')"
at aluminium-naam-typeplaat/:140
at xhr.onreadystatechange (hikashop.js:1587)

2. The AJAX call to /component/hikashop/calculations/calculate/ returns: "No product id"

3. When inspecting the form element on the product page via the browser console:
- document.getElementById('hikashop_product_form') exists
- However, the form only contains basic cart fields (cart_type, add, ctrl, task, return_url)
- There is no product_id field and no custom fields present in the form
- window.Oby.getFormData() therefore returns no product_id

4. In calculations.php (line 81), the generated JavaScript uses resp.price to read the AJAX response. Based on the changelog of v2.3.0, the response now returns price_value instead of price. I have already updated this line locally as a test, but this did not resolve the issue because the form is empty. After this test I bring everyting back to normal to instal the latets plugin again.

5. The form[name="hikashop_product_form"] appears to no longer contain the product data and custom field values that the plugin relies on. This may be related to a change in HikaShop 6.4.x in how the product form is structured or populated.

Thank you very much for your time and support.

Kind regards,
Lumiga

---

Kind regards,
Lumiga

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkxMDUyNS1wcmljZS1jYWxjdWxhdGlvbnMtdjItNC0xLW5vdC13b3JraW5nLWFmdGVyLWhpa2FzaG9wLTYtNC0xLXVwZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14269
-
-

5 months 1 week ago [\#371924](#371924) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price Calculations v2.4.1 not working after HikaShop 6.4.1 update](/forum/25-install-update/910525-price-calculations-v2-4-1-not-working-after-hikashop-6-4-1-update#371924 "-- HikaShop version -- : 6.4.1 -- Joomla version -- : 6.1.0 -- PHP version -- : 8.4  I hope you can help me. Since updating HikaShop and the Price Calculations plugin, the price calculations on my product pages are no longer working. I am not a developer myself, so I reached out to Claude (AI assistant by Anthropic) for help investigating the issue. I want to be upfront about this — I am not certain whether the findings below are the actual cause, but I wanted to share everything we found so you have as much context as possible.  Environment: - HikaShop Business: v6.4.1 - Price Calculations plugin: v2.4.1 - Joomla version: 6.1.0  What we found during investigation:  1. The browser console shows the following error on the product page: &quot;Cannot read properties of null (reading 'price')&quot; at aluminium-naam-typeplaat/:140 at xhr.onreadystatechange (hikashop.js:1587)  2. The AJAX call to /component/hikashop/calculations/calculate/ returns: &quot;No product id&quot;  3. When inspecting the form element on the product page via the browser console: - document.getElementById('hikashop&#95;product&#95;form') exists - However, the form only contains basic cart fields (cart&#95;type, add, ctrl, task, return&#95;url) - There is no product&#95;id field and no custom fields present in the form - window.Oby.getFormData() therefore returns no product&#95;id  4. In calculations.php (line 81), the generated JavaScript uses resp.price to read the AJAX response. Based on the changelog of v2.3.0, the response now returns price&#95;value instead of price. I have already updated this line locally as a test, but this did not resolve the issue because the form is empty. After this test I bring everyting back to normal to instal the latets plugin again.  5. The form&#91;name=&quot;hikashop&#95;product&#95;form&quot;&#93; appears to no longer contain the product data and custom field values that the plugin relies on. This may be related to a change in HikaShop 6.4.x in how the product form is structured or populated.  Thank you very much for your time and support.  Kind regards, Lumiga")*

Hi,

Thanks for the very detailed report, it gives us a good starting point. One small correction first: the AJAX response of the plugin still returns a "price" field (not "price_value"), so that part of the AI's analysis was off. The real issue is the one you spotted right after it: the product form on the page is missing the product_id input, so the AJAX call goes out without a product_id and the server replies "No product id". Without a product_id, the JavaScript then tries to read the price out of an empty response, which is the "Cannot read properties of null (reading 'price')" error you see in the console.

This is a known side effect of the product form restructuring that happened in HikaShop 6.4.0. HikaShop 6.4.1 already includes the fixes for it, both on the form side and on the JavaScript helper that the Price Calculations plugin uses to read the form. So in principle, on 6.4.1 it should be working out of the box.

The two most common reasons it still doesn't work after the update are:

1. A cached copy of HikaShop's main JavaScript file is still being served to your browser, so the fix is technically deployed on the server but your browser is still running the old version. Could you try a hard refresh on the product page (Ctrl + Shift + R on Windows/Linux, Cmd + Shift + R on Mac), and also clear the Joomla cache from System &gt; Maintenance &gt; Clear Cache? Then reload the product page and check whether the calculation comes back.

2. Your Joomla template has a custom override of the HikaShop product view. Joomla template overrides take precedence over HikaShop's own files, so if the override was created before the 6.4.0 restructuring, it can keep the old form structure on the page and prevent the fix from taking effect. To check: in your Joomla files, look for a folder like templates/&lt;your_template&gt;/html/com_hikashop/product/ . If you see files like show_default.php, show.php, quantity.php inside it, then you do have overrides for the product page. If that is the case, the simplest test is to rename that "product" folder temporarily to "product_backup" and reload the product page, to see whether the calculation comes back. If it does, the overrides are the culprit and they need to be regenerated from the 6.4.1 versions.

The following user(s) said Thank You: [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkxMDUyNS1wcmljZS1jYWxjdWxhdGlvbnMtdjItNC0xLW5vdC13b3JraW5nLWFmdGVyLWhpa2FzaG9wLTYtNC0xLXVwZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.119 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
