Extra costs gone after adding function
-
Hi there,
I have added a function to hide a gateway when the cart total is under 869,-. But now the extra costs arent added anymore? How is this possible?
Regards,
Lauraadd_filter('woocommerce_available_payment_gateways','ll_unset_gateway'); function ll_unset_gateway($available_gateways){ global $woocommerce; if($woocommerce->cart->total < 869){ unset( $available_gateways['cheque'] ); } return $available_gateways; }
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Extra costs gone after adding function’ is closed to new replies.