Hey guys, I’m trying to use a liquid script to show estimated delivery dates on my product pages. So far I have been using the script below from this article I found (my site is gofirepits.com, built on Venture theme):
Get it between -
{{ ‘//cdnjs.cloudflare.com/ajax/libs/datejs/1.0/date.min.js’ | script_tag }}
I’ve pasted it exactly as described on line 159 of product-template.liquid. The problem I am having with this script is that it only shows estimated delivery dates in terms of calendar days after the date of viewing. This is a problem because my shipping times are in business days, not calendar days. It looks like there’s a conditional script for both “fromDate” and “toDate” that is supposed to account for business days, but in my experience implementing it on my site that has not worked.
