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.

Hide "Add a Coupon"

RickWRickW Member
in Help edited July 2011
Is it possible to hide the "Add a Coupon" link only on one product? I'm running a special, and this product is in a category that has no discounts, but it seems to me that if someone sees "Add a coupon", they might feel that they are missing an opportunity.
Comments
  • sparkwebsparkweb Member, Integration Developer, FoxyShop, Order Desk
    The feature doesn't exist natively, but if you've got some jQuery skills you could tweak it in your cart template to make this happen. Onload you would loop through the cart products from the JSON object and if the product is there, show the coupon <tr> line. Otherwise, you'd hide it. Or maybe go the other way around so you don't have a momentary flash where it disappears.

    Here's some info on the JSON object: http://wiki.foxycart.com/v/0.7.1/advanced/json
Sign In or Register to comment.