Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
German Market - Zahlungsweise ab einen bestimmten Betrag
add_filter( 'woocommerce_available_payment_gateways', 'gm_conditional_payment', 1 );
function gm_conditional_payment( $gateways ) {
global $woocommerce;
if ( $woocommerce->cart->total > 1000 ) {
unset( $gateways['german_market_purchase_on_account'] );
}
return $gateways;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.