Taxonomy

Add quantity box on Archive pages

Estimated reading: 1 minute 553 views

WooCommerce, the popular e-commerce platform for WordPress, does not include a quantity box on its archive pages by default. This can be inconvenient for customers who want to purchase multiple items at once. However, you can easily add a quantity box to your WooCommerce archive pages with our plugin.

To do this, navigate to WooCommerce => Min Max Step Quantity.

So now your min max and step quantity will work on any archive page.

To give a professional view, you can also add a plus minus button on your archive page. For that install the “Quantity Plus Minus Button for WooCommerce by CodeAstrology” plugin.

First, you have to enable Ajax using a filter hook. You can add the following code in your child theme’s functions.php file or you can use the code snippet plugin.

<?php
add_filter('wcmmq_ajax_cart_single_page', '__return_true');

To enable Ajax navigate to WooCommerce->Settings->Products->Add to Cart behaviour.

Share this Doc

Add quantity box on Archive pages

Or copy link

CONTENTS