How can I limit a customer to one coupon with the On Sale module?
Created
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
Find this code near line 12:
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.
---OR ---
Then find this code near line 30:
Immediately after add:
NOTE: The text can be changed as needed.
X-Cart 4.0.x - 4.3.x
- skin1/modules/Discount_Coupons/add_coupon.tpl
- 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.