Coupon codes on checkout instead of cart?

blicht454blicht454 Member
in Important News edited September 2012
Any way to make this happen in 7.2? I'd really like to have the coupon code option on the checkout page instead of the cart page. Any help is much appreciated.
Thanks!
Tagged:
Comments
  • fc_adamfc_adam FoxyCart Team
    @blicht454,

    Currently we don't have the option out of the box to add coupons from the checkout. That said though, there is a snippet available here: http://wiki.foxycart.com/snippets/start that will let you achieve what you're after.
  • Hmm, that doesn't seem to be working, but that's okay. I'll just try to get it working properly on the cart. At the moment, it's not working. I've created a couple coupons, but inside my cart all I see is "Add a coupon" without the text input. The text input is there, but it's coming in automatically styled with display:none. Am I doing something wrong?

    Here's a link to my site: www.fiordilattegelato.com/order

    Thanks!
  • sparkwebsparkweb Member, Integration Developer, FoxyShop, Order Desk
    It is automatically hidden if there aren't any applicable coupons for the products in your cart. So check to make sure that your dates are correct and product categories match up between the products and the coupon.
  • Ok, so I'm definitely not creating the coupon properly. What's the correct syntax if I want a coupon that will apply a 50% discount to all products, no matter the quantity? I guess I'm a bit confused on what I should enter in the "Coupon Details" section when I'm creating the coupon.
  • sparkwebsparkweb Member, Integration Developer, FoxyShop, Order Desk
    you want "Discount by a percentage based on quantity" and the syntax is: 1-50
  • Yeah, that's what I have, but the input for the code still isn't showing up. The style is still coming through with "display: none". Any ideas?
  • fc_adamfc_adam FoxyCart Team
    @blicht454,

    I've responded to your question in your other thread here: http://forum.foxycart.com/discussion/6250/coupon-codes-101
  • Hmm, I also need a coupon field on the checkout, not on cart. Any plans to add this, and is there a workaround I could apply right now?
  • fc_adamfc_adam FoxyCart Team
    @juhalindfors,

    It's something we'll possibly revisit in the future, but for now there is a workaround in the way of this snippet: http://wiki.foxycart.com/snippets/checkout/adding_a_coupon_code_field
  • sparkwebsparkweb Member, Integration Developer, FoxyShop, Order Desk
    I think it's worth mentioning here that the FoxyCart team made the decision to only include coupons on the cart with a purpose. See the "Except When They Don't" section at http://www.foxycart.com/features/feature/discounts/coupons for the rationale behind the cart-only coupons.
Sign In or Register to comment.