Luckily the Cart Object allows us to do cool stuff and create any condition. First of all let me show you a very simple example, where we just set the custom price for all products in the cart. add_action( 'woocommerce_before_calculate_totals', 'misha_recalc_price' ); function misha_recalc_price( $cart_object ) { foreach ( $cart_object->get_cart() as $hash => $value ) [...]
Read more
+1 6725156263