Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I want my products description to say.
<html>
<body>
{% assign current_day = 'now' | date: '%A' %}
{% case current_day %}
{% when 'Friday' %}
Free delivery! Monday or Tuesday from Gqeberha. Excluding Tax!
{% when 'Saturday' %}
Free delivery! Monday or Tuesday from Gqeberha. Excluding Tax!
{% when 'Sunday' %}
Free delivery! Monday or Tuesday from Gqeberha. Excluding Tax!
{% when 'Thursday' %}
Free delivery! Friday or Monday from Gqeberha. Excluding Tax!
{% when 'Monday' %}
Free delivery! Tuesday or Wednesday from Gqeberha. Excluding Tax!
{% when 'Tuesday' %}
Free delivery! Wednesday or Thursday from Gqeberha. Excluding Tax!
{% when 'Wednesday' %}
Free delivery! Thursday or Friday from Gqeberha. Excluding Tax!
{% endcase %}
</body>
</html>
But keep on getting the same text of the code in the live view it's embarrassing.
Does anyone know how to get it to work.
Please help!
Time in Liquid is not precise.
Shopify uses server-side caching to ensure your pages load fast. So it may serve the same cached page for days after it was first rendered.
Thing like the one you want should be done with Javascript, but then it's not straight forward too, because JS code would need to account the time difference between you and your visitors...
Frankly, wouldn't simple "Free 2 business days delivery" be good enough?
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024