Express Checkouts ignoring price modifications during woocommerce_before_calculate_totals #4124
Labels
component: ECE
Issues related to Express Checkout Element
priority: medium
The issue/PR is medium priority—it affects lots of customers substantially, but not critically.
Describe the bug
I'm building functionality where the item price is calculated based on attributes provided by the customer (i.e. height/width inputs on product page). These attributes are intercepted during
woocommerce_before_calculate_totals
action, where the price is calculated and set on the item.In the example above, the item price in checkout is updated to
50.00
and works as expected for normal card payments. However for Express Checkout options the price reverts back to what is configured on the product itself.To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected the item price in Express Checkout options (i.e. Apple Pay) to reflect that of what is displayed in normal checkout
Environment (please complete the following information):
Answers I'm looking for:
woocommerce_before_calculate_totals
be happening too late?Related (stale) issues
#2322
#2304
woocommerce/woocommerce-paypal-payments#1422
woocommerce/woocommerce#29535
The text was updated successfully, but these errors were encountered: