Knowledge Base Modules, Apps & Extensions On Sale How can I limit a customer to one coupon with...

How can I limit a customer to one coupon with the On Sale module?

Author Bill Brewer
Created 10-28-2009 11:53 pm
Last Modified 09-29-2012 03:31 pm
One of the features of the On Sale module is to allow multiple coupons to be used by a customer at one time.  If you would prefer a customer only be able to enter one coupon make the following edit:

X-Cart 4.0.x - 4.3.x
  • skin1/modules/Discount_Coupons/add_coupon.tpl
X-Cart 4.4.x - 4.5.x
  • skin/common_files/modules/Discount_Coupons/add_coupon.tpl

Find this code near line 12:

<form action="cart.php" name="couponform"> <input type="hidden" name="mode" value="add_coupon" />
Immediately BEFORE enter:

The 1st option will allow one X-Cart coupon, and one On Sale coupon.  The 2nd option will allow only one coupon per order regardless if it is an X-Cart coupon or On Sale coupon.

{if !$cart.onsale_coupons}
---OR ---

{if !$cart.onsale_coupons && $cart.coupon_discount == 0}
Then find this code near line 30:

<input type="hidden" name="mode" value="add_coupon" /> </form>
Immediately after add:

{else}     <p>Limit one coupon per order.</p> {/if}

NOTE: The text can be changed as needed.

Was this article helpful?


Still Have Questions?

Let Us Help You

My Account