[ic] Display Quantity Discount in Flypage

Jim Balcom interchange-users@interchange.redhat.com
Wed Feb 27 17:07:00 2002


MH>>Quoting Steve Graham (dtlgc@hotmail.com):
MH>>> Hello,
MH>>>
MH>>> I would like to display all the different quantity breaks each item has, and
MH>>> if it doesn't have any don't display, in each items flypage. I have IC 4.8.3
MH>>> calculating the prices correctly with commonadjust, now I want to show the
MH>>> potential buyers the qty breaks.
MH>>>
MH>>> I see that [item-price q1], [item-price q5] etc... will show the breaks, but
MH>>> I have discounts of 1,2,3,5,6,10,12,15,20,25....various up to to 250 opr
MH>>> more.
MH>>> If an item has only breaks at say 1,6,12 then I don't want to display all
MH>>> the redundant breaks in-between.

My pricing is, for the most part, for single items. If they buy a bag, they
get a better price. If they buy a case, the price is even better.

I set up CommonAdjust and pricing.txt to deal with all of the various price
break possibilities in the store.

Then, in products.txt I added 2 fields - one for bag and one for case. I
populated those with the quantity in a bag and the quantity in a case.

With the help of Tech Support at Red Hat, code was put into the fly page to
read the bag and price fields in products.txt. If they were not empty then
the appropriate fields are read in pricing.txt. The flypage now tells them
how many are in a bag and what the price of a bag is and there is a 'buy
now' button for them. Same thing with a case.

Perhaps this will help you a little?

-= Jim =-

----------------------------------------------------------------
Jim's Linux-Operated Underground Bomb Shelter

Tagline for Wednesday, February 27, 2002 at 17:10 PM:
Useless Invention: Waterproof toilet paper.

----------------------------------------------------------------
This Linux System has been up 1388 hours

My web page: http://www.idk-enterprises.com
----------------------------------------------------------------