checkboxes to add to cart not working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • id8trak
    Corporal

    • Jan 2008
    • 19

    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.
    Jamie A.
    www.HiStakes-Spelt.com
  • Bethers
    Major General & Forum Moderator

    • Feb 2006
    • 5224

    #2
    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?
    Beth
    A Child's Palace - Pinata Palace - Moxie Enterprises

    SEO and Marketing Tools
    SEO - The Basics

    Comment

    • id8trak
      Corporal

      • Jan 2008
      • 19

      #3
      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?
      Jamie A.
      www.HiStakes-Spelt.com

      Comment

      • Bethers
        Major General & Forum Moderator

        • Feb 2006
        • 5224

        #4
        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.
        Beth
        A Child's Palace - Pinata Palace - Moxie Enterprises

        SEO and Marketing Tools
        SEO - The Basics

        Comment

        • id8trak
          Corporal

          • Jan 2008
          • 19

          #5
          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.
          Jamie A.
          www.HiStakes-Spelt.com

          Comment

          Working...
          X