Woocommercewordpress

WooCommerce: Buy in multiples of 5

add_action( 'woocommerce_check_cart_items', 'woocommerce_check_cart_quantities' ); function woocommerce_check_cart_quantities() { $multiples = 5; $total_products = 0; foreach ( WC()->cart->get_cart() as $cart_item_key => $values ) { $total_products += $values;…
priyankmaniar
March 1, 2020