Parameter Missing or Invalid: Items - Product

Solved

Parameter Missing or Invalid: Items - Product

abeaufort
Visitor
2 0 2

Hello, 

I'm getting a "Parameter Missing or Invalid: Items" error when I add a product button to our Shopify homepage.
We recently changed the product quantity from pack size to just a quantity selector . What's the code needed to fix this, and where do I place it? 

Site: www.nullwines.com
Theme: Debut version 17.12.1

Accepted Solution (1)
marcoswata
Shopify Partner
123 10 36

This is an accepted solution.

Right click on the button and inspect element.
You will see the buttons are inside a form, but there is no variant ID or quantity.

 

You can understand better about product forms here:

https://shopify.dev/themes/architecture/templates/product

 

I suggest you take a look at your featured-product.liquid (or similar) and just copy the form from there, and modify it. 

If my answer was helpful then please Like and Accept Solution 🙂
If you need help with design, development or marketing your store, contact me!

View solution in original post

Replies 3 (3)

marcoswata
Shopify Partner
123 10 36

Can you double check if your button is inside a form, with a valid quantity and variant ID inputs? 

(I don't see it in your homepage, if you have a preview link, we can help)

 

 

When adding an item to the cart, you may have encountered the error Parameter Missing or Invalid: Required parameter missing or invalid. This error occurs when you don't submit a variant ID or quantity amount with your Add to Cart form.
Source

 

If my answer was helpful then please Like and Accept Solution 🙂
If you need help with design, development or marketing your store, contact me!
abeaufort
Visitor
2 0 2

Hi Marcoswata,

Here's a preview of the product button:  https://nullwines.com/pages/image-test

Where do I check if my button is inside a form, with a valid quantity and variant ID inputs? 

 

 

marcoswata
Shopify Partner
123 10 36

This is an accepted solution.

Right click on the button and inspect element.
You will see the buttons are inside a form, but there is no variant ID or quantity.

 

You can understand better about product forms here:

https://shopify.dev/themes/architecture/templates/product

 

I suggest you take a look at your featured-product.liquid (or similar) and just copy the form from there, and modify it. 

If my answer was helpful then please Like and Accept Solution 🙂
If you need help with design, development or marketing your store, contact me!