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