Woocomnerce Limit Purchase value before proceed checkout
Put this code in your current theme function.php file. METHOD 1: add_action( ‘woocommerce_check_cart_items’, ‘spyr_set_weight_requirements’ ); function spyr_set_weight_requirements() { if( is_cart() || is_checkout() ) { global $woocommerce; $total = WC()->cart->total; if( $total < 15 ){ wc_add_notice( ‘<strong>MAXIMUM CART PRICE 15 FOR CHECKOUT</strong>’,’error’); } } } METHOD:2 function disable_checkout_button_no_shipping() { $total = WC()->cart->total; if( $total < 15 … Read more