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 Code for Free Shipping + Discount

in Help edited March 2014
Good afternoon.

I'm looking to create a coupon code that gives customers free shipping plus a percentage discount (10%).

Is it possible to do this or will I need two separate coupon codes for each item?
  • fc_adamfc_adam FoxyCart Team

    Definitely possible with one coupon - although we don't currently allow native 'free shipping' coupons. So basically what you'd do is set up your 10% off coupon, and then use that coupon to also trigger the javascript to allow free shipping. We have some snippets related to that on our wiki here:
  • Adam,

    Is it possible to take this same coupon and make it 2 day shipping?
  • fc_adamfc_adam FoxyCart Team

    You can do pretty much whatever you need to on your side in the javascript. You'll just need to modify the shipping that you're using as required - check the snippets section for a snippet that relates to the shipping method you're using.
  • Hi Adam,

    For some reason this coupon is not working on my cart, and I've gone over this several times to no avail. Using this code:

    Question: I currently have my cart settings set to $6 flat rate shipping, so is it possible that even though I've also enabled the "free ground shipping" it's being overridden?

    I've looked at this thread where you helped someone else out with this problem here:

    Could you direct me where I should look for this code in the checkout template? I just pasted it into my editor and see that it's 24000 words long :)

    Any other possible recommendations?

    My store:
  • fc_adamfc_adam FoxyCart Team

    If you're wanting to edit the shipping amount on the checkout, you need to set the admin to a flat rate of $0. There is some protection in the checkout processing that prevents the shipping from being modified below what it's set in the admin. That means you need to then set the shipping completely in the javascript.
  • Adam,

    Thank you for your answers.

    I set the default shipping for my category to $0,

    then used the javascript you entered here:

    The issue now is that all coupons seem to trigger no shipping.

    FWIW I changed "Ship4Free" and "Free Shipping" to the coupon code and coupon name that I wanted for my coupon.

    Any ideas?

    Thank you

    What would I add to the javascrip to specify free 2 day shipping for this script?

    Does the fact that I use Fulfillment by Amazon change anything?

    Thank you.
  • fc_adamfc_adam FoxyCart Team

    The issue is occurring that the javascript is breaking when a coupon is present, but it's not the coupon you're testing for. Perhaps a better approach would be to switch to this:

    The difference here is that you just specify the coupon name - not the coupon code. That way if someone looks at the source of your page, they can't sneakily get the coupon code to use.

    One other quick note - if you want to be able to apply this free shipping to lots of different coupons, you could do that by having a part of the name that is common just to these coupons that get free shipping. So for example, if you have a coupon name like "A coupon just for you, Jim" and you substitute the name part depending on the customer, you could enter this as the coupon name to search for "a coupon just for you" - and any coupon name that contains that would get the free shipping on the checkout.

    In terms of being able to specify free 2 day shipping - how exactly did you want to present that to the customer? You could make use of the multiple flat rates snippet available on the wiki here: - and combine that with the script above to display a flat rate shipping rate to the customer instead of simply setting the flat rate shipping value directly.
Sign In or Register to comment.