Title: About Step Quantity functionality
Last modified: February 18, 2022

---

# About Step Quantity functionality

 *  Resolved [Riccardo91](https://wordpress.org/support/users/alopex91/)
 * (@alopex91)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/about-step-quantity-functionality/)
 * Hi, on my website I changed the step quantity to 0.5 but it seems it doesn’t 
   work on the quantity box of this plugin, it seems independent, it is not affected
   by plugins or code, is it possibile to fix it so I can use decimal step quantity
   on the plugin quantity box?
 * Thanks

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Vidish](https://wordpress.org/support/users/vidishp/)
 * (@vidishp)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/about-step-quantity-functionality/#post-15385743)
 * [@alopex91](https://wordpress.org/support/users/alopex91/) Thank you for reaching
   out. May I know how have you changed step quantity on your site?
 *  Thread Starter [Riccardo91](https://wordpress.org/support/users/alopex91/)
 * (@alopex91)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/about-step-quantity-functionality/#post-15385766)
 * [@vidishp](https://wordpress.org/support/users/vidishp/) Hi, I used “Min Max 
   Quantity & Step Control for WooCommerce” but I also used some script in functions.
   php in the past.
 *  Plugin Author [Vidish](https://wordpress.org/support/users/vidishp/)
 * (@vidishp)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/about-step-quantity-functionality/#post-15385879)
 * [@alopex91](https://wordpress.org/support/users/alopex91/) Unfortunately we do
   not offer support for third party plugins. However, if you can let me know which
   filter you have used for step quantity, then I can try accommodating it in plugin,
   if it is from woocommerce core.
 * Thank you!
 *  Thread Starter [Riccardo91](https://wordpress.org/support/users/alopex91/)
 * (@alopex91)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/about-step-quantity-functionality/#post-15385916)
 * [@vidishp](https://wordpress.org/support/users/vidishp/) Hi, I’m no php expert
   but it should look something like this
 *     ```
       add_filter( 'woocommerce_quantity_input_args', 'jk_woocommerce_quantity_input_args', 10, 2 ); // Simple products
   
       function jk_woocommerce_quantity_input_args( $args, $product ) {
       	if ( is_singular( 'product' ) ) {
       		$args['input_value'] 	= 2;	// Starting value (we only want to affect product pages, not cart)
       	}
       	$args['max_value'] 	= 80; 	// Maximum value
       	$args['min_value'] 	= 2;   	// Minimum value
       	$args['step'] 		= 2;    // Quantity steps
       	return $args;
       }
   
       add_filter( 'woocommerce_available_variation', 'jk_woocommerce_available_variation' ); // Variations
   
       function jk_woocommerce_available_variation( $args ) {
       	$args['max_qty'] = 80; 		// Maximum value (variations)
       	$args['min_qty'] = 2;   	// Minimum value (variations)
       	return $args;
       }
       ```
   
 * In my specific case I needed to change the step quantity to 0.5
 *  Thread Starter [Riccardo91](https://wordpress.org/support/users/alopex91/)
 * (@alopex91)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/about-step-quantity-functionality/#post-15385919)
 * This is the source: [https://woocommerce.com/document/adjust-the-quantity-input-values/](https://woocommerce.com/document/adjust-the-quantity-input-values/)
 *  Thread Starter [Riccardo91](https://wordpress.org/support/users/alopex91/)
 * (@alopex91)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/about-step-quantity-functionality/#post-15386274)
 * [http://codeontrack.com/use-decimal-in-quantity-fields-in-woocommerce-wordpress/](http://codeontrack.com/use-decimal-in-quantity-fields-in-woocommerce-wordpress/)
 * This could be useful too
 *  Plugin Author [Vidish](https://wordpress.org/support/users/vidishp/)
 * (@vidishp)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/about-step-quantity-functionality/#post-15390326)
 * [@alopex91](https://wordpress.org/support/users/alopex91/) I have released a 
   version 2.1.8 with this feature. Also, you will need to add this code to your
   functions.php file:
 *     ```
       add_filter('woocommerce_quantity_input_step', 'wooextend_change_step_value', 10, 2);
       function wooextend_change_step_value( $step, $product ) {
   
       	$step = 2;
   
       	return $step;
       }
       ```
   
 * I hope this helps!
 * Thank you!
    Vidish
    -  This reply was modified 4 years, 3 months ago by [Vidish](https://wordpress.org/support/users/vidishp/).
 *  Thread Starter [Riccardo91](https://wordpress.org/support/users/alopex91/)
 * (@alopex91)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/about-step-quantity-functionality/#post-15390520)
 * This works to the combo quantity, not for single product quantity inside it. 
   It’s still integers.
 *  Plugin Author [Vidish](https://wordpress.org/support/users/vidishp/)
 * (@vidishp)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/about-step-quantity-functionality/#post-15390576)
 * [@alopex91](https://wordpress.org/support/users/alopex91/) I have checked and
   the update is for child products’ quantities. Not for main product’s quantity.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘About Step Quantity functionality’ is closed to new replies.

 * ![](https://ps.w.org/woo-combo-offers/assets/icon-128x128.png?rev=3344715)
 * [Combo Offers WooCommerce](https://wordpress.org/plugins/woo-combo-offers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-combo-offers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-combo-offers/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-combo-offers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-combo-offers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-combo-offers/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Vidish](https://wordpress.org/support/users/vidishp/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/about-step-quantity-functionality/#post-15390576)
 * Status: resolved