Community Forums 

Main Content

Discount and Minimum order and Mal's

    Dec 07 2014 09:11:14

    #1

    Bacchus

    Join date : 2014-12-04      Posts : 57

    I would just like to say this is such a satisfying experience developing the Mal's shopping cart and figuring out how to make the coding work!

    I just had this uncertainty: A product with a minimum order requirement and discounts that start at a high quantity count.
    Started out solving it like this - priced showed 0.00 until quantity of 72.
    <input type="hidden" name="discountpr" value ="71,0.00:143,2.50:250,2.36:499,2.29:999,1.99;0,1.89">
    Then figured out the quantity value could be set to the minimum like this: <input type="hidden" name="qty" value="72"> So added to cart it begins at qty 72. If a customer enters less then it shows price of 0.00. That and Minimum Order advice on the webpage solves it.

    Bacchus




    Dec 07 2014 17:48:53

    #2

    Alan

    Join date : 2008-09-18      Posts : 2951

    Is this the only product you sell?

    Alan
    Some shipping help documents are available at www.stoner.org.uk/mals/




    Dec 07 2014 23:14:23

    #3

    Bacchus

    Join date : 2014-12-04      Posts : 57

    Alan said Is this the only product you sell?

    It's one category of items we sell. Items with a minimum order quantity requirement before discounts on quantity begin.

    Bacchus




    Dec 08 2014 09:06:00

    #4

    Alan

    Join date : 2008-09-18      Posts : 2951

    The cart's minimum order quantity facility covers ALL products in the order, and prevents anyone from ordering less.

    So the method depends on whether the minimum should be applied to an individual product, a subset of products, or the whole order.

    productpr applies to an individual product and the prices are affected only by the quantity of that product. If the customer were allowed to buy less than 72 of the product shown, you would list the base price instead of 0.00. If not, you could make that base price prohibitively expensive.

    Otherwise, for minimum quantities of individual products, or if you do not wish to apply the minimum quantity to the total order, it may be that GT has a suitable javascript at http://www.malsforms.com/.

    Alan
    Some shipping help documents are available at www.stoner.org.uk/mals/