|
80d6b3aa66b660eedfb51d6339dc4b35
|
How to add multiple products of different quantities to your cart at the same time?by James Iha - Member - 05:07AM, Sep 01, 2008 |
|
I have a collection of related items that I need to be able to add to the cart at the same time, for example: Amazing Living Room Table Amazing Chairs that match that table I am using the following code: <input name="id[]" type="hidden" value="6625874" /><input name="quantity[]" type="hidden" id="product-quantity-6625874" value="1" /> <input name="id[]" type="hidden" value="1857499" /> <input name="quantity[]" type="hidden" id="product-quantity-1857499" value="3" /> but I get the following error: undefined method `to_i’ for [“1”, “3”]:Array The developers get an email about this automatically but if there is anything we can do for you please send us an email, referencing error Can anybody help? I am able to add one of each item to the cart at once, simply by removing the quantity input fields. Last edited 05:14AM, Sep 01, 2008 |
|
You must login to post a comment!
Don't have an account yet? Sign up for one.