Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Location
    Toronto, Canada
    Posts
    10
    Plugin Contributions
    0

    Default Quantity Discount

    Hi there,

    N00b here...been spending time lurking around, felt a bit like a detective.

    This has probably been asked a few times round, but I couldn't find an answer yet.

    If I am selling greeting cards, min quantity 100, each unit there after 25.

    First 100 sells at $2.35 = $235
    Each additional 25 is $56 (original $58.75, so -$2.75 discount)

    I tried doing it in attribute controller like this...

    Onetime Attributes Qty Price Discount:
    100:0,125:-2.75

    Works as expected, however what about 150, 200, 250, or 1000?

    Is there a way to put in a formula like total=100xprice+(price*25-$2.25)?

    TiA...

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Quantity Discount

    If you go to the Products Price Manager for your product (click the $ on the admin page which lists your products in that category), you can add discount quantity levels and varying increments and prices.

    https://www.zen-cart.com/tutorials/index.php?article=59
    .

    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
    Aug 2007
    Location
    Toronto, Canada
    Posts
    10
    Plugin Contributions
    0

    Default Re: Quantity Discount

    Thanks Dr. Byte,

    I've tried that before going to attribute discount.

    On the Product Price Manager, the 3 types of discounts namely :
    Percentage
    Actual Price
    Amount Off

    are all affecting the unit price, not Total discount taken off, that won't work for me.
    e.g.
    if unit price is $4 for first 100, to apply $1 discount for every additional 25 units,
    I need to select Amount off and entered :
    Discount 1 / min 100 / Discount 0
    Discount 2 / min 125 / Discount 0.2
    Discount 3 / min 150 / Discount 0.3.666667

    I would pay $4 x 100 = $400
    I would pay $3.8 x 125 = $475
    I would pay $3.63333 x 150 = $544.9995

    which is going to be rounding error hell, plus calculation is based on 2 decimals too. The problem lies on calculation won't keep the first 100 @ $4/pcs.
    (Or is there another way to do this?)

    Also I have additional attributes that has it's own quantity discount, that's why I skipped qty discount on Product Price Manager all together.

    Help?

 

 

Similar Threads

  1. Need to Offer Quantity Discount Depending on Total Cart Quantity
    By ikernbecauseicare in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 3 Feb 2011, 01:26 AM
  2. Price by attributes - quantity discount and minimum quantity required
    By josefine in forum Setting Up Categories, Products, Attributes
    Replies: 14
    Last Post: 24 Sep 2009, 07:28 PM
  3. quantity discount for checked attributes NOT product quantity
    By adod in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 6 Mar 2009, 06:39 PM
  4. Quantity Total in Shopping Cart Sidebox with Quantity Discount Contribution
    By maineiac13 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 14 Oct 2008, 08:40 PM
  5. Replies: 0
    Last Post: 3 Apr 2008, 08:16 PM

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