Why can't I add a product to my cart due to a missing parameter?

teilaiteilait
Visitor
3 0 1

<form action="/cart/add" method="post" enctype="multipart/form-data" id="AddToCartForm" class="add-to-cart-wrapper" data-productid="{{product.id}}">

<div class="add-to-cart">
<button
class="upper pointer bg-green txt-white" type="submit" name="add" id="AddToCart"
>
добавить в корзину
</button>

</div>
<div class="price-wrapper">
<div class="quantity-wrapper">
<input
type="number"
name="quantity" id="Quantity" name="quantity"
value="1"
hidden
/>
<button
onclick="decreaseQuantity(event)"
class="pointer reduce"
>
<img
src="{{'Minimaize.svg' | asset_url}}"
alt="reduce icon"
/>
</button>

<div class="quantity" id="quantity">
1
</div>
<button
onclick="increaseQuantity(event)"
class="pointer increase"
>
<img
src="{{'Maximize.svg' | asset_url}}"
alt="increase icon"
/>
</button>
</div>
<div class="price">3.80€</div>
</div>
</form>

 

Parameter Missing or Invalid: Required parameter missing or invalid: items

Replies 0 (0)