Zen Cart Logo

Catagory based discounts

Locked

Views: 1,559

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
17 Jul 2006, 9:47 PM
#1
twrch2000 avatar

twrch2000

New Zenner

Join Date:
Jul 2006
Posts:
8
Plugin Contributions:
0

Catagory based discounts

I have a selection of products that come in several "variations." The problem that I run into is my pricing, I need to set it based on catagory, instead of based on product, since I discount "bulk" purchases based on total order within the catagory, instead of based on the individual. :blink:

example: Linen shirt, avail: blue, green, brown, red, white.
Pricing: 01-10shirts = 9.95ea (any combo of colors)
11-20shirts = 8.95ea
21-30shirts = 7.95ea
31+ shirts = 6.95ea

Currently I'm just "refunding" my customers :cry: after I do the calculations when the order comes in, since the ZenCart doesn't alowe me to set up these kinds of controls on the catagories. :down:

Any suggestions or help would be awesome!

~The Twrch :flex:

25 Jul 2006, 10:14 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Catagory based discounts

You'd have to write a custom order-total module which:

  • reads your list of discounts for categories
  • checks each product in your cart to see if the discount applies
  • apply all applicable discounts

To make your list of discounts for categories, you'd need to write an admin page to allow you to select categories and specify discounts, as well as set up a table/tables in the database to store the settings.

A fair bit of custom coding...

26 Jul 2006, 1:24 PM
#3
twrch2000 avatar

twrch2000

New Zenner

Join Date:
Jul 2006
Posts:
8
Plugin Contributions:
0

Re: Catagory based discounts

Thanks for the tip, I'm guessing that, based on yoyur post, this kind of thing hasn't been done with ZenCart before. So I guess it's time to buckle down and see what I can do with customizing the cart. If successful I'll post back in case anyone else wants to take advantage of this kind of option.

The Twrch