Product page - Add extra data to submit form add to cart

Product page - Add extra data to submit form add to cart

FraukeFvdz
Shopify Partner
4 0 0

I created a theme extensions which added selectboxes to the product detail page with options a customer can choose from.

Now when a user clicks on the add to cart button, I want to validate if they have filled in all selectboxes. How can I do this.

A second thing I want to do is show these chosen options in the checkout. How can I do this.

I google a lot, went trough shopify's documentation but it is not clear to me how I can implement this.

Help!

Reply 1 (1)

Guleria
Shopify Partner
3403 679 963

Hello @FraukeFvdz ,

 

If atc is using ajax then you have to write a script to validate the values.
If not then simply follow this https://ui-elements-generator.myshopify.com/pages/line-item-property you can find all details here.

Thanks

- If helpful then please Like and Accept Solution.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com
- Try GEMPAGES a great page builder