Adding Coupon Code on the Checkout Page


I've used the following snippet to add the ability to add a coupon code on the checkout page -

The coupon codes are applied, however the values within the fc_shipping section and fc_cart_foot_total are not updated unless you refresh the page.

Is there a known way to re-load these fields without reloading the entire page?

  • fc_adamfc_adam FoxyCart Team

    The snippet should already account for that - must be something going awry there - could you whisper me the store you've added this to?

    Also - just to add, our latest 2.0 version adds in coupon entry on the checkout, along with a whole host of other new features like responsive templates and a new configuration section within the administration for common settings. If upgrading is also an option for you - we'd definitely recommend doing that.
  • BLJBLJ Member
    Big thanks, I've just sent you a message :)
  • fc_adamfc_adam FoxyCart Team

    Thanks for sending that through. I've spotted the issue - the javascript wasn't correctly totalling the discounts as numbers - but appending as strings, so it was failing to correctly remove the discounts from the total. I've updated the snippet on the wiki at - if you grab that new version and replace the one in your template it should work for you.
  • BLJBLJ Member
    Brilliant, thank you
Sign In or Register to comment.