Now you have the opportunity to show unique content and information for only specific products in your store. The display of extra information will result in a better shopping experience.
Let's do it via the Shopify product meta fields option.
1/ You have to create meta fields. Follow the instructions https://help.shopify.com/en/manual/custom-data/metafields to add meta fields to your products. This will help you to display specialized information on your online store.
2/ Go to Admin panel - Products and click on the product you want to render the extra information on. At the very bottom of the product page, you can see the created Metafields block. Here you can easily add extra information.
Note: The products with empty metafields data will not display the Custom liquid block or Custom liquid section. The block/section is necessary for adding unique information for only specific products in your store later.
3/ Go Online store - Charge theme - Default product. Now you have to decide where you'd like to show some extra information. For example, you might want to display it in the product tab. Then go to Product tabs in the sidebar and click on Add block. In the dropdown, you need to select the Custom-Liquid value.
Or you might need to show exclusive information below the tabs. Then go to Default product and find the button Add section. When you press it you may see the same drop-down. Select the Custom-Liquid value again.
4/ In both cases, you should configure the Custom liquid block /section. On the right side, you may see the section settings: Title and Custom Liquid. In the Custom liquid field specify the code:
{{ product .metafields.my_fields.details }}
Use this code to show metafield data. The JSON code consists of 2 parts: “product .metafields” is the Shopify definition, and “my_fields.details” can be changed by you.
This is an example of how it looks in admin.
Comments
0 comments
Please sign in to leave a comment.