Re: Order Delivery Date Support Thread
Well, I kind of found a work around. Not sure if it will help anyone but here is what I did.
I loaded the jscript_calendar_head.php file right into the main jscript folder in my template folder. I know the code will show on every page and I doudbt this will be a problem so I see no harm. ALl I care is that I got it working in Firefox doing this.
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
prosam
Quote:
Originally Posted by
prosam
Well, I kind of found a work around. Not sure if it will help anyone but here is what I did.
I loaded the jscript_calendar_head.php file right into the main jscript folder in my template folder. I know the code will show on every page and I doudbt this will be a problem so I see no harm. ALl I care is that I got it working in Firefox doing this.
If it works when you move jscript_calendar_head.php to your template folder, then i'm wondering if you might have (or had?) a permissions issue on the normal folder somewhere, either on the folder itself or maybe the actual file?
But i'm a little dumbfounded as to why it would work in IE but not FF if it was a file permissions issue... For sake of figuring this out, maybe you could try putting the file back to it's normal home and simply take a look at the source code in the browser to see that it shows up correctly in the head tag.
Let me know if you'd like me to take a quick look at the site. Send me a private message with the site's URL if you're interested.
Re: Could the date entry be made mandatory?
Quote:
Originally Posted by
duffy
Good day mrmeech. This is a great mod! I just updated to version 2 with the javascript calendar and noticed some strange behavior--from my customers, not the mod. They don't always enter a date:blink:. Consequently I get a date of Tuesday, November 30, 1999 by default.
I was wondering if there was a way to make the date selection required?
I also have this same issue. Some customers don't always need to specify a date so when left blank I get the same date in the back end. I guess I can disregard the date for now but is there anyway for it just stay blank or print the current date instead of a date in the past?
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
mrmeech
If it works when you move jscript_calendar_head.php to your template folder, then i'm wondering if you might have (or had?) a permissions issue on the normal folder somewhere, either on the folder itself or maybe the actual file?
But i'm a little dumbfounded as to why it would work in IE but not FF if it was a file permissions issue... For sake of figuring this out, maybe you could try putting the file back to it's normal home and simply take a look at the source code in the browser to see that it shows up correctly in the head tag.
Let me know if you'd like me to take a quick look at the site. Send me a private message with the site's URL if you're interested.
I did look at the code in both instances but by having the js call in the jscript folder it loads the call above another js function for a google analytics module I have installed.
So I think the issue was that in FireFox mootools was not finding the definition after the analytics javascript. Not sure if that even makes sense. :)
Re: Order Delivery Date Support Thread
hi all,
guess i would need some help here..i installed the mod but i cannot select any date...mean i see the field but can't do anything with it..
I have also the easy checkout mod and folloeed the instructions..
thanks
KyLi
website is www.wittygift.com
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
kyli51
hi all,
guess i would need some help here..i installed the mod but i cannot select any date...mean i see the field but can't do anything with it..
I have also the easy checkout mod and folloeed the instructions..
thanks
KyLi
website is
www.wittygift.com
KyLi,
You're loading Mootools twice -- the first time in the head tag that it loads is where it's supposed to be for the delivery date mod to function. This is all good:
HTML Code:
<script type="text/javascript" src="includes/modules/pages/checkout/jscript_a-mootools.js"></script>
<script type="text/javascript" src="includes/modules/pages/checkout/jscript_b-calendar.js"></script>
<script type="text/javascript">
window.addEvent('domready', function() { myCal = new Calendar({ date: 'Y-m-d' }, { blocked: ['24-25,31 12 *', '0 * * 0'], direction: 3, draggable: false }); });
</script>
But further down in your head tag you also have this:
HTML Code:
<script type="text/javascript" src="js/mootools.js"></script>
The reason that the order delivery date has "a" and "b" in those two JS files is because if mootools loads after calendar.js it will not work. I suspect that that might be the problem.
Re: Order Delivery Date Support Thread
great it works ... thanks a lot
Re: Order Delivery Date Support Thread
hi,
thanks for the answer...now its almost working in fact..main issue is that the date do not appear on the mail... it's blank there is just delivery date :..... and on the order statu is november 1999 whatverver i put..
any idea ?
Kyli
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
kyli51
hi,
thanks for the answer...now its almost working in fact..main issue is that the date do not appear on the mail... it's blank there is just delivery date :..... and on the order statu is november 1999 whatverver i put..
any idea ?
Kyli
Kyli,
Well, first thing is to check that the date is actually making it into the delivery date table. I would suggest making an order with a delivery date, then looking in the database to make sure it got in there. It kind of sounds like it's not getting stored and the 1999 date is the php code not knowing what to do with the null value.
Re: Order Delivery Date Support Thread
hi,
yes your right, no value at all in DB...now i have to figure out where did it bug...
other help ? :-)