Results 1 to 3 of 3
  1. #1
    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.

    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 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.

    Any suggestions or help would be awesome!

    ~The Twrch

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default 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...
    .

    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.

  3. #3
    Join Date
    Jul 2006
    Posts
    8
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. v151 Customer discounts based on ranks
    By flernebunu in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 16 Nov 2013, 11:57 PM
  2. Active links based on current catagory
    By DannyVarley in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Feb 2013, 02:11 PM
  3. Discounts based on Quantity
    By Jace in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 8 Nov 2010, 04:28 PM
  4. discounts based on PRICE of product
    By aw3s0me in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 24 Nov 2007, 02:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg