Days available
Keep track of the number of days your products have been available in your online store sales channel. Using this number, you can automate e.g. a "New arrivals" collections or flag products as being recently added to your catalog.
This is a simple calculation of how many days have passed since the last time a product was published to your online store sales channel.
The calculation is rounded up to the nearest whole number, so for products just published, the value will be 1
. For unpublished products, the metafield will be deleted.
There is a grace period of 7 days between unpublishing a product from the online store sales channel and republishing it. If a product is unpublished and then republished within 7 days, the calculated days will use the original publishing date.
Details
- Name
espresso.days_available
- Description
Metafield namespace and key
- Name
number_integer
- Description
Metafield type
- Name
product
- Description
Scope of Shopify object that owns the metafield
Example content
7
When you initially enable this metafield, the individual product metafields will be set in a background task. If you have a large catalog, this may take anywhere from a few minutes to a few hours. Once the metafields are set, they will be updated in real-time