Community Forums 

Main Content

Different prices according to quantity

    Nov 03 2008 18:00:59



    Join date : 2008-11-03      Posts : 31

    Is there a way of combining different prices into one button according to the quantity a customer orders? For example, if someone orders a quantity of between 1-20, the item costs 1.00 per item, but if they order 21+, then it is 0.90 per item.

    Nov 04 2008 10:35:29



    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.