The "+" and "-" buttons incorrectly change the quantity of goods in the variants

  • Posts: 7
  • Thank you received: 0
2 years 4 months ago #343326

-- HikaShop version -- : HikaShop Starter: 4.6.1
-- Joomla version -- : 4.1.5
-- PHP version -- : 7.4.26
-- Browser(s) name and version -- : Yandex Browser ver. 22.5.4.904 (64-bit)

Hello!
Clicking on "+" adds the quantity of the product according to the formula (the quantity of this product in the basket x 2 + 1).
That is, if you clicked the "Add to cart" button, 1 product appeared in your cart, to add 1 more of the same product, click "+", the quantity of goods in the basket should change by 2, but it changes by 3. The next click on "+" will change the quantity in the basket by 7, although it should be 3 correctly. And so on according to the above formula.
Clicking on "-" also increases the quantity of goods in the basket according to the formula (the quantity of this product in the basket x 2 - 1). Having 1 product in the basket and clicking on "-" you will not be able to change the quantity in the basket, because 1 x 1 - 1 = 1. Another example, there are 3 units of one product in the basket, clicking on "-" we get the quantity in the basket 5, according to the formula (3 x 2 - 1 = 5), although the value should become 2.
An attempt to replace the quantity of the product in the field adds what was recorded to what was already displayed in the basket.
This error only manifests itself with products that have variants. Products that do not have variants are added correctly.
How to fix this error?

Excuse me! The error appears on the product page. Both in the case of product variants and without product variants.

Last edit: 2 years 4 months ago by bgl.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 4 months ago #343336

HI,

I see the problem on your website but I'm not able to reproduce it on my end.
Could you provide a FTP access so that we could do some debugging on your website to better understand what's going on ?

You can provide this via our contact form: www.hikashop.com/support/contact-us.html
Please make sure you include a link to this thread.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 4 months ago #343383

Hi,

Thank you for that. I found the issue.
It actually only happens with the "tabular" product page layout and that's why I couldn't reproduce on my end as I was using the default layout.
I've made a patch for that and it now works properly on your website.
We'll add the patch on our end too.

The following user(s) said Thank You: bgl

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum