Results 1 to 5 of 5

Thread: checkboxes to add to cart not working
      
   

  1. #1
    id8trak is offline Corporal
    Join Date
    Jan 2008
    Location
    Idaho
    Posts
    18

    Default checkboxes to add to cart not working

    I am struggling to get this form to cooperate with me. Can someone see a problem with it? and help me fix it?



    Here is the code:
    <form action="http://ww#.aitsafe.com/cf/add.cfm" method="POST" name="Button1">
    <input name="qty2" type="checkbox" value="1">
    <input type="hidden" name="price2" value="71.95">
    <input type="hidden" name="product2" value="fgm-grain-attach">
    FGM Grain Mill Head Attachment $71.95<br>
    <input name="qty2" type="checkbox" value="1">
    <input type="hidden" name="price2" value="71.95">
    <input type="hidden" name="product2" value="fgm-flaker">
    FGM Flaker Attachment $71.95<br>
    <input name="qty2" type="checkbox" value="1">
    <input type="hidden" name="price2" value="169.95">
    <input type="hidden" name="product2" value="fgm-motor-base">
    FGM Motor Base Only $169.95<br>
    <input name="qty2" type="checkbox" value="1">
    <input type="hidden" name="price2" value="169.95">
    <input type="hidden" name="product2" value="fgm-handbase">
    FGM Hand Crank Base Only $169.95<br>
    <input name="qty2" type="checkbox" value="1">
    <input type="hidden" name="price2" value="109.95">
    <input type="hidden" name="product2" value="fgm-bosch-grain-attach">
    FGM NEW Grain Mill Attachment fits DIRECTLY to Bosch Universal $109.95<br>
    <input name="qty2" type="checkbox" value="1">
    <input type="hidden" name="price2" value="111.95">
    <input type="hidden" name="product2" value="fgm-bosch-flaker-attach">
    FGM NEW Flaker Attachment fits DIRECTLY to Bosch Universal $111.95<br>
    <input name="qty2" type="checkbox" value="1">
    <input type="hidden" name="price2" value="36.95">
    <input type="hidden" name="product2" value="fgm-replacement-burr-set">
    FGM Replacement Burr Set $36.95<br>
    <input name="qty2" type="checkbox" value="1">
    <input type="hidden" name="price2" value="73.95">
    <input type="hidden" name="product2" value="fgm-meat-grinder">
    FGM Meat Grinder Attachment $73.95<br>

    <input name="qty2" type="checkbox" value="1">
    <input type="hidden" name="price2" value="73.95">
    <input type="hidden" name="product2" value="fgm-food-processor">
    FGM Food Processor Attachment $73.95<br>
    <br>
    <input name="userid" type="hidden" value="shopping-acct-number" />
    <input name="return" type="hidden" value="www.histakes-spelt.php/grainmills" />
    <input name="submit" type="submit" value="Add to Cart" />
    </form>
    p.s. I would use the bvafp (did I get all those letters in the right order?), but I haven't quite published yet... and it looks like you must publish before you can use it.

    thanks for any help you can give.

  2. #2
    Bethers's Avatar
    Bethers is offline Major General & Forum Moderator
    Join Date
    Feb 2006
    Posts
    5,232

    Default Re: checkboxes to add to cart not working

    How are you adding this to your site? It looks like it came from Mal's? You add it in an html box - and have to make sure you've given mal's all the correct info -

    The button works, but doesn't take me to a working account at Mals' - do you have one?

  3. #3
    id8trak is offline Corporal
    Join Date
    Jan 2008
    Location
    Idaho
    Posts
    18

    Default Re: checkboxes to add to cart not working

    Hi Beth,
    Yeah, it is with Mal's but I didn't add my correct ww# or my user id on here. And I do put it all into an html box... sorry, I should have put more information. My brain is only half working this afternoon.

    My problem is I get a syntax error: Price not set - when I click to add any items. all other add to cart buttons have worked out - even when I have a radio button option.

    But it worked for you? What product did you click?

  4. #4
    Bethers's Avatar
    Bethers is offline Major General & Forum Moderator
    Join Date
    Feb 2006
    Posts
    5,232

    Default Re: checkboxes to add to cart not working

    Well, I just tried it - and it worked from what I could see. But I went to a Google page not found, because it didn't have a user id, etc. If you want me to test the code, email it to me and I'll let you know if I get your syntax error.

  5. #5
    id8trak is offline Corporal
    Join Date
    Jan 2008
    Location
    Idaho
    Posts
    18

    Default Re: checkboxes to add to cart not working

    ok, for others who would like to know the solution we figured out... here it is. Totally simple!
    Rather than this form action: <form action="http://ww#.aitsafe.com/cf/add.cfm" method="POST" name="Button1">

    we needed to have a ....addmulti.cfm.... for it to be able to add each checkbox individually.
    Thanks for all the references that helped us come to that conclusion.

    I also changed each product/price/qty to reflect a sequential order.

    cheers.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49