Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Apply coupon discount to more than one line item

Apply coupon discount to more than one line item

Started by keyconn on 1 Jun 2015, 6:41 PM · Views: 6,470

Results 1 to 20 of 23
1 Jun 2015, 6:41 PM
#1
keyconn avatar

keyconn

New Zenner

Join Date:
Apr 2015
Location:
Pennsylvania, USA
Posts:
21
Plugin Contributions:
0

Apply coupon discount to more than one line item

Is it possible to have a coupon code applied to more than one item in the cart?

For example business sells cookies and offers multiple flavors in that packaging. A customer orders that product in 2 different flavors. Shopping cart shows Cookie - Vanilla 1 ordered and Cookie- Chocolate 1 ordered. Customer enters discount coupon code thinking each package will be discounted. However, the discount is only being applied to one of the items.

How can I get the coupon discount to be applied to both items?

1 Jun 2015, 6:59 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Apply coupon discount to more than one line item

Are Vanilla and Chocolate attributes of Cookie?

1 Jun 2015, 7:01 PM
#3
keyconn avatar

keyconn

New Zenner

Join Date:
Apr 2015
Location:
Pennsylvania, USA
Posts:
21
Plugin Contributions:
0

Re: Apply coupon discount to more than one line item

Yes they are

1 Jun 2015, 7:12 PM
#4
keyconn avatar

keyconn

New Zenner

Join Date:
Apr 2015
Location:
Pennsylvania, USA
Posts:
21
Plugin Contributions:
0

Re: Apply coupon discount to more than one line item

I also set this up as separate products and get the same results.

1 Jun 2015, 7:32 PM
#5
keyconn avatar

keyconn

New Zenner

Join Date:
Apr 2015
Location:
Pennsylvania, USA
Posts:
21
Plugin Contributions:
0

Re: Apply coupon discount to more than one line item

I figured it out. The only work around is to use percentages on the coupon instead of dollar amounts to get it to apply to all the items in cart.

1 Jun 2015, 8:00 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Apply coupon discount to more than one line item

Works the same for me. I'd be tempted to call that a bug.

1 Jun 2015, 8:12 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Apply coupon discount to more than one line item

I will have to check this out ... what are your settings on the Discount Coupon and the Restrictions that you have set up?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

1 Jun 2015, 8:26 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Apply coupon discount to more than one line item

I have 1 Cookies with multiple Attributes, Example Color Red, Yellow and Green.

I add to cart:
1 x Cookies ($100.00) with Color Red ($10.00) $110.00
1 x Cookies with Color Green $110.00

I add a Discount Coupon for 10% off where Restrictions are:
Top DENY
Cookies ALLOW

I add another Product to the cart with a value of $75.00 to ensure only the Cookies get the discount and I have a Discount of $22.00 for the 10% of $220 worth of Cookies.

So far, I cannot reproduce the error.

Additional details might help to reproduce your error ... :lookaroun

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

1 Jun 2015, 10:16 PM
#9
keyconn avatar

keyconn

New Zenner

Join Date:
Apr 2015
Location:
Pennsylvania, USA
Posts:
21
Plugin Contributions:
0

Re: Apply coupon discount to more than one line item

Ajeh - it works fine when using percentage discounts. It does not apply the discount in the same manner if specific dollar amounts are used.

If you were to enter in 10.00 on that coupon it will only discount 10.00 regardless of the amount of items eligible for the discount in the shopping cart.

Ajeh:

I have 1 Cookies with multiple Attributes, Example Color Red, Yellow and Green.

I add to cart:
1 x Cookies ($100.00) with Color Red ($10.00) $110.00
1 x Cookies with Color Green $110.00

I add a Discount Coupon for 10% off where Restrictions are:
Top DENY
Cookies ALLOW

I add another Product to the cart with a value of $75.00 to ensure only the Cookies get the discount and I have a Discount of $22.00 for the 10% of $220 worth of Cookies.

So far, I cannot reproduce the error.

Additional details might help to reproduce your error ... :lookaroun

1 Jun 2015, 10:19 PM
#10
keyconn avatar

keyconn

New Zenner

Join Date:
Apr 2015
Location:
Pennsylvania, USA
Posts:
21
Plugin Contributions:
0

