Hi,
These are just warning messages & not errors. You will need to upgrade to latest woocommerce (2.4.10) and turn off debugging in wp-config.php.
Thanks
I installed the same plugin on my local WordPress environment with the same error. I also updated my WooCommerce to version 2.5.5
Request a fix for this please, updating stuff that does not fix and hiding bugs are not realy helpful.
Also this error is being thrown out by your plug-in:
Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in D:\xampp\htdocs\piaffe\wp-includes\functions.php on line 3792
This notice was shown after activating this plug-in.
Thanks.
Okay the following solution worked for me, its a bit of a work-around but workable.
remove line 41 from woocommerce-extra-charges-option-to-payment-std.php or comment it out with //
Then add the following code inside your themes functions.php
function extra_charge(){
wp_register_script('app12', 'http://www.localhost/piaffe/wp-content/woocommerce-extra-charges-to-payment-gateways/assets/app.js', array( 'jquery' ));
wp_enqueue_script('app12');
}
add_action( 'wp_enqueue_scripts', 'extra_charge' );
Of course, don’t forget to edit your own url.
Let me know if this solves it for ya.
Final solution for everyone who want to solve these messages:
Open up woocommerce-extra-charges-option-to-payment-gateways-std.php en comment out line
wp_enqueue_script( 'wc-add-extra-charges', $this->plugin_url() . '/assets/app.js', array('wc-checkout'), false, true );
and add the following code above class WC_PaymentGateway_Add_extra_std_Charges{
function __construct(){
$this -> current_gateway_title = '';
$this -> current_gateway_extra_charges = '';
add_action('admin_head', array($this, 'add_form_fields'));
add_action( 'woocommerce_calculate_totals', array( $this, 'calculate_totals' ), 10, 1 );
wp_register_script('app12', $this->plugin_url() . '/assets/app.js', array( 'jquery' ));
wp_enqueue_script('app12');
}
Cheers