Community Forums 

Main Content

Multiple Products with quantity discounts

    Jul 27 2011 17:44:46

    #1

    Cousin Jack

    Join date : 2011-07-21      Posts : 20

    I have a poster that can be laminated, or non-laminated. They both have quantity discounts, but I don't know how to set it up. So far, I have this:

    <!-- ############## Add To Cart Form - Poster ############## -->
    <center>

    <p><input name="product" type="hidden" value="Poster">
    <p><select name="productpr">
    <option value=""> Select lamination </option>
    <option value="Laminated, "> Laminated </option>
    <option value="Non-laminated, "> Non-laminated </option>
    </select>

    <INPUT TYPE="HIDDEN" NAME="discountpr" VALUE="49,7.45:50,6.75.50,5.95:0,60.00">
    <p><INPUT TYPE="TEXT" NAME="qty" size="2"> Quantity
    <p><input type="image" src="/Products/images/order.jpg" alt="Place Order">
    </form>
    </center>
    <!-- ############## End Poster Add To Cart Form ############## -->

    <!-- ############## This is the poster pricing ############## -->

    <h3>Poster Pricing (not laminated)</h3>
    <p>1&#8211;49 for $7.45 each
    <br />50&#8211;99 for $6.75 each
    <br />100 for $5.95 each

    <h3>Poster Pricing (laminated)</h3>
    <p>1&#8211;49 for $9.95 each
    <br />50&#8211;99 for $8.95 each
    <br />100 for $7.95 each

    <!-- ########## End pricing ############# -->

    It's not finished because I don't know how to differentiate the discount value for the laminated / non-laminated if the appropriate selection is selected.

    Any thoughts?

    Thanks!



    Jul 27 2011 18:47:59

    #2

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    What about making it a multi product form giving laminated and non laminated 2 different product numbers?

    Debbie Q

    Mal's Support: www.mals-e.com/support.php
    GT's Forms and examples: www.malsforms.com
    Helpful java scripts: www.gemasana.com/mals
    Shipping help documents: www.stoner.org.uk/mals

    My Create-A-Book Publishing - mycreateabook.com
    Personalized Books, Music CDs and Gifts for all ages and occasions.

    Please help me out and share my site on your networks.




    Jul 27 2011 19:59:14

    #3

    Cousin Jack

    Join date : 2011-07-21      Posts : 20

    Debbie Q said What about making it a multi product form giving laminated and non laminated 2 different product numbers?

    Thanks for the reply Debbie Q.

    Okay, I tried this idea, but it got "SYNTAX ERROR: Price not set"

    <p><INPUT TYPE="TEXT" NAME="qty1" size="3">Non-laminated
    <INPUT TYPE="HIDDEN" NAME="product1" VALUE="Non-laminated">
    <INPUT TYPE="HIDDEN" NAME="discountpr1" VALUE="49,7.45:50,6.75:0,5.95">

    <p><INPUT TYPE="TEXT" NAME="qty2" size="2">Laminated
    <INPUT TYPE="HIDDEN" NAME="product2" VALUE="Laminated">
    <INPUT TYPE="HIDDEN" NAME="discountpr2" VALUE="49,9.95:50,8.95:0,7.95">

    <BR /><input type="image" src="/Products/images/order.jpg" alt="Place Order">

    I don't think it likes that number added to the discountp names. I'll keep working on it.

    Any more thoughts?



    Jul 27 2011 20:09:13

    #4

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    It doesn't like that you don't have a price field. :)

    Debbie Q

    Mal's Support: www.mals-e.com/support.php
    GT's Forms and examples: www.malsforms.com
    Helpful java scripts: www.gemasana.com/mals
    Shipping help documents: www.stoner.org.uk/mals

    My Create-A-Book Publishing - mycreateabook.com
    Personalized Books, Music CDs and Gifts for all ages and occasions.

    Please help me out and share my site on your networks.




    Jul 27 2011 20:55:39

    #5

    Cousin Jack

    Join date : 2011-07-21      Posts : 20

    A-ha! I figured it out. My form action was all wrong.

    I had: action="http://ww6.aitsafe.com/cf/add.cfm

    But it needs to be: action="http://ww6.aitsafe.com/cf/addmulti.cfm";

    Darn! The simplest mistake took me an hour to figure out. Urg! I hate when that happens.

    Thanks for the insight Debbie Q