Personalized checkout and custom promotions with Shopify Scripts
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 %}
<div class="cart-timer" data-timer-sec="{{ section.settings.cart_timer_sec }}">
<div class="alert alert-warning rte">
{{ section.settings.cart_timer_text }}
</div>
</div>
{% endunless %}
then adding in the settings
{
"type": "header",
"content": "Cart Timer"
},
{
"type": "richtext",
"id": "cart_timer_text",
"label": "Text",
"default": "<p>Your order is reserved for <strong>[time]</strong></p>",
"info": "Leave empty to disable this feature"
},
{
"type": "text",
"id": "cart_timer_sec",
"label": "Time (sec)",
"default": "300"
},
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024