Re: Apply coupon discount to more than one line item

I neglected to give you additional details in my last reply:

I have restrictions set up so that only 2 items within one category are eligible for the discount. I have "denied" all other categories and all other products within the desired category. I have set up the product as one item with attributes and as separate items with identifying titles for flavor and received the same results using the dollar discount amount.

2 Jun 2015, 12:14 AM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Apply coupon discount to more than one line item

I see .. you want $15.00 x qty and not $15.00 per order if a Product qualifies ... is that correct?

If so, you are correct that is NOT how a dollar discount works on the Discount Coupon ... :lookaroun

Let me hunt through the code and see how hard it would be to change it to be $XX.XX off per quantity ... I have to give that some thought ... :cool:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Jun 2015, 12:33 AM
#12
keyconn avatar

keyconn

New Zenner

Join Date:
Apr 2015
Location:
Pennsylvania, USA
Posts:
21
Plugin Contributions:
0

Re: Apply coupon discount to more than one line item

Yes, that is correct.

I am not a programmer by any means, but I see how it is easier to get the system to work with the percentages instead of the manner I wish it would work.

It would also be nice if the system worked in reverse. Meaning, it would be better to have the ability to apply the coupon to a category or product instead of having it applied to all products and then setting all the restrictions.

I have a client with a small site but she really challenges me with her promotions and finding a way to make them work within the coupon system. :-)

Thank you all for your input and assistance!

2 Jun 2015, 2:25 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Apply coupon discount to more than one line item

Do you want this for ALL coupons with an amount or just for SOME coupons with an amount?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Jun 2015, 4:02 PM
#14
keyconn avatar

keyconn

New Zenner

Join Date:
Apr 2015
Location:
Pennsylvania, USA
Posts:
21
Plugin Contributions:
0

Re: Apply coupon discount to more than one line item

I'm thinking ALL. I'm trying to run this scenario through my mind to determine if there would be situation I would not want it applied to all ...

If I say SOME, are you suggesting it would be flexible in assigning it to work in that manner? If that is so, then make it so the client or site admin has the option based on the promotion they are running.

2 Jun 2015, 4:08 PM
#15
ajeh avatar

ajeh

Oba-san

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

Re: Apply coupon discount to more than one line item

If you want it for ALL Discount Coupons with Amount, then it is an easier fix ... if you want it for SOME Discount Coupons with Amount then it is a lot of work ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Jun 2015, 6:22 PM
#16
keyconn avatar

keyconn

New Zenner

Join Date:
Apr 2015
Location:
Pennsylvania, USA
Posts:
21
Plugin Contributions:
0

Re: Apply coupon discount to more than one line item

By doing for ALL it isn't going to effect the ability to set coupons for shipping or order totals, correct?

Ajeh:

If you want it for ALL Discount Coupons with Amount, then it is an easier fix ... if you want it for SOME Discount Coupons with Amount then it is a lot of work ...

2 Jun 2015, 6:23 PM
#17
ajeh avatar

ajeh

Oba-san

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

Re: Apply coupon discount to more than one line item

Can you expand on that thought? I am not quite following you there ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Jun 2015, 6:59 PM
#18
keyconn avatar

keyconn

New Zenner

Join Date:
Apr 2015
Location:
Pennsylvania, USA
Posts:
21
Plugin Contributions:
0

Re: Apply coupon discount to more than one line item

When you set up a coupon you have the ability to choose if it is for shipping, or a discount off the total order, or a discount on product. I wanted to confirm it wouldn't effect the ability to set coupons for shipping or order totals.

2 Jun 2015, 7:00 PM
#19
ajeh avatar

ajeh

Oba-san

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

Re: Apply coupon discount to more than one line item

When set for ALL it would only affect the Discount Coupons for Amount ...

Are you using the original ot_coupon.php for v1.5.1?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Jun 2015, 7:08 PM
#20
keyconn avatar

keyconn

New Zenner

Join Date:
Apr 2015
Location:
Pennsylvania, USA
Posts:
21
Plugin Contributions:
0

Re: Apply coupon discount to more than one line item

Yes, currently. The new site for this client will be using 1.5.4. We are in the process of upgrading her site.