Create Required Metafields
Last updated
Last updated
You can read more about metafields here: link
Step
Login to your Shopify store, click to Settings
Click to Custom data and select Products
Add metafields as follow:
Countdown timer.
Custom product badge.
External/Affiliate.
Short description.
Name: Countdown timer
Namespace and key: custom.countdown_timer
Content type: Date and time
In product :
Result:
Name: Custom product badge
Namespace and key: custom.custom_product_badge
Type: Single line text - One value
In product:
Result:
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: External/Affiliate product
- Field 1:
* Type: URL
* Name: External Link
- Field 2:
* Type: Single line text
* Name: Button Text
Step Create Metafields
Back to Custom data -> Metafields -> Products
Add a metafield as bellow:
- Name: External/Affiliate
- Type: Mixed reference
- Validation: External/Affiliate
- Namespace and key: custom.external_affiliate
Setup metafield for a product and you can see the result.
In product:
Add new entry:
Choose and save:
Result: Auto change to External/Affiliate button
Name: Short description
Namespace and key: custom.short_description
Type: Single line text - One value
In product:
Result: