[resolved] Quantity added to cart always '1' regardless of quantity entered (3 posts)

  1. KerriM
    Posted 3 years ago #

    I have a custom product loop that just displays three products, their description, a quantity field, and an add to cart button for each.

    When the product is added to the cart, only one unit is added for each click of the "add to cart button" , regardless of the quantity that was entered into the quantity field.

    I have a bunch of custom javascript set up, too, to modify cart behavior (suppress the Color box, etc), but I've tried removing all of that, and the same issue still exists.

    Of note: one of the items I've had to set up in my javascript is to remove the quantity of '1' that automatically populates the quantity box. I'm not sure why this box is being automatically populated with '1' as well.

    This is the code for my product loop: http://pastebin.com/pwkQ2rbJ
    …but maybe I've just missed a setting when setting up the products in the FoxyCart Admin?

    Thanks for your help!


  2. sparkweb
    Plugin Author

    Posted 3 years ago #

    Hi KerriM,

    (So sorry for the delay on response. Please email directly via foxy-shop.com for quicker support.)

    The issue here is that you don't have a form setup - the add to cart is just a link. So I'd grab some of the code from the single product template to create your form for each product inside of the loop.

  3. KerriM
    Posted 3 years ago #

    Thanks! That was exactly what the issue was.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.