How to customize Metafields
Metafields help to display custom information on the storefront that isn't supported by the available settings in the Shopify admin.
For more information about Metafields, the functionality of Metafields, and the requirements for displaying custom data in your store, read here.
Countdown timer
With Metafields, you can display the Countdown timer on product and collection pages. Read below how to set up the required settings in your admin for the following to display on your online store:
Step 1
Go to your Shopify admin -> Settings -> Metafields and metaobjects, and press the "Products" tab to add a metafield definition specifically for products.

Step 2
Then, hit "Add definition".

Step 3
In the dashboard, edit the fields. Here is an example of the settings:
Name - Time Countdown
Namespace and key - custom.time_countdown (generated automatically)
Description - Sale countdown (optional)
Type - Date and time (One value)

Save the settings.
Step 4
Now you can choose the product on which the Countdown timer will be displayed.
For this, go to Products in your Shopify admin, and select a product.

Step 5
On the product page, scroll down to the "Metafields" section. Here you can view the available metafield to edit for the product. In the "Time Countdown" field, enter an expiration date and time.

Step 6
Once you have completed the settings in your admin, click the "Edit theme" button in Shopify admin -> Online Store to open the Theme Editor.
After that, select the product template in the top drop-down of the Theme Editor. And add the "Countdown timer" block to the product page.
To add the Countdown timer on the product card of the collection listing, activate the "Show countdown timer" option in Theme settings -> Countdown timer -> Product cards.
Custom badges
Use the Metafields to create custom badges in your admin.
The theme includes settings to display eight built-in badges and four custom badges that can be displayed using images. On the following help page, we provide detailed instructions on setting up your store to display custom icons using both methods.
Step 1
To build a new badge, go to your Shopify admin -> Settings -> Metafields and metaobjects, and press the "Products" tab to add a metafield definition specifically for products.

Step 2
Then, hit "Add definition".

Step 3
Theme badges
The theme uses a unique Namespace and key to display badges on the storefront. So, make sure to create a definition for each custom badge using the metafield identity.

custom_badge_buy_3_get_1_free
custom.custom_badge_buy_3_get_1_free

custom_badge_back_in_stock
custom.custom_badge_back_in_stock

custom_badge_bestseller
custom.custom_badge_bestseller

custom_badge_buy_1_get_1_free
custom.custom_badge_buy_1_get_1_free

custom_badge_buy_2_get_1_free
custom.custom_badge_buy_2_get_1_free

custom_badge_coming_soon
custom.custom_badge_coming_soon

custom_badge_free_shipping
custom.custom_badge_free_shipping

custom_badge_outlet
custom.custom_badge_outlet
In the dashboard, edit the fields. Here is an example of the settings:
Name - custom_badge_outlet
Namespace and key - custom.custom_badge_outlet (generated automatically)
Description - optional
Type - True or false

Save the settings.
Badges from images
To display badges as images, build metafield definitions with either "True or false" or "File" types. The theme includes settings to create four custom badges displayed from images. If you need more than one badge, add a metafield definition for each one.
Example 1:
Check the example settings for the boolean type:
Name - custom_badge_1 (custom_badge_2, custom_badge_3, custom_badge_4)
Namespace and key - custom.custom_badge_1 (custom.custom_badge_2, custom.custom_badge_3, custom.custom_badge_4) - generated automatically
Description - optional
Type - True or false

Example 2:
Here are the example settings of the metafield definition to display an image from a file:
Name - custom_badge_1 (custom_badge_2, custom_badge_3, custom_badge_4)
Namespace and key - custom.custom_badge_1 (custom.custom_badge_2, custom.custom_badge_3, custom.custom_badge_4) - generated automatically
Description - optional
Type - File - One file
Accept specific file types - Images

Step 4
Now, assign custom badges to products. For this, go to Products in your Shopify admin and select a product.

Step 5
On the product page, scroll down to the "Metafields" section. Here you can view the available metafields to edit for the product. Hit each metafield to link a badge.
Theme badges
To display badges on the storefront, hit the "True" value in the corresponding fields. You can display all custom badges you have created or only pick the ones you need for a specific product.
In our example, all the badges have been used for the product.

Badges from images
Example 1:
If you use the Boolean type to display images as badges, select "True". This method displays an image assigned in the Theme Editor. Go to the Theme Editor, Theme settings -> Badges -> Custom badges to link images.

Example 2:
To display a badge using a custom image for a specific product, add the desired file to the corresponding field. In our example, we used the "custom_badge_4" metafield.
View the example settings below.

Press the "Save" button to accept the settings for a product.
Last updated