• This happens when customer chooses to pay via Paypal option – then is redirected to paypal to login to their account – then redirected back to our page for final checkout.

    Any ideas?

    Fatal error: Call to undefined method WC_Order::get_discount_total() in /home/OUR URL/public_html/wp-content/plugins/paypal-for-woocommerce/classes/wc-gateway-calculations-angelleye.php on line 187

    • This topic was modified 6 years, 1 month ago by MIke.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor angelleyesupport

    (@angelleyesupport)

    Hi @iconasys,
    We’re sorry that you’re having trouble – I think that we can help. There appears to be a conflict between the plugins and/or themes that you have installed, as we’ve not received reports of this issue from other users/customers. Additionally, we attempted to reproduce this issue using our testing environment and things are working as expected. Please try the following debug steps:

    1. Check your site’s PHP version and make sure that it is 5.6 or above
    2. Disable all plugins with the exception of WooCommerce and PayPal for WooCommerce, and determine whether or not the issue is still occurring
    3. Re-enable additional plugins one by one, testing after each add-on is enabled, in order to find the culprit

    If, after disabling all additional plugins, you are still seeing the same issue, then switch to basic twenty theme with both WooCommerce and PayPal for WooCommerce enabled and then check once again.

    Please follow these steps and let us know your results.

    Thank you!

    I have the same thing happening on one of the websites I manage. I deactivated all plugins, reverted back to the default theme and also tried changing the PHP version. Nothing worked. Are there any other solutions?

    On the final click to pay (after logging in to PayPal):

    GET /wc-api/WC_Gateway_PayPal_Express_AngellEYE/?pp_action=do_express_checkout_payment&utm_nooverride=1&order_id=XXXXX HTTP/1.0

    500 ERROR

    mod_fcgid: stderr: PHP Fatal error: Call to undefined method WC_Order::get_discount_total() in /xxx/httpdocs/wp-content/plugins/paypal-for-woocommerce/classes/wc-gateway-calculations-angelleye.php on line 187, referer: https://www.oldfireplaces.co.uk/checkout/

    Warning

    Plugin Contributor angelleyesupport

    (@angelleyesupport)

    Hi @coderra,

    So you are seeing this only from checkout page? Because on cart I clicked the smart button and that took me to paypal without any issue. Can you list down steps to reproduce this?
    I still believe this is either a plugin or theme conflict of some sort.
    Also, are you using the latest version of woocommerce?

    Hi Oliver.

    I can add to cart, go to checkout, click checkout and it then let’s me login to PayPal and returns to the website. Then when I click on the checkout button on the website I get the error. It’s the final phase when you go to pay.

    Here is a test product. Go all the way through to pay – and you should get the error.
    https://www.oldfireplaces.co.uk/product/test/

    David

    Plugin Contributor angelleyesupport

    (@angelleyesupport)

    I just followed your process and I can see this => https://prntscr.com/lfdlq1. Which is not from our plugin. Did you disabled Paypal for woocommerce on checkout page??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error During Checkout: Call to undefined method WC_Order::get_discount_tot’ is closed to new replies.