How to use Metafields from Shopify to Product page?

In case you want to create only one product template in our app but you want each product will have a different content such as ingredients, delivery time, or short description. Then you can use to metafield of product in Shopify.

This article will show you how to take the metafields of Products from Shopify to show on Product template created by LayoutHub. Please follow the below steps

The first, you need to add a metafield to Shopify. Go to Shopify admin => Setting => Metafield to add your metafield.



Go to edit your products, you will see a metafield option at the bottom. Just enter your text to that option.



Go to Shopify admin => Setting => Metafield to copy the namespace and key of your metafield.



Go to edit product template in LayoutHub to paste the above namespace and key to where you want to show it, to a text box following this structure {{namespace}}



Save your template and preview it. The namespace will show on the live page (not in the editor)

Updated on: 14/01/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!