Forums / Managing Customers and Orders / Order Delivery Date Support Thread

Order Delivery Date Support Thread

Views: 163,129

Results 61 to 80 of 545
3 Jun 2008, 4:37 PM
#61
child_of_the_mind avatar

child_of_the_mind

New Zenner

Join Date:
Jun 2008
Posts:
9
Plugin Contributions:
0

Order Delivery Date Support Thread

mrmeech:

Vab,

Try replacing includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_shipping_default.php with the one attached to my reply here (which will need to be unzipped, obviously)

Let me know if it fixes your problem and if so, i'll update the contribution.

mrmeech,

Thanks so much for this mod! I've been looking for something like this for awhile and I'm grateful to you and the other developers for taking the time to put all this together. I did have one question though.. Any chance that the next update could include time slots for delivery after the date is selected? For example a user could select 2008-06-16. And then select a time slot of 8:00 a.m. - 1:00 p.m or 1:00 p.m. - 6:00 p.m.? Thanks again for your great contribution.

3 Jun 2008, 5:38 PM
#62
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

Child_Of_The_Mind:

mrmeech,

Thanks so much for this mod! I've been looking for something like this for awhile and I'm grateful to you and the other developers for taking the time to put all this together. I did have one question though.. Any chance that the next update could include time slots for delivery after the date is selected? For example a user could select 2008-06-16. And then select a time slot of 8:00 a.m. - 1:00 p.m or 1:00 p.m. - 6:00 p.m.? Thanks again for your great contribution.

Glad you appreciate the work! :smile:

The update that is pending right now in the download section (version 2.1) just fixes a display issue, but I will put it on the (small) list of requested features. It might be a bit tricky to integrate it with the setup of this calendar solution, but i'll see what i can do.

3 Jun 2008, 5:42 PM
#63
child_of_the_mind avatar

child_of_the_mind

New Zenner

Join Date:
Jun 2008
Posts:
9
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

mrmeech:

Glad you appreciate the work! :smile:

The update that is pending right now in the download section (version 2.1) just fixes a display issue, but I will put it on the (small) list of requested features. It might be a bit tricky to integrate it with the setup of this calendar solution, but i'll see what i can do.

Well I'll definitely stay posted! Thanks for taking it into consideration and again for building the mod in the first place!

5 Jun 2008, 6:24 PM
#64
velvetangels avatar

velvetangels

New Zenner

Join Date:
Sep 2007
Posts:
27
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

Mrmeech,

Well I have gone through all the files and where I found order_delivery_date I added the same information for order_cancel_date.

