Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/app/code/local/TM/FireCheckout/controllers/IndexController.php b/app/code/local/TM/FireCheckout/controllers/IndexController.php
- index bc5ef6f..739b9e0 100644
- --- a/app/code/local/TM/FireCheckout/controllers/IndexController.php
- +++ b/app/code/local/TM/FireCheckout/controllers/IndexController.php
- @@ -1148,8 +1148,10 @@ public function saveCouponAction()
- // (free shipping may be canceled or added)
- $quote->getShippingAddress()->setCollectShippingRates(true)->collectShippingRates();
- - // Shipping methods always left in the place. Only price changes. (No max/min price rules that hides shipping methods)
- - // So we don't need to apply shipping method again
- + // Firecheckout has "Hide other shipping methods when free is available",
- + // so we need to re-apply method
- + $quote->getShippingAddress()->save(); // save is required to get updated rates
- + $this->getCheckout()->applyShippingMethod();
- // if shipping price was changed, we need to recalculate totals again.
- // Example: SELECTED SHIPPING METHOD NOW BECOMES FREE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement