Skip to content

Commit 8e5adb4

Browse files
Merge pull request #4172 from spaghetticode/spaghetticode/update-cart-fix
Recalculate promotions after destroying/refreshing shipments
2 parents adbc70b + 0a9149b commit 8e5adb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/app/models/spree/order_contents.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def update_cart(params)
4242
# If we do not update first, then the item total will be wrong and ItemTotal
4343
# promotion rules would not be triggered.
4444
reload_totals
45-
PromotionHandler::Cart.new(order).activate
4645
order.ensure_updated_shipments
46+
PromotionHandler::Cart.new(order).activate
4747
end
4848
reload_totals
4949
true

0 commit comments

Comments
 (0)