mpbm23
Forum Replies Created
-
Forum: Plugins
In reply to: [qTranslate X] Woocommerce check out translationsI already am using it
Forum: Plugins
In reply to: [Pay for Payment for WooCommerce] Fatal error when trying to activate pluginThis is not my plugin. I am just helping with support and troubleshooting.
Make the change and I will contact the author to push the update.Forum: Plugins
In reply to: [Pay for Payment for WooCommerce] New parse error on WP 4.3Replace line 117 with
$chosen_methods[]=null;
Forum: Plugins
In reply to: [Pay for Payment for WooCommerce] Fatal error when trying to activate pluginReplace line 117 with
$chosen_methods[]=null;
Forum: Plugins
In reply to: [Pay for Payment for WooCommerce] WC 2.4Please replace
add_action( 'woocommerce_init' , array( &$this , 'add_payment_options'), 99 );
with
add_action( 'wp_loaded' , array( &$this , 'add_payment_options'), 99 );
as seen here
https://github.com/mcguffin/woocommerce-payforpayment/blob/master/admin/class-pay4pay-admin.php
In file /admin/class-pay4pay-admin.phpForum: Plugins
In reply to: [WooCommerce] Dynamic settings fields not savedPlease replace
add_action( 'woocommerce_init' , array( &$this , 'add_payment_options'), 99 );
with
add_action( 'wp_loaded' , array( &$this , 'add_payment_options'), 99 );
as seen here
https://github.com/mcguffin/woocommerce-payforpayment/blob/master/admin/class-pay4pay-admin.php
In file /admin/class-pay4pay-admin.phpForum: Plugins
In reply to: [Pay for Payment for WooCommerce] Doesn't work with Amazon PaymentsPlease replace
add_action( 'woocommerce_init' , array( &$this , 'add_payment_options'), 99 );
with
add_action( 'wp_loaded' , array( &$this , 'add_payment_options'), 99 );
as seen here
https://github.com/mcguffin/woocommerce-payforpayment/blob/master/admin/class-pay4pay-admin.phpI believe wp_loaded instead of woocommerce_init did the trick.
Thanks for the helpI have reduced it to to files with minimal code and the results are the same.
class Pay4Pay { private static $_instance = null; public static function instance(){ if ( is_null(self::$_instance) ) self::$_instance = new self(); return self::$_instance; } private function __construct() { } } Pay4Pay::instance(); if ( is_admin() ) require_once plugin_dir_path(__FILE__) . '/admin/class-pay4pay-admin.php';
Admin file
if ( ! class_exists( 'Pay4Pay_Admin' ) ) : class Pay4Pay_Admin { private static $_instance = null; public static function instance(){ if ( is_null(self::$_instance) ) self::$_instance = new self(); return self::$_instance; } private function __construct() { // handle options add_action( 'woocommerce_init' , array( &$this , 'add_payment_options'), 99 ); add_action( 'woocommerce_update_options_checkout' , array( &$this , 'add_payment_options') ); } function add_payment_options( ) { var_dump(WC()->payment_gateways()->payment_gateways() ); } } Pay4Pay_Admin::instance(); endif;
Forum: Plugins
In reply to: [WooCommerce] Dynamic settings fields not savedMike Jolley I have narrowed it down to a single call of available gateways
specifically to this line
foreach ( WC()->payment_gateways()->payment_gateways() as $gateway_id => $gateway ) {
Its line 200 in https://github.com/mcguffin/woocommerce-payforpayment/blob/master/admin/class-pay4pay-admin.phpBut I can not understand why its interfering with the shipping methods.
I tried replacing it with$woocommerce->payment_gateways()->payment_gateways()
but it makes no difference.
I am not the author of pay4payment, just trying to help.Forum: Plugins
In reply to: [Pay for Payment for WooCommerce] WC 2.4I really don’t know how a payment plugin can interfere with a shipping plugin.
Forum: Plugins
In reply to: [WooCommerce] Dynamic settings fields not savedYes I can also confirm the problem.
The thing is, pay for payment is used for payment gateways and not shipping methods. Can not understand how it can create a problem.Please contact Woocart Pro by Festi support team to help you.
Forum: Plugins
In reply to: [Pay for Payment for WooCommerce] WC 2.4What shipping method are you using?
Forum: Plugins
In reply to: [WooCommerce] Dynamic settings fields not savedWhere you using https://www.ads-software.com/plugins/woocommerce-pay-for-payment/ for setting price in your payment gateways?
I am using 2.4 but do not have any issue saving.
What shipping method are you using?