Community Forums 

Main Content

Re:Different prices according to quantity

    Nov 04 2008 10:35:29

    #1

    annieb

    Join date : 2008-11-03      Posts : 31

    OK, I've found the answer in the Support section if anyone else is stuck on this too...

    Quantity discountsYou might want to offer a discount on a product as people buy more of it. To do this, instead of a single price, you pass in an array of price points in a field called discountpr. The syntax for the field is a little complicated at first glance.

    You can have an unlimited number of prices points, each one is separated by a comma. Each price point has a range and a price for the product, separated by a colon.

    <INPUT TYPE="HIDDEN" NAME="discountpr" VALUE="3,9.99:4,8.99:0,6.99">

    The above example means:

    if they order 3 or less the price is $9.99,
    if they order up to 4 more (i.e. 7), the price is $8.99,
    if they order more than 3 + 4, the price is $6.99.

    The last range always means "more than". It is set to 0 in the example above but in fact what you enter is simply ignored.