Community Forums 

Main Content

Add Multiple Items using Check Box??

    Aug 03 2009 15:10:56

    #1

    Pat H

    Join date : 2009-08-01      Posts : 46

    Hi, Are there any HTML Pros out there that can guide me in the right direction please?

    I want to be able to set a page up to so my customers can choose several items at once from say 10 items by clicking on a text box for each item required and then adding them to the cart with one click.

    I have been trying to work this out from Mals support pages since late last night but just cannot get it.

    Any help would be appreciated,
    Many Thanks,
    PatH

    Just Quizzes
    www.justquizzes.co.uk




    Aug 03 2009 15:36:08

    #2

    Debbie Q

    Join date : 2008-09-18      Posts : 4995

    You would use the form method addmulti making each product have it's own product number like here in the support section. https://www.mals-e.com/support/tpv.php?tp=6 But instead of a text box for the qty field you would use <input type="checkbox" name="qtyX" value=1> Changing the X to the appropriate product number.

    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.




    Aug 03 2009 17:31:51

    #3

    Pat H

    Join date : 2009-08-01      Posts : 46

    Debbie, You are a star. I will try this out now

    Just Quizzes
    www.justquizzes.co.uk




    Aug 03 2009 18:08:31

    #4

    Pat H

    Join date : 2009-08-01      Posts : 46

    Thanks Debbie that worked a treat.

    For anyone else trying to do the same here is a sample of the HTML used.

    Change the XXXX's to your requirements.

    <form method="post" action="http://wwx.aitsafe.com/cf/addmulti.cfm">;
    <input type="hidden" name="userid" value="xxxxxx">
    <input type="checkbox" name="qty1" value=1>ITEM-001<input type="hidden" name="product1" value="ITEM-001"><input type="hidden" name="price1" value="XX.XX"><br>
    <input type="checkbox" name="qty2" value=1>ITEM-002<input type="hidden" name="product2" value="ITEM-002"><input type="hidden" name="price2" value="XX.XX"><br>
    <input type="checkbox" name="qty3" value=1>ITEM-003<input type="hidden" name="product3" value="ITEM-003"><input type="hidden" name="price3" value="XX.XX"><br>
    <input type="submit" value="Buy Now">
    </form>

    Just Quizzes
    www.justquizzes.co.uk