Support » Plugin: Pay for Payment for WooCommerce » Problem after update to woocommerce 3.2
Problem after update to woocommerce 3.2
-
Hi after the update to woocommerce 3.2 the plugin is not working anymore.
The percent charge is still calculated and also shown on the checkout page but it is not calculated to the total amount anymore.
Please fix that.
-
Hello I have the same trouble. Since the update of woocommerce, the plugin does not work anymore.
Hi! I have the same problem.
I use it for Paypal (even though it’s not recommended) and it stopped working after the latest woocommerce update. Please help! Thanks.-
This reply was modified 4 years, 10 months ago by
underthecover.
-
This reply was modified 4 years, 10 months ago by
underthecover.
-
This reply was modified 4 years, 10 months ago by
underthecover.
Hi,
I’m currently on holidays and with only mobile phone I can’t even try to reproduce the issue. I will try to fix it in the last week of October.
If anybody could fix it sooner, I would be more than glad to push it as an update. Just grab the code on github and add the fix for the new WC version.
Thanks for understanding and best regards
KarolinaHello!
I have the some problame, the fixed charge is shown on the checkout page, but it is not calculated at the total amount 🙁
Thank you for helping!
Eszter
Hello, i’ve got the same problem. If you will fix it it will be very helpfull. Are there any other plugins to add a fee for example paypal for the waiting time?
Hello,
Solution for the problem:
Edit file /plugins/woocommerce-pay-for-payment/woocommerce-payforpayment.php
comment line 50:
//add_action( 'woocommerce_calculate_totals' , array($this,'calculate_pay4payment' ) , 99 );
Add $this->calculate_pay4payment( ); in line 84:
function add_pay4payment( $cart ) { $this->calculate_pay4payment( ); if ( ! is_null($this->_fee) ) { $cart->add_fee( $this->_fee->fee_title , $this->_fee->cost , $this->_fee->taxable , $this->_fee->tax_class ); } }
This found for my.
Best regards.
Hi, can you please give more information? It doesn’t work for me.
In Line 50 I have the following code:
`echo ‘<div class=”error”><p>’
. sprintf( __( ‘%1$s requires %2$s. Please activate %2$s before activation of %1$s. This plugin has been deactivated.’, ‘woocommerce-pay-for-payment’ ), ‘‘ . esc_html( $pay4payment_plugin ) . ‘‘, ‘‘ . esc_html( $woocommerce_plugin ) . ‘‘ )
. ‘</p></div>’;Hi,
Find:
private function __construct() { //add_action( 'woocommerce_cart_calculate_fees' , array($this,'add_pay4payment' ) , 99 ); // make sure this is the last fee eing added //add_action( 'woocommerce_calculate_totals' , array($this,'calculate_pay4payment' ) , 99 ); add_action( 'woocommerce_cart_calculate_fees' , array($this,'add_pay4payment' ) , 99 ); add_action( 'woocommerce_review_order_after_submit' , array($this,'print_autoload_js') ); add_action( 'admin_init' , array( &$this , 'check_wc_version' ) ); add_action( 'plugins_loaded' , array( &$this , 'load_textdomain' ) ); }
Best regards.
Many thanks, now I was able to fix it.
FIX!
File: /wp-content/plugins/woocommerce-pay-for-payment/inc/class-pay4pay.php
Line 40, from:
add_action( 'woocommerce_calculate_totals', array( $this, 'calculate_pay4payment' ), 99 );
to:
//add_action( 'woocommerce_calculate_totals', array( $this, 'calculate_pay4payment' ), 99 );
Line 78, from:
if ( ! is_null( $this->_fee ) ) {
to:$this->calculate_pay4payment(); if ( ! is_null( $this->_fee ) ) {
That’s all!
Kind regards.
-
This reply was modified 4 years, 10 months ago by
Art Project Group.
FYI the suggested fix has been submitted https://github.com/vyskoczilova/woocommerce-payforpayment/pull/23
Solved with the version 2.0.3, thanks to Peter J. Herrel.
Thank you very much!
Eszter
Hello everyone, the plugin has changed version and now it is different to be able to edit this problem.
I have opened a new theme here and hopefully if anyone can help me with the problem would be great please.
https://wordpress.org/support/topic/incorrect-commissions-failure-to-apply-and-fixed-price/
With Version 2.04 everything worked fine. Unfortunately I just updated to version 2.05 and now I have the same problem as before. Again the percent charge is not added to the total amount. This is clear a problem with Version 2.05.
There is this
$this->calculate_pay4payment( );
missing in line 79 of class-pay4pay.php:function add_pay4payment( $cart ) { $this->calculate_pay4payment( ); if ( ! is_null($this->_fee) ) { $cart->add_fee( $this->_fee->fee_title , $this->_fee->cost , $this->_fee->taxable , $this->_fee->tax_class ); } }
-
This reply was modified 4 years, 9 months ago by
Webcrashpilot.
-
This reply was modified 4 years, 10 months ago by
- The topic ‘Problem after update to woocommerce 3.2’ is closed to new replies.