Hi,
We need to collect some data from the user before users can place the order. We are planning to request the information from the customer via a form in pop-up, when the user clicks “Add to Cart”.
Once this information is captured and user completes checkout, we want this information to be available in the order details as well. What’s the best way to achieve this?
We need this information to also be forwarded in the Order creation webhook request.
Hi @stealth-dev
You can add custom input on the product page in pop when the user clicks on add to cart
For example
1
Make sure that these inputs are passed to the add-to-cart form in the hidden input value
For example
2
In the custom value here, Using javascript or jQuery you can pass the data, In this way when the user adds the product to the cart you can show the popup with the fields in the example first & using jQuery you can pass the data to the hidden fields in example second. Shopify will carry this data to the cart, checkout, and admin side order you will get this data.
Hi @stealth-dev
If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge your support and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.