I followed through the files you said:

  • pay close attention to includes/classes/order.php. Look where the modifications for the order delivery date mod is... usually they are called "order_delivery_date" (go figure)
  • Update your language defines in english/YOUR_TEMPLATE/*.php
  • Update includes/templates/YOUR_TEMPLATE/templates/checkout_*.php to display your cancel date info or whatever
  • Update admin/orders.php so that when you generate an email from an order page it will include the cancel date, as well as display the cancel date info on the orders page.
  • Make sure you update admin/includes/classes/order.php as well

There were a few other files that I had to edit. The problem that I am having is that I cant get the calendar to work on the tpl_checkout_shipping_default.php.

The first one was:

<!-- Bof Ship Date -->
<fieldset class="shipping" id="order_delivery_date">
<legend><?php echo TABLE_HEADING_DELIVERY_DATE; ?></legend>

<label for="date">Date</label>
<input class="calendar" readonly="readonly" id="date" name="date" type="text">
<button class="calendar" type="button"></button>

</fieldset>
<!-- Eof Ship Date -->

and I added:

<!-- Bof Cancel Ship Date -->
<fieldset class="shipping" id="order_cancel_date">
<legend><?php echo TABLE_HEADING_CANCEL_DATE; ?></legend>

<label for="date2">Date</label>
<input class="calendar" readonly="readonly" id="date2" name="date2" type="text">
<button class="calendar" type="button"></button>

</fieldset>
<!-- Eof Cancel Ship Date -->

and when I get to the shipping page it shows 2 calendar buttons next to Desired Delivery Date and one next to Desired Cancel Date but only the first one on Desired Delivery Date does anything when clicked. (attached screenshot)

What do you think?

5 Jun 2008, 7:34 PM
#65
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

velvetangels:

Mrmeech,

...

The problem that I am having is that I cant get the calendar to work on the tpl_checkout_shipping_default.php.

The first one was:

<!-- Bof Ship Date --> <fieldset class="shipping" id="order_delivery_date"> <legend><?php echo TABLE_HEADING_DELIVERY_DATE; ?></legend>

<label for="date">Date</label>
<input class="calendar" readonly="readonly" id="date" name="date" type="text">
<button class="calendar" type="button"></button>

</fieldset> <!-- Eof Ship Date --> ```and I added: > ```php <!-- Bof Cancel Ship Date --> <fieldset class="shipping" id="order_cancel_date"> <legend><?php echo TABLE_HEADING_CANCEL_DATE; ?></legend>

<label for="date2">Date</label>
<input class="calendar" readonly="readonly" id="date2" name="date2" type="text">
<button class="calendar" type="button"></button>

</fieldset> <!-- Eof Cancel Ship Date --> ```and when I get to the shipping page it shows 2 calendar buttons next to Desired Delivery Date and one next to Desired Cancel Date but only the first one on Desired Delivery Date does anything when clicked. (attached screenshot)

This boggles my mind a little bit..

if you remove this line of code from the "requested delivery date" calendar, i bet it will fix that problem:

<button class="calendar" type="button"></button>
```However, what doesn't make sense is why it's not showing up on your cancel date calendar too. What happens if you remove that same line of code from the cancel date calendar?
5 Jun 2008, 8:02 PM
#66
velvetangels avatar

velvetangels

New Zenner

Join Date:
Sep 2007
Posts:
27
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

mrmeech:

This boggles my mind a little bit..

if you remove this line of code from the "requested delivery date" calendar, i bet it will fix that problem:

<button class="calendar" type="button"></button>


Tried to delete the button on the first fieldset and it does take out the 2nd calendar under Desired Delivery Date but when you try to click the calendar for Desired Cancel Date it doesnt do anything. 

Tried taking out the 2nd button in the cancel fieldset and it removes the calendar button from the cancel fieldset. 

How does it know to pull the calendar popup? wonder why it isnt working when the first button is removed.
5 Jun 2008, 8:17 PM
#67
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

velvetangels:

Tried to delete the button on the first fieldset and it does take out the 2nd calendar under Desired Delivery Date but when you try to click the calendar for Desired Cancel Date it doesnt do anything.

Tried taking out the 2nd button in the cancel fieldset and it removes the calendar button from the cancel fieldset.

How does it know to pull the calendar popup? wonder why it isnt working when the first button is removed.

I am pretty sure that the calendar .js file itself is generating a calendar button. The release only has the compiled version of the javascript file, but i'll attach the exploded (readable) version for you to sift through too.

This is the site for the calendar itself and might be very helpful to figuring this out: http://electricprism.com/aeron/calendar/

5 Jun 2008, 11:25 PM
#68
velvetangels avatar

velvetangels

New Zenner

Join Date:
Sep 2007
Posts:
27
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

mrmeech:

I am pretty sure that the calendar .js file itself is generating a calendar button. The release only has the compiled version of the javascript file, but i'll attach the exploded (readable) version for you to sift through too.

This is the site for the calendar itself and might be very helpful to figuring this out: http://electricprism.com/aeron/calendar/

Found the problem after reading through the website - (thank you very helpful)
It turns out that you have to label each field that you want the calendar to display on different (had a suspicion about that)

so on here tpl_checkout_shipping_default.php this is what i did:

<!-- Bof Ship Date -->
<fieldset class="shipping" id="order_delivery_date">
<legend><?php echo TABLE_HEADING_DELIVERY_DATE; ?></legend>

<label for="date1">Date</label>
<input class="calendar" readonly="readonly" id="date1" name="date1" type="text">

</fieldset>
<!-- Eof Ship Date -->

<!-- Bof Cancel Ship Date -->
<fieldset class="shipping" id="order_cancel_date">
<legend><?php echo TABLE_HEADING_CANCEL_DATE; ?></legend>

<label for="date2">Date</label>
<input class="calendar" readonly="readonly" id="date2" name="date2" type="text">

</fieldset>
<!-- Eof Cancel Ship Date -->

and had to change \includes\modules\pages\checkout_shipping\jscript_calendar_head.php

?>
<script type="text/javascript">
window.addEvent('domready', function() { 
myCal1 = new Calendar({ date1: 'Y-m-d' }, { blocked: ['24-25,31 12 *', '0 * * 0'], direction: 3, draggable: false }); 
myCal2 = new Calendar({ date2: 'Y-m-d' }, { blocked: ['24-25,31 12 *', '0 * * 0'], direction: 3, draggable: false }); 
});
</script>
<?PHP /*

I am testing now and I can add it as an update if anyone would like. :clap:

6 Jun 2008, 6:40 AM
#69
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

Velvetangels,

So you DID wind up cutting out this line of code from the shipping_default page (to fix the double button problem) for both the ship date and cancel date:

<button class="calendar" type="button"></button>

Correct?

6 Jun 2008, 3:22 PM
#70
velvetangels avatar

velvetangels

New Zenner

Join Date:
Sep 2007
Posts:
27
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

mrmeech:

Velvetangels,

So you DID wind up cutting out this line of code from the shipping_default page (to fix the double button problem) for both the ship date and cancel date:

<button class="calendar" type="button"></button>

> 
> 
> Correct?

MrMeech,

Ya I had to delete 

```php
<button class="calendar" type="button"></button>

on the shipping_default page. It looks like adding it onto the input allows it to show the button anyways.

I tried to test it out and i am not getting any values to post through to other pages. I enter the dates on the shipping_default page and when i get to the Confirmation page it only has

Desired Delivery Date

(Year - Month - Day)

Desired Cancel Date

(Year - Month - Day)

Going to try to work more though it today.

I attached the code that I have already edited if you want to take a look too.

6 Jun 2008, 4:59 PM
#71
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

velvetangels:

...

I tried to test it out and i am not getting any values to post through to other pages.

...

I looked over the files you attached, and the only immediately apparent errors were in the includes/classes/order.php around line 950-ish in the email section. I'll attach the file with the corrections.

Also it appears you have not yet edited the files in the email directory- if ya don't do that the info will never make it onto the actual emails generated to the customer.

6 Jun 2008, 11:52 PM
#72
velvetangels avatar

velvetangels

New Zenner

Join Date:
Sep 2007
Posts:
27
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

mrmeech:

I looked over the files you attached, and the only immediately apparent errors were in the includes/classes/order.php around line 950-ish in the email section. I'll attach the file with the corrections.

Also it appears you have not yet edited the files in the email directory- if ya don't do that the info will never make it onto the actual emails generated to the customer.

I think there is something else wrong with the script. I tried to install a fresh version on zencart and it never did pull the values all the way through to the confirmation page.

7 Jun 2008, 1:40 AM
#73
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

velvetangels:

I think there is something else wrong with the script. I tried to install a fresh version on zencart and it never did pull the values all the way through to the confirmation page.

I will look into this right away.

7 Jun 2008, 7:05 AM
#74
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

Velvetangels,

You are right. I made changes from version 1 to version 2 (which is where i believe this happened) on a clean 138 install and somewhere in bringing the files to the community i botched something. It's quite frustrating because i have a working version of the calendar mod on a server and i've been trying to figure out what happened. I even have some awesome file compare tools that outline line by line changes to help and i'm still stumped.

Gotta head to bed but i'll work on this more tomorrow. I need to sleep on it. :smile:

Have you been working with a 138, or 138a version of ZC?

7 Jun 2008, 7:34 AM
#75
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

I FOUND IT!!!! I shut down my computer, and sat for a second (after all these hours of hunting for it)...had an epiphany... and turned it back on and found it in a second. Study the two blocks of code, and you'll figure it out. It was tpl_checkout_shipping_defualt.php that was causing the problem.

Delivery Date version 2:

<!-- Bof Ship Date -->
<fieldset class="shipping" id="order_delivery_date">
<legend><?php echo TABLE_HEADING_DELIVERY_DATE; ?></legend>

<label for="date">Date</label>
<input class="calendar" readonly="readonly" id="date" name="date" type="text">
</fieldset>
<!-- Eof Ship Date -->
```And what it SHOULD be:
```php
<!-- Bof Order Delivery Date -->
<fieldset class="shipping" id="order_delivery_date">
<legend><?php echo TABLE_HEADING_DELIVERY_DATE; ?></legend>

<label for="order_delivery_date">Date:</label>
<input readonly="readonly" id="date" name="order_delivery_date" type="text">
</fieldset>
<!-- Eof Order Delivery Date -->
```how stupid.
15 Jun 2008, 10:45 PM
#76
deoxiribo avatar

deoxiribo

New Zenner

Join Date:
May 2008
Location:
California
Posts:
3
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

Thank you! Version 2.2 works beautifully! The date came over perfectly.

Thank you so much for this mod. It's what I've been looking for over the course of several months. It's perfect for a flower shop website. :clap:

17 Jun 2008, 5:55 AM
#77
dimmyr avatar

dimmyr

New Zenner

Join Date:
Jun 2008
Posts:
54
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

How do I change the style of the calendar to the alternate styling (dashboard) as seen here: http://electricprism.com/aeron/calendar/#download.

I tried to insert the classes: ['dashboard'] but that caused no graphics... So i need different graphics? Where do I get them?

17 Jun 2008, 2:08 PM
#78
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

dimmyr:

How do I change the style of the calendar to the alternate styling (dashboard) as seen here: http://electricprism.com/aeron/calendar/#download.

I tried to insert the classes: ['dashboard'] but that caused no graphics... So i need different graphics? Where do I get them?

When making the first version of the popup calendar there was seemingly nowhere to go to get the background(s) for the calendar, so they are directly from the example page.

Check out the attached zip file.

19 Jun 2008, 8:41 AM
#79
henteaser avatar

henteaser

New Zenner

Join Date:
Jun 2008
Posts:
1
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

Hi,

Thanks for this great contribution, much respect!

Is there some way of making certain dates in the future "unavailble"?

Would there be a way of doing this through the admin panel?

(apologies if this has already been discussed, I couldnt find it if it has!)

Thanks for replies in advance

19 Jun 2008, 1:23 PM
#80
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

deoxiribo:

Thank you! Version 2.2 works beautifully! The date came over perfectly.

Thank you so much for this mod. It's what I've been looking for over the course of several months. It's perfect for a flower shop website. :clap:

Where can I find version 2.2? I've looked through the files in the thread and the download section. Am I just missing it along the way?

thank you,

betty