From Shopify dashboard, go to Online store > Themes > Edit code
In the search box, search for the file named main-product.liquid
Scroll to line no 431 of this file, and paste below code just after the {%- form āproductā, product, id: product_form_id, class: āformā, novalidate: ānovalidateā, data-type: āadd-to-cart-formā -%}
Change product.metafields.custom.material with your field name.
Yes, @davidducrest is right my code would not help if you want to add new column in Shopify admin order listing page.
But my code will add a field of warehouse at order details page.
As your my understanding you prime concern is understand from which warehouse you have to ship the product.
If you want to add column in order listing you have to code for adding warehouse location tag in every order. Which will be available in order listing as separate column.
Let me know if you need more detail.
And about working in online 2.0, yes my code will work in it.
{%- form āproductā, product, id: product_form_installment_id, class: āinstallment caption-largeā -%}
I added this as you have suggested
The value is also coming when I check the āview sourceā but there is no value in the admin order page detail page. What am I doing wrong? Please help
When I view source the page I can see this value appearing as well
As you can see <input type="hidden" name="properties[warehouse location]" value="NY" /> is showing
Now for showing it to the admin order page do I need to make any changes? If yes, then could you please tell me where?
Thanks again