All things Shopify and commerce
On the product page I have a table with title, price and input quantity column.
<form action="/cart/add" method="post" >
<tr>
{% for variant in product.variants %}
<td>{{ variant.title }}</td>
<td>{{ variant.price | money }}</td>
<td>
<input name="quantity" inputmode="numeric" value="0">
</td>
{% endfor %}
</tr>
<input type="submit" value="Add to cart">
</form>
I'm trying added to cart all product variants for one call with AJAX and get: Required parameter missing or invalid: items
Could I added to the cart all input quantity for each variants of the product ?
I was trying to get an answer here: https://shopify.dev/api/ajax/reference/cart#post-cart-add-js
User | RANK |
---|---|
42 | |
42 | |
34 | |
24 | |
21 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023