Info Gallery
Step Create Metaobjects
- Login to your Shopify store, click to Settings
- Click to Custom data --> Metaobjects and Click Add definition
- Add metaobject definition with 2 fields as bellow:
- Name: Info Gallery
- Field 1:
* Name: Highlights Text
* Type: Single line text - One value
- Field 2:
* Name: Image
* Type: File - One file - Images
- Field 3:
* Name: Subheading
* Type: Single line text - One value
- Field 4:
* Name: Heading
* Type: Single line text - One value
- Field 5:
* Name: Description
* Type: Multi-line text
Step Create Metafields
-
Back to Custom data -> Metafields -> Products
-
Add a metafield as bellow:
- Name: Info Gallery
- Type: Metaobject - List of entries
- Reference: Info Gallery
- Namespace and key: custom.info_gallery
-
Setup metafield for a product and you can see the result.
In product:
- Add and select new entries:
Result:
Choosing the metafield (version 1.3.0)
The Key ingredients section reads this content through its Info gallery metafield setting. The default key is custom.info_gallery.
- Keep the default key above and it works with no extra setup.
- Or rename it: create the metafield under your own
namespace.key(for example, your brand name), then set Info gallery metafield to match. - Reuse on one page: create one metafield per copy (for example
custom.info_galleryandcustom.info_gallery_2) and point each Info gallery metafield at its own key to show different content.
See How to setup Metafield in version 1.3.0? for details.
No comments yet