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.

Custom Option Modifiers and Coupon Codes

bionik_mattbionik_matt Member
in Help edited September 2014
Is there a way to ensure that when a coupon code is used on an item in the cart that Custom Option Modifiers are not included in the price deduction if percentage discounting is used?

For instance, since we have certain requirements on the shipping and processing availability of each product we offer, we have to roll shipping into each item while still allowing them the option to choose what kind of shipping, so shipping becomes a custom option modifier on the product itself.

Let's say we have a Fancy Vase priced at $50. Shipping for the vase can either be free, expedited ($5), or next day ($10). If someone uses a 10% off coupon, we want to make sure that $5 is the only thing deducted from the price of the item, not $5.50 (for expedited) or $6.00 (for next day).
  • fc_adamfc_adam FoxyCart Team

    Unfortunately we don't currently have an option to apply a coupon before applying any price modifications. What I'd suggest is that instead of rolling the shipping cost in as a product option modifier, actually store it as a product option (or even as a hidden session attribute) and then on the cart use the flat rate shipping snippet to loop through the products in the cart, add together all their shipping costs, and provide that as the shipping total on the checkout.

    That way, any discounts to the product will just apply to the product.
  • @fc_adam

    What a clever way to do that. I will have to sit down and map all that out, but that may very well be the last little shove we need to get our cart completely under our thumb. Thanks again!
Sign In or Register to comment.