When an order is saved, implementations of 'save' and 'presave' hooks (e.g. uc_taxes) can change the line items and therefore render the order_total property obsolete. In particular, this causes 'uc_payment_condition_order_balance' to fail when applied as a payment method condition during checkout ajax submissions. This is what's behind #1446176: Refresh available payment methods after applying a coupon. We should update the order_total after an order is saved as in the following patch.

CommentFileSizeAuthor
#1 1518522-order-total.patch436 byteswodenx
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

wodenx’s picture

FileSize
436 bytes
wodenx’s picture

Status: Active » Needs review
Rafal Lukawiecki’s picture

Works for me.

longwave’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.