Looped Countdownnew
A common practice in stores is to use sales accelerators such as pop-up banners for promotions, recently purchased products, and countdown counters.
About counter
Most often, you could come across themes where you need to set the end date in the format MM/DD/YYYY
or DD/MM/YYYY
. In this case, you need to keep track of the dates because when the countdown ends, you need to re-set the end date of the discount if you want to continue counter.
This method is not very convenient because of the constantly repeated work. Our theme offers a more convenient option - repeatable time cycles.
A product can be assigned a countdown counter with one of 6 time intervals:
- 30min
- Hour
- Day
- Week
- Month
- Year
Principle of counter: it automatically continues from the beginning after completion by the end of the selected time interval.
Enabled by default: No
Visibility: Product page, Product cards, Quick View
Steps to enable
Create product metafield
This first step only runs once if it hasn't been done before or metafield was deleted.
- From your Shopify admin, go to Settings > Metafields ↗ (opens in a new tab).
- Click Products.
- Click Add definition.
- In the Name field, enter countdown, and then select that name from the list.
- In the Description field, enter Enter code 1-6 ( 1 is 30min, 2 is a hour, 3 is a day, 4 is a week, 5 is a month, 6 is a year ).
- Click Select content type, and then select Integer from the list.
- In the Minimum value field, enter 1.
- In the Maximum value field, enter 6.
- Click Save.
Select a timer option for product
- From your Shopify admin, go to Products ↗ (opens in a new tab).
- Click on a product to see its details page.
- Click on the сountdown metafield at the bottom of the product page.
- Enter code 1-6 ( 1 is 30min, 2 is a hour, 3 is a day, 4 is a week, 5 is a month, 6 is a year ).
- Click Save.
The counter can be set for the product globally (there will be a single counter for all variants at once) and for each variant separately.