• Hello,

    discounts/fees are not applied on the order pay page.
    Here is a ticket on this topic which explains why:
    https://github.com/woocommerce/woocommerce/issues/17794

    I propose you also don’t hook the payment method name change (<small>(%s discount)</small>) for this page, as no discounts are applied when paying the order via the order-pay page.

    This should work when you implement following check after line 54 of class-woo-payment-add-discounts.php: is_wc_endpoint_url('order-pay')

    so it should be like following

    if (is_wc_endpoint_url('order-pay')) {           
    return $title;
      }

    • This topic was modified 1 year, 4 months ago by hovenberg.
  • The topic ‘Fix Order-Pay Page (doesn’t work with plugin)’ is closed to new replies.