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

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

##

- **[bgl](/forum/user/66605-bgl "View bgl's Profile")**
- [![bgl's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/66605-bgl "View bgl's Profile") Topic Author
- [ Offline](/forum/user/66605-bgl)

Less More

- Posts: 7
- Thank you received: 0
-
-

4 years 3 months ago -  4 years 3 months ago [\#343326](#343326) by [bgl](/forum/user/66605-bgl "View bgl's Profile")  *[The "+" and "-" buttons incorrectly change the quantity of goods in the variants](/forum/27-checkout/904746-the-and-buttons-incorrectly-change-the-quantity-of-goods-in-the-variants#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 &quot;+&quot; 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 &quot;Add to cart&quot; button, 1 product appeared in your cart, to add 1 more of the same product, click &quot;+&quot;, the quantity of goods in the basket should change by 2, but it changes by 3. The next click on &quot;+&quot; 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 &quot;-&quot; 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 &quot;-&quot; 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 &quot;-&quot; 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.")* was created by *[bgl](/forum/user/66605-bgl "View bgl's Profile")*

-- 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: 4 years 3 months ago by [bgl](/forum/user/66605-bgl "View bgl's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNDc0Ni10aGUtYW5kLWJ1dHRvbnMtaW5jb3JyZWN0bHktY2hhbmdlLXRoZS1xdWFudGl0eS1vZi1nb29kcy1pbi10aGUtdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14286
-
-

4 years 3 months ago [\#343336](#343336) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[The "+" and "-" buttons incorrectly change the quantity of goods in the variants](/forum/27-checkout/904746-the-and-buttons-incorrectly-change-the-quantity-of-goods-in-the-variants#343336 "-- 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 &quot;+&quot; 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 &quot;Add to cart&quot; button, 1 product appeared in your cart, to add 1 more of the same product, click &quot;+&quot;, the quantity of goods in the basket should change by 2, but it changes by 3. The next click on &quot;+&quot; 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 &quot;-&quot; 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 &quot;-&quot; 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 &quot;-&quot; 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.")*

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](https://www.hikashop.com/support/contact-us.html)
Please make sure you include a link to this thread.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNDc0Ni10aGUtYW5kLWJ1dHRvbnMtaW5jb3JyZWN0bHktY2hhbmdlLXRoZS1xdWFudGl0eS1vZi1nb29kcy1pbi10aGUtdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14286
-
-

4 years 3 months ago [\#343383](#343383) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[The "+" and "-" buttons incorrectly change the quantity of goods in the variants](/forum/27-checkout/904746-the-and-buttons-incorrectly-change-the-quantity-of-goods-in-the-variants#343383 "-- 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 &quot;+&quot; 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 &quot;Add to cart&quot; button, 1 product appeared in your cart, to add 1 more of the same product, click &quot;+&quot;, the quantity of goods in the basket should change by 2, but it changes by 3. The next click on &quot;+&quot; 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 &quot;-&quot; 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 &quot;-&quot; 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 &quot;-&quot; 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.")*

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](/forum/user/66605-bgl "View bgl's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNDc0Ni10aGUtYW5kLWJ1dHRvbnMtaW5jb3JyZWN0bHktY2hhbmdlLXRoZS1xdWFudGl0eS1vZi1nb29kcy1pbi10aGUtdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.060 seconds

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