Estimated Delivery Time Script
Because you give me the opportunity to try out modules before we buy them, I would like to share something in return.
What is it?
Estimated delivery time Script is a modified script that outputs the estimated delivery time wherever you want.
Why this script instead of the shiny, expensive modules?
It's basically the same, but manually, with the big difference that, unlike most estimated shipping time modules, this script can be placed anywhere you want, plus it's lightweight. The script takes into account holidays and the time of purchase.
Now give me the script
https://codepen.io/Pentarou/pen/zYGNRjp
How to use it?
You can use it anywhere in the template files, for example, I used it inside the product miniatures.
I am not a javascript programmer, I copied the code and made it my own by experimenting with it, so I cannot support you, although I will try.
Because you give me the opportunity to try out modules before we buy them, I would like to share something in return.
What is it?
Estimated delivery time Script is a modified script that outputs the estimated delivery time wherever you want.
Why this script instead of the shiny, expensive modules?
It's basically the same, but manually, with the big difference that, unlike most estimated shipping time modules, this script can be placed anywhere you want, plus it's lightweight. The script takes into account holidays and the time of purchase.
Now give me the script
https://codepen.io/Pentarou/pen/zYGNRjp
How to use it?
- Copy JS code to custom.js of your theme or child theme
- Download your language here > https://github.com/jquery/jquery-ui/blob/master/ui/i18n/
- Copy the contents of the language file and paste it between "Start custom language" and "End custom language” of the estimated delivery time script
- Configure exception dates for holidays - [day, month, string],
- Configure time inside // dateMin
- Configure delivery duration inside // Set delivery day here
You can use it anywhere in the template files, for example, I used it inside the product miniatures.
- Copy HTML
- Edit HTML to your liking, but the classes need to be the same!
- Open your .tpl file in your theme folder and paste it somewhere, experiment a bit with it to see if it fits well, and style css accordingly.
I am not a javascript programmer, I copied the code and made it my own by experimenting with it, so I cannot support you, although I will try.
Last edited by a moderator: