How to add a timer on the checkout page?

Hello,

Hope you are well!!

I have 1 query regarding add timer on checkout page. Like this https://prnt.sc/_6FTL5H5ToUr
I have added script but it doesn’t work at all. So if you have any idea could you please help me out it would be great.

Thank you

try this
{% unless section.settings.cart_timer_text == blank %}

{{ section.settings.cart_timer_text }}
{% endunless %}

then adding in the settings

{
“type”: “header”,
“content”: “Cart Timer”
},
{
“type”: “richtext”,
“id”: “cart_timer_text”,
“label”: “Text”,
“default”: “

Your order is reserved for [time]

”,
“info”: “Leave empty to disable this feature”
},
{
“type”: “text”,
“id”: “cart_timer_sec”,
“label”: “Time (sec)”,
“default”: “300”
},

Hi,

Since Shopify has depreciated checkout.liquid, scripts will not work in checkout. You might need to make it using checkout extensibility to make a new block, or you can use an app like Checkout Ninja from Shopify app store. You can drag and drop the timer block into checkout (Note: you need Shopify Plus to use the checkout extensibility feature)

Thanks