To set up Shop metafields in your store, you need to insert a specific code into the customers/order. liquid file. This allows you to display the shop metafield on your Customer order page, enhancing the information available to you and your customers. Begin by logging into your Admin panel and navigating to Online store, then select Themes.
In the left sidebar, locate the file list and find the “customers/order. liquid” file at the bottom of the Sections list. Click on it, insert the code {% include 'all-in-one-metafields', metafields: 'shop' %} at your desired position in the file, and save your changes to implement the metafield display.
How to setup Shop metafields
- Show shop metafield in your Customer order page needs to insert below code in customers/order.liquid file.
- customers/order file path: Login into Admin panel-> left side menu select Online store -> select Themes.
- Now left sidebar load with file list. Check at Sections bottom of the list “customers/order.liquid” file, click on it.
- Insert below code where you want to show metafield at this position in the file and save it.
{% include 'all-in-one-metafields', metafields: 'shop' %}