The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Coupon on checkout

mreeemreee Member
in Help edited August 2013
Right now I have the coupons on the checkout page.

my cheapest product is 19.99 with free shipping.

I have a free coupon, but if they use the free coupon there is no free shipping.

The problem that I'm having is that if customers enter the free coupon on the checkout page they get a free product and free shipping. This happens because shipping is calculated on page load if they put in the free coupon shipping is not recalculated.

Is there a way to force the page to reload if a coupon is added on the checkout page.

  • fc_adamfc_adam FoxyCart Team

    There is - could you link us to your checkout so we can see exactly what you're working with? Essentially it'll be adding in some extra javascript.
  • fc_adamfc_adam FoxyCart Team

    In the custom code for adding coupon entry to the checkout, make the following two changes:

    First, before this line:

    Add this line to make it this:
    fc_json = data;

    Then after this line:

    Add this line to make it this:

    That will force the custom shipping logic to run after a coupon is added on the checkout.
  • @fc_adam,

    I added the code but it does not change the shipping.
  • fc_adamfc_adam FoxyCart Team

    Ah - the shipping logic is only set to update if the country has changed. For what you need though, you need it to run if other aspects have changed too. With that in mind, try updating your custom logic with this:
  • Thanks! That worked for me.
Sign In or Register to comment.