Recalculate shipping at checkout
-
I’ve got a custom payment method that requests discount card details from the user. I’ve coded that part just fine.
The discount card details entitle the customer to a discount. When the customer hits the Place Order button I apply a coupon code programatically and the discount appears on the order confirmation page.
The problem is that I offer free shipping on orders over $49 but because the discount is applied at checkout the shipping/cart is not recalculated so even if the total with discount ends up being $45, the free shipping option is still applied.
What I like to do is as part of my custom payment process, is to recalculate shipping based upon the total after the discount has been applied.
I’ve had a look at the docs but I can’t seem to find a method that recalculates the cart at checkout.
Any suggestions?
- The topic ‘Recalculate shipping at checkout’ is closed to new replies.