How to add custom fields to the order data in the product page
Ilias Haddad - Shopify Developer | Full Stack Developer | Freelancer
December 02, 2020 - 1 min read
In the third article of #4weeksShopifyDev, I'll be talking about how to add custom fields to the order data in the product page
I'll adding engraving custom field in product page and display the output of the customer in order page (Shopify Admin)
Note: I'm using the Debut theme, you may have different architecture
Create a product template
On the product page , change the template suffix to the product.custom
Create Custom Fields
Go to the Shopify UI Elements Generator.
Paste the code before <button type="submit"
Now, you can test it by adding the product to the cart and add the custom field value and process the checkout.