Support » Plugin: Custom Order Status for WooCommerce » Plugin hiding payment gateways

  • Resolved alebatistella

    (@alebatistella)


    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

    • This topic was modified 6 months, 2 weeks ago by alebatistella.
Viewing 1 replies (of 1 total)
  • Plugin Support kenil802

    (@kenil802)

    Hi @alebatistella,

    Thank you for the information.

    Regarding the query, our Custom Order Status plugin does not do anything with the WooCommerce payment gateways.

    However, could you please inform us which WooCommerce version and the plugin version are you using on your site? Also, it would be great if could try by deactivating all the other plugins except for the WooCommerce and the Custom Order Status plugin and then see whether the issue still exists or not.

    Please let us know how it goes.

    Regards,
    Kenil Shah

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin hiding payment gateways’ is closed to new replies.