Calling $payment_gateways = WC()->payment_gateways->payment_gateways(); problem
-
Hi,
I am trying to use
WC()->payment_gateways->payment_gateways();
in a plugin to retrieve all the payment_gateways active in Woocommerce.
But when I am adding this call some strange things happens.
1st of all it does not save settings in flat-rate shipping for shipping classes.
2nd it disables the free plugin from woothemes https://www.woothemes.com/products/pay-with-amazon/ .Is this call supposed not to be used again?
I copied the code from Woocommerce class-wc-settings-checkout.php
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Calling $payment_gateways = WC()->payment_gateways->payment_gateways(); problem’ is closed to new replies.