Hi, I like this module because of its simplicity but I need some extra functionality: Customers need to be able to choose a timeslot before (or during) shopping. This is to prevent unhappy costumers who find out that there preferred timeslot isn't available after they took the effort of picking the goods they want.

I will use this module as a startingpoint and was wondering what the best approach would be to contribute the new developments back to the comunity. Either as e complete new module or as a patch?

The idea is as follows:
- after login users will be directed to a page where they can set a preferred timeslot. This will be saved in a table similar to uc_deliverytimeslot_order but instead of the order ID (oid) the user ID (UID) will be used. Lets call it uc_deliverytimeslot_pre_order
- during shopping users can go back and re-choose a different timeslot if the want
- during checkout the chosen timeslot is prefilled in the timeslot form but still editable if the user wants to.
- after confirming the order the pre-selected timeslot will be removed from the table uc_deliverytimeslot_pre_order.

Any ideas or suggestions for improvement of this plan and or for contributing this to the community?

Cheers,
Bram.

Comments

garbo’s picture

OK, I'm advancing with my little project. I decided to build on top of the existing module and if the result is good enough I will see how to create a patch and post it here for review.

bocaj’s picture

I would be interested in this as well. I have been tweaking the existing module for a site I am building and was thinking about what you mention here, but have not had a chance to look into that side of things. Would be interested to see what you have. Since I am almost completely rewriting the checkout pane (not a big fan of the current multiple radio button layout), I may not be able to apply a patch. Although, I could setup a separate sandbox site to help with development/testing.

I am thinking that this module is no longer maintained? Does anyone have any information on that?

garbo’s picture

Hi Bocaj,

I have no information on whether this module is still being maintained. But haven't had any replies yet to my postings here so my guess is that maintainer is not that active here anymore.

About your redesigned checkout pane, I would be very interested to see what you are creating. Personally I'm happy with the checkboxes in a table but I can understand that if you have many days (say 10 or more) with different timeslots that it can get messy.
Maybe it will be possible to offer the user the option to use different style checkout panes.

My planning is that today I will have finished my first overwrite and I will post a link here so you can see. The patch will take a bit longer though but if you are interested I can send you a link to download the complete module

garbo’s picture

I've got it all working.

You can see a test-website at: http://ruudmaaz.bramdeleeuw.nl If you create an account and login you will first be directed to a page where you can choose your preferred delivery time.

During shopping you can always go back and edit this time

During checkout the preferred time is automatically selected but still editable.

After the order is confirmed the temporary timeslot selection is deleted from the database and inserted into the normal deliverytimeslot_order table.

bocaj’s picture

Thanks for posting...I created an account on the test website you posted, but I didn't see anything about setting up a preferred delivery time. Being that I only speak, read, write English I was just clicking around. I did see the delivery time listed in the checkout page, but did not find it anywhere else. Can you point me in the right direction?

I will show you what modifications I have made once it is complete. For my purposes, we are wanting to offer delivery options for around the next 14 days or so. As you mentioned, the default radio button layout is just messy.

garbo’s picture

Hi Bocaj,

After login using the login form the user is redirected (using the login redirect module) to a page with the timeslot selection form. I see now that new users who use the onetime login link in the account confirmation e-mail aren't being redirected. I need to see what I can do about that.

Anyway, you should be ale to see the timeslot form when you log in using the login form in the left sidebar.

garbo’s picture

I have also overridden the theme_uc_cart_block_summary() function and added an extra link to the timeslot selection page between the view-cart and checkout links in the bottom of the cart-block.

bocaj’s picture

Hi garbo,
I did get the delivery page after login this time! That is really nice!

One issue that I am facing right now is that depending on the time of day that I am testing things out, I get varied results. I think since I rewrote so much that it doesn't really have anything to do with this module anymore, I think it is probably somewhere in the code that I have written, but it is a real pain!

How did you get the module interface to show on it's own page? I think that functionality would be very nice, but haven't figured out exactly how you accomplished that.

I like what you have done so far. Look forward to seeing what you produce in the future with this module. I will post my code once I have those remaining bugs fixed.

garbo’s picture

I built upon the existing module by adding an extra page with hook_menu. On this page the selection form is being rendered with an altered version of the function theme_deliverytimeslot_pane().

I will try to create a patch (would be my first ever) and post it here.

hockey2112’s picture

Any update on this patch?