Hi,
I hope you are doing well today. Do you want to change the minimum quantity value to 5 for each variation?
Hope to hear from you soon.
Best Regards
Hi,
I hope you are doing well today.
Since it’s been a while since we last heard back from you, I’m going to mark this topic resolved.
Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.
Best Regards
Buenas, estoy usando el plugin, está buenísimo pero necesitaría configurar las cantidades mínimas de cada producto.
Aguardo sus comentarios
muchas gracias
Hi @cacu
You can try the following snippet inside your current theme’s functions.php file-
add_filter( 'pvtfw_qtyargs_min_value', function( $qty, $single_variation ){
$qty = 3; // Set your desired quantity value here
return $qty;
}, 10, 2 );
Or, you can use a plugin called Code Snippets to add the above code.
Note: It is recommended to apply the snippet using the Code Snippets plugin or inside your child theme’s functions.php file. Otherwise, any data loss can be happened after updating the theme, if you add it inside your parent theme’s functions.php file.
Best Regards
Perfecto! el código funciona a la perfección!!!
Dejo acá el código que puse para que el incremento de productos vaya de 10 e 10 como mínimo y sumo el que ustedes me pasaron.
add_filter(‘woocommerce_quantity_input_min’, function(){
return 10;
});
add_filter(‘pvtfw_qtyargs_input_value’, function(){
return 10;
});
add_filter(‘woocommerce_quantity_input_step’, function(){
return 10;
});
add_filter( ‘pvtfw_qtyargs_min_value’, function( $qty, $single_variation ){
$qty = 10; // Set your desired quantity value here
return $qty;
}, 10, 2 );
Muchas gracias y muy bueno el plugin! super recomendable
Hi @cacu
Glad to know it helped.
If you found our plugin & support helpful, please share your love here- https://wordpress.org/support/plugin/product-variant-table-for-woocommerce/reviews/
It will inspire us a lot.
Best Regards
Hola de nuevo, vuelvo sobre una consulta más.
Cuando me encuentro en el carrito una vez que puse finalizar compra, y cuando tengo la posibilidad de sumar cantidad del producto me vuelve a sumar de 1 en 1, en la instancia carrito, hay alguna solución a eso?
muchas gracias nuevamente
Hi,
Unfortunately, we have no control over the Cart Page. 😞
It is a feature of WooCommerce default. I hope this will clear up your confusion.
By the way, if you found our plugin helpful, please share your words for us here- https://wordpress.org/support/plugin/product-variant-table-for-woocommerce/reviews/
Best Regards