Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Group Discount - How to NOT apply other discounts?

Group Discount - How to NOT apply other discounts?

Locked

Views: 8,012

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
10 Jul 2006, 3:43 PM
#1
jplanet avatar

jplanet

New Zenner

Join Date:
Apr 2006
Posts:
46
Plugin Contributions:
0

Group Discount - How to NOT apply other discounts?

I have a store running a sale of 10% off of all books. Teachers and Librarians get a much bigger discount, but the client does not want them to get the 10% discount in addition to their discoount...

Any suggestions on the best way to do this? maybe by using coupons somehow?

11 Jul 2006, 12:54 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Group Discount - How to NOT apply other discounts?

There is not an option for this built into Zen Cart at this time ...

You would need to custom code something to test for existing product discounts, specials, sales etc. prior to applying the group discounts ...

Note: if I usually got 10% off at your shop ... then found something on sale/special for 10% off and found I was no better off without the special/sale ... I'd be a tad bit miffed ...

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!

11 Jul 2006, 2:17 PM
#3
jplanet avatar

jplanet

New Zenner

Join Date:
Apr 2006
Posts:
46
Plugin Contributions:
0

Re: Group Discount - How to NOT apply other discounts?

Ajeh:

There is not an option for this built into Zen Cart at this time ...

You would need to custom code something to test for existing product discounts, specials, sales etc. prior to applying the group discounts ...

Note: if I usually got 10% off at your shop ... then found something on sale/special for 10% off and found I was no better off without the special/sale ... I'd be a tad bit miffed ...

Teachers get 25% off, Librarians 30% off -- so they will be very happy and not expect the 10% sale that everyone else gets...

Any advice on where to look for the code that applies the group discount?

11 Jul 2006, 4:08 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Group Discount - How to NOT apply other discounts?

The module that applies group discounts is:
/includes/modules/order_total/ot_group_pricing.php

But it works based on "product prices" supplied to it by the shopping cart. "Specials" and "Sales" are already applied at this point. All the pricing functions in the /includes/functions files are based around this same concept.

What you're asking for can be done, but is not a simple case of "just change this to that" for a few lines of code, and will require studying interaction of pricing functions, significant testing, and lots of patience.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Jul 2006, 5:34 PM
#5
jplanet avatar

jplanet

New Zenner

Join Date:
Apr 2006
Posts:
46
Plugin Contributions:
0

Re: Group Discount - How to NOT apply other discounts?

DrByte:

The module that applies group discounts is:
/includes/modules/order_total/ot_group_pricing.php

But it works based on "product prices" supplied to it by the shopping cart. "Specials" and "Sales" are already applied at this point. All the pricing functions in the /includes/functions files are based around this same concept.

What you're asking for can be done, but is not a simple case of "just change this to that" for a few lines of code, and will require studying interaction of pricing functions, significant testing, and lots of patience.

I see what you mean...What do you think of this approach:

  • Create a group with the 10% discount
  • Have that be the default group that all new customers belong to...

This way when they are switched to another group, they will only get that discount, not both...?

11 Jul 2006, 6:50 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Group Discount - How to NOT apply other discounts?

If your "10% off" is ALWAYS going to exist, AND applies to all products in your store, that's fine.

However, all your prices will show up as regular prices, with no indication that they are supposedly saving 10%, until they go to checkout. If what you're after from a visual perspective is to show that things are 10% off, then you'll lose that edge.

Why not try this:

Regular customers: shop, seeing regular price plus sale of 10%
Teachers: shop, seeing regular price plus sale of 10%, and at checkout, get an additional 16.7% off the already-discounted prices, giving them a total of 25% off regular
Librarians: shop, regularly, but get an additional 22.22% off, giving a total of 30% off regular

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Jul 2006, 8:10 PM
#7
jplanet avatar

jplanet

New Zenner

Join Date:
Apr 2006
Posts:
46
Plugin Contributions:
0

Re: Group Discount - How to NOT apply other discounts?

DrByte:

If your "10% off" is ALWAYS going to exist, AND applies to all products in your store, that's fine.

However, all your prices will show up as regular prices, with no indication that they are supposedly saving 10%, until they go to checkout. If what you're after from a visual perspective is to show that things are 10% off, then you'll lose that edge.

Why not try this:

Regular customers: shop, seeing regular price plus sale of 10%
Teachers: shop, seeing regular price plus sale of 10%, and at checkout, get an additional 16.7% off the already-discounted prices, giving them a total of 25% off regular
Librarians: shop, regularly, but get an additional 22.22% off, giving a total of 30% off regular

You are a genius! That is perfect! How do you calculate that? It will be a very handy equation to have stickied to my monitor...

