v1.6-v1.7 Estimated Delivery Time Script

hwshop

Active member
Elite
XNullUser
Joined
Jul 14, 2019
Messages
259
Reaction score
175
Points
43
NullCash
9
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?
  1. Copy JS code to custom.js of your theme or child theme
  2. Download your language here > https://github.com/jquery/jquery-ui/blob/master/ui/i18n/
  3. Copy the contents of the language file and paste it between "Start custom language" and "End custom language” of the estimated delivery time script
  4. Configure exception dates for holidays - [day, month, string],
  5. Configure time inside // dateMin
  6. Configure delivery duration inside // Set delivery day here
Where to use it?
You can use it anywhere in the template files, for example, I used it inside the product miniatures.

example.png
  1. Copy HTML
  2. Edit HTML to your liking, but the classes need to be the same!
  3. 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.
Disclaimer
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:

Parek

Well-known member
Diamond
Elite
XNullUser
Joined
Jan 16, 2020
Messages
105
Reaction score
278
Points
63
NullCash
652
Hi,

dowload link to script not working, please reapair.
 

rici

Member
XNullUser
Joined
Dec 15, 2018
Messages
526
Reaction score
8
Points
18
NullCash
14
Excelent module!! Tks, man!
 

hwshop

Active member
Elite
XNullUser
Joined
Jul 14, 2019
Messages
259
Reaction score
175
Points
43
NullCash
9
Here is the correct URL to the script,

I don't know why Codepen changed it, but I can't edit my post, so maybe the administrator can change the URL? Thank you!

https://codepen.io/Pentarou/pen/zYGNRjp
Post automatically merged:

You can use this cheatsheet to localize time and date format.

https://devhints.io/datetime
 
Last edited:
Top