Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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
Solved! Go to the solution
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.
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
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?
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.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025