Zen Cart Logo

Apply coupon with minimum order

Views: 1,451

Results 1 to 6 of 6
18 Aug 2011, 4:25 PM
#1
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Apply coupon with minimum order

1.3.9h (upgraded from 1.3.9d)

My client wants to set a coupon to get a specific free product with a minimum order. You know, spend $30 get this item free kind of thing. Setting are:

Coupon Amount $15.95
Coupon Minimum Order $30.00

Restrictions are set to Disallow Top and allow the specific product.

The problem is the restrictions are applying to the Coupon Minimum as well. They have to spend $30 on the product to get one free.

Is there anyway to do this?

22 Aug 2011, 11:50 PM
#2
indy1725 avatar

indy1725

New Zenner

Join Date:
Aug 2009
Posts:
12
Plugin Contributions:
0

Re: Apply coupon with minimum order

I've got the same question.

I created a coupon with a Minimum Order of $20, and a value of $10 (the price of the item I'm trying to include for free). I've set the restrictions to 'Top Level Deny' and to allow the specific item, but it then requires the customer to spend $20 buying only the item I'm trying to give away. Setting the restrictions differently either causes the coupon to fail entirely or to be allowed for any combination of products.

Is there a way to create a coupon that requires a minimum amount of money, spent on any combination of products, but can only be redeemed if a specific product is also in the shopping cart?

23 Aug 2011, 12:18 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Apply coupon with minimum order

At this time, the minimum is based on the Product(s) allowed ...

You would need to customize how the calculation is made to alter this ...

23 Aug 2011, 2:42 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Apply coupon with minimum order

If you want ALL coupons to be based on the Order Total for the Discount Coupons with minimum amounts, you might look at the code in the file:
/includes/modules/order_total/ot_coupon.php

and find the two lines with:

// left for total order amount vs qualified order amount just switch the commented lines

and try to switch the IF statements to be based on the Full Order Total rather than the Order Total of the Restricted Products ...

3 Sep 2011, 7:51 AM
#5
psykryph avatar

psykryph

New Zenner

Join Date:
Dec 2010
Posts:
52
Plugin Contributions:
0

Re: Apply coupon with minimum order

Ajeh:

At this time, the minimum is based on the Product(s) allowed ...

You would need to customize how the calculation is made to alter this ...

Is there any way to set it so that the minimum order is by NUMBER of products bought, not the minimum overall PRICE?

3 Sep 2011, 2:06 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Apply coupon with minimum order

If you want your Discount Coupons to be based on Minimum Items then you would have to rewrite the code ...