[ic] Quantity Discounts - GOT IT WORKING!

Bob Puff@NLE bob@nleaudio.com
Wed, 07 Mar 2001 00:47:22 -0500

Hey Gang,

After doing a LOT of messing around, I finally figured out how to make quantity discounts work for ALL users.  I'm really surprised that this information was no where in any docs or archives I researched.  SO for the benefit of all, here it is:

I needed price breaks at 10 pieces, 25 pieces, 50 pieces, and 100 pieces.  Obviously you don't need to use these - only fill in the blanks when needed.

This is based on the Construct Something demo.  Note that Pricing_group is not really used.

Part of the catalog.cfg file:

PriceField     price 
CommonAdjust   pricing:price_group,q10,q25,q50,q100: ;:price ;$
AutoModifier   pricing:price_group
AutoModifier   products:gift_cert

UserDB         default    scratch    dealer

Autoload <<EOR
            $Config->{PriceField} = 'no_price';

Top of my /products/pricing.txt file:

price_group     sku     q10     q25     q50     q100
        18014   8.50            7.25                
Edited the /pages/quantity.html file to show desired quantity break points

Also edited /pages/recurring_add.html and /pages/ord/checkout.html: removed the [if scratch dealer] and matching [/if] statements to make that code always true

The sucker seems to work!   If you have any further suggestions, please let me know.