• 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 WooCommerce

    Rather 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 182

    I’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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor angelleyesupport

    (@angelleyesupport)

    @tim15465233,
    Sorry for the inconvenience, Although, we are not getting any reports for this but please allow me some time to run the test and see if I am able to reproduce this issue on my local setup.
    I will get back to you soon.
    Thanks!

    Plugin Contributor angelleyesupport

    (@angelleyesupport)

    @tim15465233, Please note that you are using WC version 2.6.8 with latest version of our plugin but with this version of PayPal for woo, minimum WC version required is 3.0.
    So either you should get your store updated to latest WC compatibility and update that or you can use an earlier version of our plugin.

    As I ran some test with the latest version but I was not able to see any such errors , its definitely related to the old WC version. Please update to latest version then you wont see any problems.

    Let me know if you have any other questions or concerns.
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Error with PP Express’ is closed to new replies.