Update admin/post-types/writepanels/writepanel-order_data.php
Display only active gateways
This commit is contained in:
parent
20d7e9b54f
commit
6406d9369b
|
@ -642,9 +642,11 @@ function woocommerce_order_totals_meta_box($post) {
|
||||||
|
|
||||||
if ( $woocommerce->payment_gateways ) {
|
if ( $woocommerce->payment_gateways ) {
|
||||||
foreach ( $woocommerce->payment_gateways->payment_gateways() as $gateway ) {
|
foreach ( $woocommerce->payment_gateways->payment_gateways() as $gateway ) {
|
||||||
echo '<option value="' . $gateway->id . '" ' . selected( $chosen_method, $gateway->id, false ) . '>' . $gateway->get_title() . '</option>';
|
if($gateway->enabled =="yes"){
|
||||||
if ( $chosen_method == $gateway->id )
|
echo '<option value="' . $gateway->id . '" ' . selected( $chosen_method, $gateway->id, false ) . '>' . $gateway->get_title() . '</option>';
|
||||||
|
if ( $chosen_method == $gateway->id )
|
||||||
$found_method = true;
|
$found_method = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue