Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Group Pricing - how can I restrict against certain categories?

Group Pricing - how can I restrict against certain categories?

Views: 8,667

Results 1 to 20 of 27
15 Dec 2007, 8:06 PM
#1
dodgegirl avatar

dodgegirl

New Zenner

Join Date:
Nov 2007
Posts:
8
Plugin Contributions:
0

Group Pricing - how can I restrict against certain categories?

I am not finding many threads on the "group pricing" module, so I am posting here. I'm not sure if I am just overlooking something, or if it is a feature not installed by default.

However, I am wanting to set up Group Pricing for a group of individuals to get a specified discount off from items in my store, with the exception of one category. Is there a way to make such a restriction with Group Pricing? IE: the way you can set restrictions with coupons.

I do not want the customers to have to remember a coupon code each time they shop, etc. Therefore, the group pricing seems like a better choice.

Thanks in advance!!

15 Dec 2007, 8:55 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,712
Plugin Contributions:
56

Re: Group Pricing - how can I restrict against certain categories?

You have to write software to do this. There's no admin facility for restrictions on group discounts.

15 Dec 2007, 9:29 PM
#3
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Group Pricing - how can I restrict against certain categories?

swguy:

You have to write software to do this. There's no admin facility for restrictions on group discounts.
For some reason, the term "write software" makes it sound more difficult than it should (just me):laugh:

15 Dec 2007, 9:34 PM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,712
Plugin Contributions:
56

Re: Group Pricing - how can I restrict against certain categories?

It's just ones and zeros. It's not rocket surgery.

11 Jan 2008, 3:47 PM
#5
tatiana avatar

tatiana

New Zenner

Join Date:
Jun 2006
Posts:
83
Plugin Contributions:
0

Re: Group Pricing - how can I restrict against certain categories?

Did you ever find/create a solution to this problem? I actually want to create a group who only gets the discount on one category and then regular prices on the rest.

15 Mar 2008, 8:29 PM
#6
ralyn avatar

ralyn

New Zenner

Join Date:
Sep 2006
Location:
New Boston, IL
Posts:
57
Plugin Contributions:
0

Re: Group Pricing - how can I restrict against certain categories?

I'm also interested in a solution for this - I have 1 category that needs to be a different discount rate than the rest for groups.

1 Apr 2008, 10:15 PM
#7
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: Group Pricing - how can I restrict against certain categories?

I am aslo interested in this and actually posted about it...I guess I'm in trouble now. I didn't check first. OOPS!! :blush:

5 Apr 2008, 11:39 AM
#8
adoy avatar

adoy

New Zenner

Join Date:
Feb 2008
Posts:
45
Plugin Contributions:
0

Re: Group Pricing - how can I restrict against certain categories?

sleepless:

I am aslo interested in this and actually posted about it...I guess I'm in trouble now. I didn't check first. OOPS!! :blush:

i second

14 Apr 2008, 3:31 PM
#9
aeisecurity avatar

aeisecurity

New Zenner

Join Date:
Feb 2008
Posts:
10
Plugin Contributions:
0

Re: Group Pricing - how can I restrict against certain categories?

i too need something like this! does anyone have any idea's?

9 May 2008, 5:29 PM
#10
mygreygoose avatar

mygreygoose

New Zenner

Join Date:
Jun 2007
Posts:
91
Plugin Contributions:
0

Re: Group Pricing - how can I restrict against certain categories?

I need this too. I'm currently trying to find a work around.

3 Jun 2008, 5:43 PM
#11
stflats avatar

stflats

New Zenner

Join Date:
Apr 2007
Posts:
81
Plugin Contributions:
0

Re: Group Pricing - how can I restrict against certain categories?

I think the only way this is going to happen is either the zc team adds this function to the next upgrade or we are basically going to have to hire someone to write it because I need the same thing. If anyone happens to have it written please post back and let us know if it works... Oh, and how much it cost to have it written:smile:...

thanks

6 Jun 2008, 4:35 AM
#12
dhvrm avatar

dhvrm

New Zenner

Join Date:
May 2008
Posts:
5
Plugin Contributions:
0

Re: Group Pricing - how can I restrict against certain categories?

Hey everyone --

I have a client who wanted this feature and so I've put together a hack that has this net effect.

Basically, my hack excludes individual products from group discounts. It does so by adding a read-only attribute to the item.

Because you can globally apply a given attribute to all items in a category via the attributes manager, this has the same effect as excluding all items in a category from group pricing. As an added bonus, each product's catalog page will display the fact that the item is not eligible for group discounts, which prevents your customers from complaining when they see the discount they are getting is not for the entire cart.

Because I have just finished this hack and I need to be awake and on the road in six hours, I am not going to describe the hack now. However, I plan to discuss this hack in depth in a follow-up post, which I will probably put together on Saturday.

It's not a really complicated hack, but it is multiple steps and it does involve messing with an important core ZenCart PHP file. I don't want to give it up to the public without describing it in full, so you'll have to hang on a couple of days.

Also, again, this is a hack, not a mod. The difference is that you can't simply plug this item in, you need to do it manually; and if you update ZenCart, there's a good chance you'll wind up replacing the hack.

All that said, a final bit of good news: I'll be releasing this hack under the Creative Commons Attribution / Share-Alike license, which means you'll be getting it for free. (It also means you'll be using it at your own risk.)

Look for my post over the weekend.

9 Jun 2008, 6:29 PM
#13
dhvrm avatar

dhvrm

New Zenner

Join Date:
May 2008
Posts:
5
Plugin Contributions:
0

Re: Group Pricing - how can I restrict against certain categories?

Hi everyone --

Sorry for the delay in getting this out. Bear with me, it's coming and coming soon!

After working on this, running into the usual issues and thinking about it for a while, I decided to do this correctly and make a new group pricing module that will replace the standard group pricing module that ships with Zen Cart.

This will make maintaining the module much easier. It also allows me to make improvements to the current group discount module that should increase performance and reliability.

Again, I will update this topic when I am done.

11 Jun 2008, 12:17 AM
#14
pensive612 avatar

pensive612

Zen Follower

Join Date:
May 2006
Posts:
313
Plugin Contributions:
0

Re: Group Pricing - how can I restrict against certain categories?

thanks dhvrm,

I'm sure we'll all be here...

look forward to it.

30 Sep 2008, 8:15 AM
#15
fuzzybunny avatar

fuzzybunny

New Zenner

Join Date:
Sep 2007
Location:
Melbourne Australia
Posts:
60
Plugin Contributions:
0

Re: Group Pricing - how can I restrict against certain categories?

So Mr Doug,
Did we finally get this working?
Would be great to get this module if you have.
Thanks in advance.
Max

7 Jan 2009, 4:11 AM
#16
ralyn avatar

ralyn

New Zenner

Join Date:
Sep 2006
Location:
New Boston, IL
Posts:
57
Plugin Contributions:
0

Re: Group Pricing - how can I restrict against certain categories?

Has anybody succeded at doing this yet?

Right now I'm having my Consultants use the invoice me option if their order contains catalogs or consultant supplies - this is making order processing take longer due to having to edit their order to correct the supplies price, then invoice them. Being able to exclude the Consultant Supplies category would so much easier, faster & cause less confusion for my consultants.

29 Jan 2009, 12:35 AM
#17
loriw avatar

loriw

New Zenner

Join Date:
Nov 2006
Posts:
62
Plugin Contributions:
0

Re: Group Pricing - how can I restrict against certain categories?

I too would be interested to know if there is a fix for this. I have one category I would like to restrict from group pricing but am not sure how to do that. Anyone else know a fix?

29 Jan 2009, 5:29 AM
#18
dhvrm avatar

dhvrm

New Zenner

Join Date:
May 2008
Posts:
5
Plugin Contributions:
0

Re: Group Pricing - how can I restrict against certain categories?

Hey all --

Apologies for delay in getting back to you all on this, but the short answer is, I'm not going to distribute my fix for this problem.

The hack I put together for my client is very complex due to the way Zen Cart computes and stores order totals.

Basically, to properly do group pricing by category requires a significant rewrite of how Zen Cart stores order totals. This is especially true if you charge sales tax, and really pronounced if you have multiple tax rates.

I'm not willing to pass along my solution for a number of reasons.

  1. My solution is more code fork than hack. (In development, "forking" code means to start with one thing and create something different.) It's a bad idea and bad form to release code forks.
  2. Because I have made radical changes to the way Zen Cart processes order information, I'd lay the odds at "pretty good" my changes might interfere with a plug in / mod someone else made, and might therefore break your cart.
  3. The changes I made span many core Zen Cart classes and pages. As a result, you can't automatically update Zen Cart if you use these changes, and that possibly includes security updates.
  4. Because I have only used this code in one environment, I cannot be completely certain of its overall security (in other words, server settings / installations others may use might make my changes, which are secure in my environment, insecure).

Again, apologies for not replying sooner and not producing what I promised, but it would be very irresponsible of me to distribute what I have done. :oops:

20 Mar 2009, 2:04 PM
#19
wallya avatar

wallya

New Zenner

Join Date:
Mar 2009
Posts:
5
Plugin Contributions:
0

Re: Group Pricing - how can I restrict against certain categories?

Let's keep this thread fresh, as I need this add on too! :smile:

31 Aug 2009, 8:16 AM
#20
littlehawk avatar

littlehawk

New Zenner

Join Date:
Jan 2009
Posts:
85
Plugin Contributions:
0

Re: Group Pricing - how can I restrict against certain categories?

This is what I am finding as well:smile: