Free cookie consent management tool by TermsFeedAktualizacja preferencji plików cookie

Plus/Minus Quantity Buttons for Magento 2 Cart – instant cart recalculations

Rating:
89% of 100
€42.63 €34.66
COMPOSER Installation
M2-PLUS-MINUS-IN-CART
PayPal PayPal
Przelew Przelew

Magento Modules: Clear Guidelines

You purchase the module once, with no domain restrictions

Tooltip

Free installation and updates via Composer

Tooltip

Affiliate Program

Tooltip

Technical support for Magento

Tooltip

Clear guidelines for licensing Magento modules

Tooltip

Magento Module Code Security

Tooltip

This module extends the standard Magento 2 cart with intuitive product quantity controls:

  • + / − buttons next to qty – users do not have to click a small field and enter the number manually.

  • Automatic AJAX recalculations after the quantity changes:

    • cart form refresh,

    • mini-cart refresh customerData,

    • summary / totals refresh getTotalsAction,

    • all without a page reload.

  • Stability after DOM refresh – after the cart HTML is replaced, the buttons are initialized again.

  • Modern pill-style design – the control looks like one consistent element minus | quantity | plus and fits most themes.

Result: the customer completes the purchase faster, and the cart behaves like an app rather than a classic form-based page.

Installation and configuration: install the module via Composer or upload to app/code, run bin/magento setup upgrade, then deploy static content and clear cache. The module works in the cart page and uses AJAX updates for cart form, customerData mini cart, and getTotalsAction totals refresh. No theme overrides required in most cases.
Version history: initial release adds plus and minus qty controls in the Magento 2 cart, AJAX recalculation of cart totals, automatic mini cart refresh via customerData, and safe re-initialization after DOM updates.
Implemented in real Magento 2 stores
Case Study – toursport.pl

For toursport.pl, we implemented a + / − quantity control in the cart because users often changed quantities (e.g., apparel/sizes, accessories, sets), and manually entering values slowed down the process.

Problem:

  • customers edited quantities in multiple steps,

  • some mobile users had difficulty precisely tapping the qty field,

  • after changing quantities, they expected totals and the mini-cart to update immediately.

Solution:

  • we added intuitive pill-shaped +/− buttons,

  • we enabled AJAX recalculations without refreshing the page (totals + mini-cart),

  • we matched the style to the cart layout so the control looked like a native part of the theme.

Business impact (practical):

  • faster cart editing,

  • less frustration on mobile,

  • a more “app-like” cart → a better shopping experience.

Questions and Answers

Question
Does the module work without modifying cart templates?
Answer
Yes — the buttons are added via JS, and styling is handled by LESS.
Question
Does it recalculate totals and the mini-cart?
Answer
Yes — it refreshes the cart section and calls getTotalsAction()
Question
Will it work after refreshing the cart HTML via AJAX?
Answer
Yes — after replacing #form-validate, the module reinitializes the buttons.
Question
Can the appearance be changed to a “pill” style or to match my theme?
Answer
Yes — the styles are based on simple .kowal-qty* classes and can be easily overridden.
Question
Will quickly clicking +/- make many requests?
Answer
You can (and should) enable a light debounce (e.g., 150 ms) to reduce request spam.
Write Your Own Review
You're reviewing:Plus/Minus Quantity Buttons for Magento 2 Cart – instant cart recalculations
Your Rating
Products