:D

12 Jul 2006, 5:51 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Group Discount - How to NOT apply other discounts?

A = Full Price      (ie: $90)
B = discount #1  (10%)
C = Discounted price #1  ($81.00)

D = discount #1 (25%)
E = Discounted price #2  ($67.50)  =  A*(1-D)

Discount Difference = (C-E)/C 

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Jul 2006, 7:28 AM
#9
jplanet avatar

jplanet

New Zenner

Join Date:
Apr 2006
Posts:
46
Plugin Contributions:
0

Re: Group Discount - How to NOT apply other discounts?

DrByte:

A = Full Price (ie: $90)
B = discount #1 (10%)
C = Discounted price #1 ($81.00)

D = discount #1 (25%)
E = Discounted price #2 ($67.50) = A*(1-D)

Discount Difference = (C-E)/C


This is great, thank you very much for taking the time to write this!
12 Jul 2006, 10:04 PM
#10
kotp avatar

kotp

New Zenner

Join Date:
Jun 2006
Location:
Minnesota
Posts:
38
Plugin Contributions:
0

Re: Group Discount - How to NOT apply other discounts?

I have found this thread to be very interesting. I have a different problem in my store.

I am trying to sell gift certificates (wonderful feature:thumbsup: ) but would like anyone in the 5% club to not get a discount on the gift certificate, as this would potentially cause a double discount on a purchase. ie., Buy a gift certificate for 50 dollars, get a 5 percent discount, then purchase something with the gift certificate for $50 dollars and receive a 5 percent discount again.

Is there a way to limit the Group Discount to not be applied to a product, or am I thinking of this the wrong way? :blink:

Thanks.

16 Jul 2006, 9:48 PM
#11
emily_mommystouch avatar

emily_mommystouch

New Zenner

Join Date:
Mar 2006
Posts:
12
Plugin Contributions:
0

Re: Group Discount - How to NOT apply other discounts?

I have a similar problem. I am a wholesale company and my international distributers allready get a discount, however my retailers here in the states get discounts based on the amount that they spend for example if they spend 1,000 they get an additional 5%, $2000 6% and so forth. Is there any way to set this up automatically? Right now I have the retailers put codes in for each level but I would prefer it to be automatic.

16 Jul 2006, 10:33 PM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Group Discount - How to NOT apply other discounts?

kotp:

I have found this thread to be very interesting. I have a different problem in my store.

I am trying to sell gift certificates (wonderful feature:thumbsup: ) but would like anyone in the 5% club to not get a discount on the gift certificate, as this would potentially cause a double discount on a purchase. ie., Buy a gift certificate for 50 dollars, get a 5 percent discount, then purchase something with the gift certificate for $50 dollars and receive a 5 percent discount again.

Is there a way to limit the Group Discount to not be applied to a product, or am I thinking of this the wrong way? :blink:

Thanks.

If your Gift Certificates are setup properly, no discount will be applied ...

Gift Certificates need to be marked:
Product is Virtual: YES

And the model number must start with:
GIFT

The GIFT must be in all caps

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!

16 Jul 2006, 10:35 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Group Discount - How to NOT apply other discounts?

Emily-MommysTouch:

I have a similar problem. I am a wholesale company and my international distributers allready get a discount, however my retailers here in the states get discounts based on the amount that they spend for example if they spend 1,000 they get an additional 5%, $2000 6% and so forth. Is there any way to set this up automatically? Right now I have the retailers put codes in for each level but I would prefer it to be automatic.

This is not built in to Zen Cart at this time, you would need to customize the code to manage it ...

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!

16 Jul 2006, 10:40 PM
#14
emily_mommystouch avatar

emily_mommystouch

New Zenner

Join Date:
Mar 2006
Posts:
12
Plugin Contributions:
0

Re: Group Discount - How to NOT apply other discounts?

If anyone of you do this type of thing please contact me with apx how much it will cost. I really want to set this up. I am hopeless with anythig that I cant just choose a button for. And honestly dont have time to try to figure it out.

9 Mar 2010, 2:16 PM
#15
enzo_ita avatar

enzo_ita

Zen Follower

Join Date:
Jul 2009
Posts:
402
Plugin Contributions:
0

Re: Group Discount - How to NOT apply other discounts?

Hi, I read all this thread and there is no solution to the problem.
I am ready to pay for a mod.
I want three simple thing:
T1. he ability of selecting if a group discount applies on base price or base price plus promotions, sales, or both.
2. The abilty of connecting a discount code to a customer so that the same code can not be used by a different customer.
3. The ability of showing discounted prices to a customer owning a discount code when logged in.
Please contact me either here or by private message.
Thanks
Enzo