Plugin hiding payment gateways
-
Hey there!
I have the Custom Order Status Pro for WooCommerce plugin, and every time I activate this plugin, all my WooCommerce payment gateways disappear. When I deactivate this plugin, all my WooCommerce payment gateways come back to the front-end, as shown here in two different images.
Although checking the plugin’s code, I’ve found inside the file
integrations.php
the following lines, between lines 230 and 242:$available_gateways = array('-1' => __('-- payment method ---', 'AppZab_woo_advance_order_status')); foreach(WC()->payment_gateways()->payment_gateways as $pm) { $available_gateways[$pm->id] = $pm->title; } //woocommerce_form_field($key, $args); $form_fields['payment_method'] = array( 'title' => __('Payment Method', 'AppZab_woo_advance_order_status'), 'description' => __('Select the payment method to use this status when a new order is placed. When a customer places an order using this payment method, the chosen status will be automatically applied to it', 'AppZab_woo_advance_order_status'), 'type' => 'select', 'default' => '-1', 'options' => $available_gateways );
and commenting this code, all my payment gateways come back to the front-end.
May you guys help me to understand what is the problem and why commenting this piece of code this thing comes back to work? ??
I’m looking forward to your response
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Plugin hiding payment gateways’ is closed to new replies.