Countdown date in product card
Adding metafield definition
Before you can add countdown (metafield value) to specific products, you need to add the necessary metafield definition for this information.
From your Shopify admin, go to Settings > Custom data > Products
Click Add definition
In the Name field, enter
Product timer
, and then click the 'Product timer' generated as you type from the list. This is the metafied used for storing the expiry date
In the Namespace and key field, enter
custom.product_timer
Click Select content type then select Date.
Click Save to save the definition
You should see the Product timer in the list of definitions by now.
Setting the countdown
In your admin, within Products, click on the product you want to add the countdown
Scroll down to the Metafields. You should see the Product timer here.
To set an expiry time, click on the Product timer field.
Click Save to save your changes.
Countdown date in product card
Last updated