I figured out the problem regarding skipping the shipping information page in checkout.
Now my question is how can you display the date based off your server and not the workstation? Any help is greatly appreciated.
I figured out the problem regarding skipping the shipping information page in checkout.
Now my question is how can you display the date based off your server and not the workstation? Any help is greatly appreciated.
Hi guys -- there is something wrong with my email notification of this thread because i was JUST notified that there was another thread posting since the last time i posted, and there have been a number of you that have since asked questions. Give me a few days to get back to you guys because i'm currently on the road until... tuesday??
Thanks!!
Hey - I looked into seeing if this could be done easily, and the short answer is No.
In general - Javascript (which is what the calendar is created with) is a client-side technology. NOT a server-side technology. There are ways to get the server's date to javascript via a PHP file, but once you do that you run into another problem -- the whole JS calendar framework is designed to use the date() object, so in order to do this, you'd have to do a major reworking of the code. And that is a big task.
If having the server's time is a major issue for you, i would suggest looking in to PHP calendars. What you can do then is cut out the javascript calendar code and place your PHP calendar in it's place on the checkout_shipping page. The whole Includes/Modules/Pages/Checkout_Shipping folder, except for header_php.php, is for the javascript delivery date calendar. And in your template folder in tpl_checkout_shipping_default.php you will see where the Order Delivery Date code is to replace with the PHP calendar.
Hope you can make sense of all that!!![]()
Hey folks -
I need a little help from you guys!
I've been working on the delivery date contribution for the last day and a half and have made some significant improvements to the code. However, i have a little collateral damage from my changes and i'm having an impossible time troubleshooting an email issue that has occurred.
I would love it if someone, or more than one person, is willing to take a look at the code and give me a hand to get this much updated release out. Having an understanding of zen cart's code is important.
Thanks!![]()
Excellent contribution Meech, the delivery date is essential for my business. A question: is it possible to set up a system where people who request Saturday delivery are charged more than Monday-Friday delivery dates? FedEx charges additional for Saturday delivery so, it would be nice to establish that.
Hey djrutsch,
To have this functionality based off of the calendar, where if a user selects a Saturday delivery date they are charged more, is a bit of a task. This may become much easier to do when zen cart 2.0 is released and will be 100% (or close to) object oriented code.
There are a few stop-gag options for you:
- Disable all Saturdays on the calendar from being active, so that it cannot be chosen as a delivery date.
- or; Add an attribute to your product pages that forces (ie: a required field) the user to select either a weekday OR saturday delivery before getting to the checkout. For the weekday attribute you can leave it as $0, and for the saturday attribute you can set it to whatever additional amount you'd like to charge. When they get to the shipping page they then select which day of the week or which saturday they would like for delivery.
I can help you with either of the above two options if you need assistance, as they are easy and quick to do.