PHP Error with PP Express
-
Hi,
I’ve got an issue with Paypal for WooCommerce on a clients site.
The following steps took place:
– Customer selects a product
– Enters a coupon code (default WooCommerce coupons)
– Opts to click Check out with PayPal and enter credit card details manually (assume customer does not have or want PayPal account)
– Returned to website to enter remaining details (phone number, etc) and confirm order through WooCommerceRather than proceeding to a confirmation page, I’m getting an error 500 with the following from logs:
[08-Feb-2018 00:59:52 UTC] PHP Fatal error: Call to undefined method WC_Order::get_discount_total() in /home/clientsite/public_html/wp-content/plugins/paypal-for-woocommerce/classes/wc-gateway-calculations-angelleye.php on line 182I’m running WordPress 4.9.4, WooCommerce 2.6.8 (yes, very old from inherited site), PayPal for WooCommerce 1.4.7.2 and PHP5.6 on this site.
Google suggests that WC_Order::get_discount_total() may be depricated, although replacing that with get_discount() didn’t help, only altered the above message chancing WC_Order::get_discount_total() with WC_Order::get_discount().
Any thoughts on what might be causing this, or better how to fix?
The topic ‘PHP Error with PP Express’ is closed to new replies.