Hello Magento Friends,

In this blog, we will discuss about adding quantity increment and decrement on the Magento 2 Category Page.

By default, Magento 2 allows customers to update product quantities only on the product detail page. However, enabling quantity adjustment directly on the category page streamlines the purchasing process, saving customers time and effort. In this blog post, we’ll explore how to implement this feature in Magento 2.

Why Add Quantity Increment and Decrement on Category Page?

Imagine a scenario where a customer is browsing through different products in a category and wants to purchase multiple quantities of a particular item. In the traditional setup, the customer would have to navigate to the product detail page, adjust the quantity, and then return to the category page to continue browsing. This process can be cumbersome and may lead to frustration, especially for customers with a long shopping list.

By integrating quantity increment and decrement buttons directly on the category page, customers can effortlessly adjust the quantity of each product without leaving the page. This not only improves the overall user experience but also encourages impulse purchases and increases conversion rates.

Using the Magento 2 Quantity Increment & Decrement Buttons Extension, you can show the quantity increment decrement button on various places within the customer’s shopping journey.

Steps to Add Quantity Increment and Decrement on Category Page in Magento 2:

Step 1: First, we need to create a “catalog_category_view.xml“ file to override list.phtml file at the following path.

app\code\Vendor\Extension\view\frontend\layout\catalog_category_view.xml

Then add the code as follows

Step 2: After that, we need to create a “list.phtml” file inside our extension at the following path.

app\code\Vendor\Extension\view\frontend\templates\product\list.phtml

And add the code as given below

Output:

qty inc dec category page

Conclusion:

Incorporating quantity increment and decrement functionality on the category page can significantly enhance the shopping experience for Magento 2 store customers. Previously, I have shared a solution for Adding the Quantity Increment & Decrement Button to the Product page in Magento 2.

Share the tutorial with your friends and stay in touch with us for more.

Happy Coding!

Click to rate this post!
[Total: 0 Average: 0]