Filter for minimum quantity added
-
Hi there!
I need to modify the min value the plugin adds to the cart for certain products.
I found this code and applied a filter for the quantity in class-tz-wc-ajax-qty-public.php
public function custom_template_loop_add_to_cart( $args = array() ) {
global $product;….
$defaults = array(
‘quantity’ => (has_filter(‘custom_tz_wc_ajax_qty_min_value’) ? apply_filters( ‘custom_tz_wc_ajax_qty_min_value’, $product ) : 1),By any chance, could please implement a filter in the plugin in the next update so the changes will remain as needed?
Thanks so much in advance.
The topic ‘Filter for minimum quantity added’ is closed to new replies.