Community Forums 

Main Content

addmulti with one qty

    May 01 2014 14:14:59

    #1

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    If you need the scodes, you could make each color a product, giving each one it's own product number and use the full code for each one.

    <input type="radio" name="qty2" value="1">
    <INPUT TYPE="HIDDEN" NAME="product2" VALUE="Mouseloft Card and Envelope - Cream">
    <INPUT TYPE="HIDDEN" NAME="scode2" VALUE="CARD-C-8">
    <INPUT TYPE="HIDDEN" NAME="discountpr2" VALUE="0,10.20">
    <INPUT TYPE="HIDDEN" NAME="units2" VALUE=".19">

    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.




    May 02 2014 20:15:11

    #2

    cassie75

    Join date : 2008-09-18      Posts : 273

    Perhpas would have been better had I put full code as can't seem to get that to work.

    <form action="http://ww10.aitsafe.com/cf/addmulti.cfm"; method="post">
    <input type="hidden" name="userid" value="C0142190">
    <input type="hidden" name="producturl1" value="http://www.craft-kits.co.uk/stitch-m-teddy.htm#101">;
    <input type="hidden" name="return" value="www.craft-kits.co.uk/stitch-m-teddy.htm#101">;
    <input type="hidden" name="units1" value="0.12">
    <input type="hidden" name="scode1" value="M-TT-101-2:">
    <input type="hidden" name="product1" value="Mouseloft Teddy Time Cross Stitch - Wizard">
    <input type="hidden" name="price1" value="1.65">
    <input name="qty1" value="1" input type="hidden">

    <input type="radio" name="productpr2" value="" selected checked>NONE
    <input name="qty2" value="1" input type="hidden">
    <input type="radio" name="productpr2" value="Mouseloft Card and Envelope - Cream:0.60:0.19:CARD-C-8;">Cream
    <input name="qty2" value="1" input type="hidden">
    <input type="radio" name="productpr2" value="Mouseloft Card and Envelope - Red:0.60:0.19:CARD-R-59;">Red
    <input name="qty2" value="1" input type="hidden">
    <input type="radio" name="productpr2" value="Mouseloft Card and Envelope - Blue:0.60:0.19:CARD-B-13;">Blue
    <input name="qty2" value="1" input type="hidden">
    <input type="radio" name="productpr2" value="Mouseloft Card and Envelope - Green:0.60:0.19:CARD-G-77;">Green
    <input type="submit" value="Add to Basket">
    </form>

    Hope it is still possible like this :-)

    Life is too short to work 8 hours a day - thats why I work 16 :-)




    May 03 2014 04:38:15

    #3

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    What I was suggesting would look the same on the page but each color card would be a different product number. Leave off the "None" because it won't uncheck.

    <form action="http://ww10.aitsafe.com/cf/addmulti.cfm";; method="post">
    <input type="hidden" name="userid" value="C0142190">
    <input type="hidden" name="producturl1" value="http://www.craft-kits.co.uk/stitch-m-teddy.htm#101">;;
    <input type="hidden" name="return" value="www.craft-kits.co.uk/stitch-m-teddy.htm#101">;;
    <input type="hidden" name="units1" value="0.12">
    <input type="hidden" name="scode1" value="M-TT-101-2:">
    <input type="hidden" name="product1" value="Mouseloft Teddy Time Cross Stitch - Wizard">
    <input type="hidden" name="price1" value="1.65">
    <input name="qty1" value="1" input type="hidden">


    <input type="radio" name="qty2" value="1">
    <INPUT TYPE="HIDDEN" NAME="product2" VALUE="Mouseloft Card and Envelope - Cream">
    <INPUT TYPE="HIDDEN" NAME="scode2" VALUE="CARD-C-8">
    <INPUT TYPE="HIDDEN" NAME="discountpr2" VALUE="0,10.20">
    <INPUT TYPE="HIDDEN" NAME="units2" VALUE=".19">

    <input type="radio" name="qty3" value="1">
    <INPUT TYPE="HIDDEN" NAME="product3" VALUE="Mouseloft Card and Envelope - Red">
    <INPUT TYPE="HIDDEN" NAME="scode3" VALUE="CARD-R-58">
    <INPUT TYPE="HIDDEN" NAME="discountpr3" VALUE="0,10.20">
    <INPUT TYPE="HIDDEN" NAME="units3" VALUE=".19">

    <input type="radio" name="qty4" value="1">
    <INPUT TYPE="HIDDEN" NAME="product4" VALUE="Mouseloft Card and Envelope - Blue">
    <INPUT TYPE="HIDDEN" NAME="scode4" VALUE="CARD-B-13">
    <INPUT TYPE="HIDDEN" NAME="discountpr4" VALUE="0,10.20">
    <INPUT TYPE="HIDDEN" NAME="units4" VALUE=".19">

    <input type="radio" name="qty5" value="1">
    <INPUT TYPE="HIDDEN" NAME="product5" VALUE="Mouseloft Card and Envelope - Green">
    <INPUT TYPE="HIDDEN" NAME="scode5" VALUE="CARD-G-77">
    <INPUT TYPE="HIDDEN" NAME="discountpr5" VALUE="0,10.20">
    <INPUT TYPE="HIDDEN" NAME="units5" VALUE=".19">

    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.




    May 03 2014 12:33:55

    #4

    cassie75

    Join date : 2008-09-18      Posts : 273

    Hi
    I haven't tried the code yet as am in the office (lunch hour) but just trying to work out in my head how this would work.

    I had the "none" so that if they clicked a radio button by mistake they could clear the selection - they can buy the xstitch kit without the card. Will they be able to unclick the radio buttons with this code?

    Would they also be able to order more than one card with each kit? If so then perhaps checkboxes may be easier. But not sure if I want them to buy more than one card per kit - not that it matters really - but it might confuse :-)

    Life is too short to work 8 hours a day - thats why I work 16 :-)




    May 03 2014 14:34:58

    #5

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    I would use checkboxes. I also would let them buy as many cards as they want. You sell the cards individually so why does it mater? :)

    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.




    May 03 2014 20:49:52

    #6

    cassie75

    Join date : 2008-09-18      Posts : 273

    Hi Debbie Q

    I see your point. Perhaps I am trying to get too deep with this by trying to make it one click for both kit and card.

    Perhaps I should just do like the following item instead

    http://www.craft-kits.co.uk/stitch-m-xmas.htm#E32

    This type of kit comes packaged with a card or without, rather than us just adding a card if they wanted one - but if the ones with card sell out we have added the optional card code.

    If I used this for ALL the kits then I could use the drop down list for qty for kits AND discountpr for cards.

    Life is too short to work 8 hours a day - thats why I work 16 :-)




       «      1   |   2