New Zenner
- Join Date:
- May 2020
- Location:
- Dallas, Texas
- Posts:
- 14
- Plugin Contributions:
- 0
Order Delivery Date Support Thread
Thanks!
Views: 163,005
New Zenner
Thanks!
Zen Follower
I am running 1.5.7c and just came across this plugin, looks awesome.
I am currently working on a site that will need to have a delivery with pick-up date for a rental business. Can you please tell me if this plugin will allow a return date with or without time?
Thank you for the work!!
Totally Zenned
Noting the code on post #520, you can see how defines could be added for a return date and time. You'd just need to add fields in the files and database.
Load it up on a test site and try it out.
Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com
Zen Follower
dbltoe:
Noting the code on post #520, you can see how defines could be added for a return date and time. You'd just need to add fields in the files and database.
Load it up on a test site and try it out.
Perfect! Thank you very much!
Zen Follower
I hope you don't mind one more question? I installed all files under the 1.5.7 folder from Github and also updated the deliverydate.sql file. However, I am receiving a 500 error on both the store site and admin side.
The site is most4less.com
Would you mind having a look?
I am running 1.5.7c
php: 7.3.28
Thanks.
Totally Zenned
chuckrey:
I hope you don't mind one more question? I installed all files under the 1.5.7 folder from Github and also updated the deliverydate.sql file. However, I am receiving a 500 error on both the store site and admin side.
The site is most4less.com
Would you mind having a look?
I am running 1.5.7c
php: 7.3.28Thanks.
Check your logs folder. I would expect that a log is identified there as to why the site is unreachable...
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Totally Zenned
Hope you made a copy of your database before the installation of the mod.
There are several sql files in there that may or may not need to be used and, I'm not sure if the deliverydate-remove.sql file gets it all.
I'd try a backup restore if your host can't see some reason for the 500.
Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com
Zen Follower
I was just checking those, I should have checked ahead of time and posted. The error log is as follows:
[14-Jul-2021 00:16:05 UTC] PHP Parse error: syntax error, unexpected ';' in /home/most4les/public_html/includes/classes/observers/auto.order_delivery_date_observer.php on line 138
[14-Jul-2021 00:16:05 UTC] Request URI: /admin/logoff.php, IP address: xx.xxxx.xx.xx
--> PHP Parse error: syntax error, unexpected ';' in /home/most4les/public_html/includes/classes/observers/auto.order_delivery_date_observer.php on line 138.
Zen Follower
Yes, definitely. I always do a back-up specially when database changes are involved. Thanks:smile:
Zen Follower
So apparently, this line is the issue:
WHERE orders_id = " . (int)($orders_fields['orders_id'] . " LIMIT 1";
Totally Zenned
chuckrey:
So apparently, this line is the issue:
WHERE orders_id = " . (int)($orders_fields['orders_id'] . " LIMIT 1";
Yeah, just pulled it up...
Change:
WHERE orders_id = " . (int)($orders_fields['orders_id'] . " LIMIT 1";
to:
WHERE orders_id = " . (int)$orders_fields['orders_id'] . " LIMIT 1";
Man, I really wish I knew where/how characters like that just seem to randomly appear...
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Zen Follower
mc12345678:
Yeah, just pulled it up...
Change:
WHERE orders_id = " . (int)($orders_fields['orders_id'] . " LIMIT 1";
> to:
> ```
WHERE orders_id = " . (int)$orders_fields['orders_id'] . " LIMIT 1";
Man, I really wish I knew where/how characters like that just seem to randomly appear...
LOL!! I wish I was half as good at you catching such things.
Thanks again. I greatly appreciate your work. I just did a test and it seems to work great. I just need to let the users know how to properly enter the date.
I value your time and work always
Zen Follower
Yet another question. Is there a way to have the date pop-up a calendar?
Totally Zenned
chuckrey:
Yet another question. Is there a way to have the date pop-up a calendar?
That's actually one of the primary points of the plugin. Check your browser console for javascript/jquery like errors. A mal-formed page or something that prohibits the associated code from executing could prevent the display of the calendar option. There are a number of other possibilities, but I'm working from the perspective that all of the related files have been loaded for the associated Zen Cart version.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Zen Follower
I will have a look and update. Thanks again.
Zen Follower
Hi
Hope someone else is still using this.
I've noted in the past that the mootools library required for this plugin can cause some issues.
Namely if you're using the responsive classic template it would break the mobile menu when you were on the checkout_shipping page.
I have recently started making use of bootstrap template and mootools has reared its head again - basically sometimes when leaving the checkout_shipping page you are directed back to the home page instead of checkout_payment. I have no idea why - but removing the mootools file solved this problem.
One Page Checkout might be a workaround but I haven't tested this yet.
Anyway, I have replaced the mootools calendar with the jquery datepicker and got this working fine. However datepicker lacks the flexibility the mootools one had.
In particular I liked the wildcard and range date blocking, eg [* 1 2024] - block all january, or [1-10 1 2024] - block 1-10 january.
So asking if anyone has a solution to get mootools to play nice, or if you are aware of another datepicker with flexibility akin to the mootools one.
Totally Zenned
royaldave:
Hi
Hope someone else is still using this.
I've noted in the past that the mootools library required for this plugin can cause some issues.
Namely if you're using the responsive classic template it would break the mobile menu when you were on the checkout_shipping page.
I have recently started making use of bootstrap template and mootools has reared its head again - basically sometimes when leaving the checkout_shipping page you are directed back to the home page instead of checkout_payment. I have no idea why - but removing the mootools file solved this problem.
One Page Checkout might be a workaround but I haven't tested this yet.
Anyway, I have replaced the mootools calendar with the jquery datepicker and got this working fine. However datepicker lacks the flexibility the mootools one had.
In particular I liked the wildcard and range date blocking, eg [* 1 2024] - block all january, or [1-10 1 2024] - block 1-10 january.
So asking if anyone has a solution to get mootools to play nice, or if you are aware of another datepicker with flexibility akin to the mootools one.
I stopped using this plugin for the same reason you mentioned. I was never able to get Mootools to play nice with my site ( ZC 1.5.7 with one page checkout and bootstrap template).
I am using an updated version of JS date picker which use product attribute to display the calendar. The downside is the delivery date is on the product page as opposed to the checkout page.
I like that you can have several calendar with different setting based on which attribute is added to the product. Blocking date, cut off time... is fairly easy once you get the hang of it.
I haven't figured the time zone cut off time yet for it. The calendar uses UTC time and can be an issue if you cut off time or such.
Mootools was great when worked but i like my alternative so far. I have seen some nice React datepicker like Ant Design....but no clue how to make it work with ZC.
Zen Follower
nicksab:
I stopped using this plugin for the same reason you mentioned. I was never able to get Mootools to play nice with my site ( ZC 1.5.7 with one page checkout and bootstrap template).
I am using an updated version of JS date picker which use product attribute to display the calendar. The downside is the delivery date is on the product page as opposed to the checkout page.
I like that you can have several calendar with different setting based on which attribute is added to the product. Blocking date, cut off time... is fairly easy once you get the hang of it.
I haven't figured the time zone cut off time yet for it. The calendar uses UTC time and can be an issue if you cut off time or such.
Mootools was great when worked but i like my alternative so far. I have seen some nice React datepicker like Ant Design....but no clue how to make it work with ZC.
For one final time I reinvestigated the mootools calendar and I can see that the particular calendar tool chosen for this plugin was last updated in 2009 and won't work with a mootools younger than v1.2.6.
As I mentioned previously I've been unable to find a datepicker with the same flexibility for blocking dates.
I'm rubbish at js, and completely ignorant to mootools so I won't be spending any more time on this pathway.
This plugin will work with pretty much any datepicker, and as mentioned previously I have got it working with a stock standard js date picker.
I could submit my changes to this plugin but I am sensitive that replacing the previous (mootools) datepicker might seem as a downgrade for some - but I will comment that removal of the mootools library prevents issues with both responsive classic template (on a mobile), and bootstrap overall.
And finally, and it is probably the wrong forum for this, but it is a shame that the author of the calendar tool used in the delivery date plugin did not carry on with it - not just for zen cart, but it could be useful in any number of applications.
Totally Zenned
royaldave:
For one final time I reinvestigated the mootools calendar and I can see that the particular calendar tool chosen for this plugin was last updated in 2009 and won't work with a mootools younger than v1.2.6.
As I mentioned previously I've been unable to find a datepicker with the same flexibility for blocking dates.
I'm rubbish at js, and completely ignorant to mootools so I won't be spending any more time on this pathway.
This plugin will work with pretty much any datepicker, and as mentioned previously I have got it working with a stock standard js date picker.
I could submit my changes to this plugin but I am sensitive that replacing the previous (mootools) datepicker might seem as a downgrade for some - but I will comment that removal of the mootools library prevents issues with both responsive classic template (on a mobile), and bootstrap overall.
And finally, and it is probably the wrong forum for this, but it is a shame that the author of the calendar tool used in the delivery date plugin did not carry on with it - not just for zen cart, but it could be useful in any number of applications.
How are your changes to the plugin working for you?
I am looking for another options for my "delivery date" options on my site. As mentioned in my earlier post, I am using a jquery datepicker that displays on the product page ( via attribute text option). However, the whole cut-off time is driving me nuts. I can t figure out how to have it works on my time zone as opposed to local time. I am PST time and my cut off is 1 PM but if someone try to order from Europe or else, the date options changes based on their local time.
Back to this plugin, can it be displayed on product page instead of checkout? Can a cut-off time be specified that would work on my local time as opposed to user?
Hope this makes sense.
Thank you
Totally Zenned
After re-reading this thread, part of my answer was on post #7 regarding the cut-off time.
So it comes to know if anyone as an updated version that would work with ZC 2.0 , bootstrap template and One page checkout??
I am open to suggestions ( actually i would love a working solutions if anyone as it)
It would be great if the callendar could be displayed on product info page instead of checkout.
Anyone please?
thank you in advance.
Tell staff why this post should be reviewed.