Back to Mal's forms page
<<< Clicking on this logo will return you to my Mal's Forms home page.


View the page source!

close

You 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 to the cart 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="discountpr1" VALUE="3,12:9,8.50:19,8.00:39,7.75:0,7.50"

The above example means:

If they order 3 or less the price is $12.00, if they order up to 9 more (i.e. 12), the price is $8.50. 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.

All 'DESIGN ONE' T Shirts are priced at $12.00 (except XX $13 and XXX are $14) before a quantity discount is applied.

Discounts

Youth
Adult Small
Adult Medium
Adult Large
X Large
XX Large
XXX Large

All 'DESIGN TWO' T Shirts are priced at $11.00 (except XX $12 and XXX are $13) before a quantity discount is applied.

Youth
Adult Small
Adult Medium
Adult Large
X Large
XX Large
XXX Large