Shopify themes, liquid, logos, and UX
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
I have a code needs to show the shipping terms phrase if product is in stock only. As there are some products on pre-order in our shop. But it won't work. Can anyone help? Thanks!
{% unless product.description contains "BUY NOW TO PRE-ORDER!" %}
<p> <img src="https://cdn.shopify.com/s/files/1/0043/0886/1046/files/download.png?v=1626058955” style="height:25px;float:left;margin-right:10px;padding-bottom: 4px;">
Ships between <strong><span id="fromDate"></span> - <span id="toDate"></span></strong> </p>
{{ '//cdnjs.cloudflare.com/ajax/libs/datejs/1.0/date.min.js' | script_tag }}
<script>
var fromDate = Date.today().addDays(1);
if (fromDate.is().saturday() || fromDate.is().sunday()) {
fromDate = fromDate.next().monday();
}
var toDate = Date.today().addDays(3);
if (toDate.is().saturday() || toDate.is().sunday())
toDate = toDate.next().monday();
document.getElementById('fromDate').innerHTML = fromDate.toString('dddd MMMM dS');
document.getElementById('toDate').innerHTML = toDate.toString('dddd MMMM dS');
</script>
{% endunless %}
User | RANK |
---|---|
112 | |
86 | |
68 | |
68 | |
45 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022