About Club osCommerce

Showcasing osCommerce - the good, the bad and the ugly!

StumbleUpon It! DIGG It!

Support for Ship Date Contribution

Written By Gary on Aug 22 2008 ·

This is the support thread for the soon to be released "Club osCommerce Ship Date" Contribution.

This contribution is quite an easy install, only affecting the following files:

account_history_info.php
checkout_confirmation.php
checkout_payment.php
checkout_process.php
checkout_shipping.php
includes/classes/order.php
includes/languages/english/account_history_info.php
includes/languages/english/checkout_confirmation.php
includes/languages/english/checkout_shipping.php

admin/orders.php
admin/includes/classes/order.php
admin/includes/languages/english/orders.php

Also, 1 small change in the database. And a few extra files to control the javascript.

Very easy to install, but as with all my contributions, I offer a guaranteed install service.


Buy Gary A Beer?
Buying me a "beer" helps me to keep my contributions updated and keep this blog alive. Cheers!


27 Comments

  1. When do you expect to have this module complete?

    Comment by scott fluhrer — August 26, 2008 @ 10:40 pm


  2. Scott - about 4 days ago ;)
    http://addons.oscommerce.com/info/6178

    Comment by Gary — August 27, 2008 @ 1:48 pm


  3. i want to ask you, can i change the format of the date? i want to do it 25/08/2008 , day/month/year.. That is the format we use in Greece, and i am afraid that if the popup calendar doesn't open to some customers for any reason, then that will be a problem..

    Comment by christoforos — August 27, 2008 @ 7:35 pm


  4. Chris - yes, it's possible to change, but only with some extra coding when getting the inputted date. The format it is in now, is correct for in sertion into the database (and consequently the correct format for the date functions in oscommerce).

    Comment by Gary — August 28, 2008 @ 8:09 am


  5. suddenly the popup for date choosed stopped opening.. i don't know why.. untill know it was opening, but from yesterday it has stopped.. any idea?

    Comment by christoforos — September 3, 2008 @ 4:30 pm


  6. "any idea?" - i'd have to look at your code to give you an idea, and that is not free ;)

    Suggestion: date chooser is javascript - have you turned it off in your borwser.
    Suggestion: is the relevant files still at your webspace (the .js files that are called by the page).
    Suggestion: have you messed about with the code to try to get the correct date format - and broken it?

    Comment by Gary — September 3, 2008 @ 4:35 pm


  7. no, i just moved this code (see below) on the footer.php (from the product_info).. :

    i moved this on footer to fix a bug of my site..

    Comment by christoforos — September 3, 2008 @ 6:04 pm


  8. link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" /
    script type="text/javascript" src="js/prototype.js">
    script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script

    i took out now the because i saw that in my last post they didn't appear those lines

    Comment by christoforos — September 3, 2008 @ 6:05 pm


  9. If you want me to have a look and find a fix I can do. It'll cost you anywhere between a beer and a six pack of beer ;) Email me.

    Comment by Gary — September 3, 2008 @ 6:50 pm


  10. if you want tell me the cost of your beers, i'll send them to you, and then tell me the fix by mail..

    Comment by christoforos — September 3, 2008 @ 6:51 pm


  11. Support does not work that way.

    I need to make investigations as to why this is happening, and for that I need to log in your ftp, view your files. Once I can ascertain what's wrong, I can think up a fix and let you know a cost. You won't be charged anything that you are not 100% aware of.

    Please stop posting your error message - it's not needed and not helpful ;)

    Comment by Gary — September 3, 2008 @ 6:59 pm


  12. i get the following error:
    '$.datepicker is undefined
    (?)()()checkout…814946838 (line 65)
    to the wait list jQuery.readyList.push()()jquery-latest.js (line 1937)
    (?)()()jquery-latest.js (line 1961)
    each()([function(), function()], function(), undefined)jquery-latest.js (line 585)
    ready()()jquery-latest.js (line 1960)
    [Break on this error] beforeShowDay: $.datepicker.noWeekends'
    if i insert the date picker code in checkout_shipping.php file in oscommerce.

    Comment by veena — September 22, 2008 @ 9:04 am


  13. Looks like a conflict somewhere - are you using any other javascript libraries in your website (eg scriptaculous) - maybe for a lightbox or whatever.

    Comment by Gary — September 23, 2008 @ 8:19 am


  14. Hi,
    can anyone tell me the changes that have to be made to the checkout_process.php so that the delivery date is also shown on the confirmation e-mail ?

    Thank you for any help in advance.

    Thomas

    Comment by Thomas — October 24, 2008 @ 6:42 am


  15. Thomas - I thought it was already shown, but I could be mistaken. I'll try to find time to take a look for you.

    Comment by Gary — October 24, 2008 @ 8:40 am


  16. Hey!
    I'm stuck with one thing about the delivery date chooser.
    I already have the calendar working fine along with sending values to database.

    What I need is an option to pick the time period (out of 4) from particular day instead of the whole day.
    Second thing is the limit of deliveries for each time period. This would need to inform (hide/show the time period) the user about the availability of each time period.

    Similar solution can be found on http://www.bocian.co.uk .. actually they have exactly the thing I need.

    Would You be able to tell what changes need to be made to achieve this?
    Thanks

    Comment by Mephii — November 12, 2008 @ 7:56 pm


  17. What you need to have is a module created to your specification which can be expensive. If you wish to explore that, please feel free to email me on oscshops@gmail.com

    Comment by Gary — November 13, 2008 @ 1:55 pm


  18. Thanks for Your reply and advice.

    I think, after spending a bit of night trying to solve that, I can tell I'm fast on my way to achieve that goal.
    After all, the thing with the limit of deliveries for each time period wasn't as difficult to set up (with insert/update of a seperate table created specifficaly for calendar and 'shipdates').
    Although the check for availability might appear a pain it the *** since there are few other checks before showing the calendar already (e.g. target day, saturday/sunday options etc.).

    Nevertheless, I'm sure I can do that! So a new module isn't necessary.

    Thanks

    Comment by Mephii — November 13, 2008 @ 9:04 pm


  19. Hi!.
    I'm trying to use the "delivery_date" fix on a OsCMax shop .. (heavily modded Oscommerce) with no success in sight, looking my eyes dry and tearing my (or what's left of it)hair out … I just can't figure it out … I've done the patching (using 'Winmerge') and followed your guide ….. could sure need a little hand coded help .. ;o)

    Dan
    From Denmark.

    Comment by danfeld — November 16, 2008 @ 12:16 pm


  20. Hi Dan - I'm not familiar with oscmax, so it is possible that something else in the oscmax distribution would be conflicting. I don't mind installing for you (or at least having a try), though I would charge you some "beers" for me to do so. It might be an idea for you to ask in the oscmax forums?

    Comment by Gary — November 17, 2008 @ 1:40 pm


  21. Hi Gary.

    Thank you for replying so fast ..
    Yes it could be a conflict between the mod an the contribution … unfortunatly I'm not a php shark and able to actually read an understand the code, it's a good portion af guessing and hoping when I'm installing it.. ;o)
    I would like you to help me installing the contribution and I'm ready to fill your fridge with "beer" .. You just tell me how we do it .. and what you need ..

    Dan ..

    Comment by Dan Feld-Jakobsen — November 17, 2008 @ 2:49 pm


  22. Hi Gary,

    I just installed your coding into my test site in order to check the behaviour of the changes.
    Everything runs ok except the jabvascript date picker which doesn't show up.
    Perhaps I didn't copy the javascript files to the correct target directory of osCommerce ?
    I put them in the www/admin/includes/javascript folder…

    Could you give me some guidance about it ? It would be great.
    Many thanks

    Jose

    Comment by jose — November 25, 2008 @ 10:19 am


  23. Date picker not updating MySQL DB, All data's showing up to catalog/checkout_confirmation.php as below,

    Preferred Delivery Date (Edit)
    Sunday 30 November, 2008

    but no DB update show 0000-00-00 00:00:00, so account history preferred delivery date also empty

    your comment/suggestions on this issue will be appreciated.

    Comment by roger — November 26, 2008 @ 4:59 pm


  24. Hi Gary,

    Just found the problem and fixed it.

    Kind regards
    Jose

    Comment by jose — November 27, 2008 @ 7:47 am


  25. Jose - I'm guessing you realised that you uploaded the js files to an incorrect folder. If that was not the solution please post back?

    Roger - sounds like you have not added the code that actually inserts the chosen date into the database.

    Comment by Gary — November 27, 2008 @ 4:12 pm


  26. Hey Gary,

    I was wondering whether it would be possible for me to use multiple date choosers, such as a use date, collect date, and return date instead of the delivery date and if so, would it be a simple case of duplicating entries in the files or something a bit more advanced.

    Thanks,

    JW

    Comment by James — December 20, 2008 @ 4:42 am


  27. James - I don't know the answer without actually trying it - and I don't have enough time in the day, sorry :(

    Maybe you could have a poke around in the code and see what you can come up with?

    Comment by Gary — December 22, 2008 @ 12:29 pm


Leave a comment

RSS feed for comments on this post · TrackBack URL

Hot 100 osCommerce Shops

View the osCommerce HOT 100These are the best looking, most exceptional osCommerce Stores as voted for by you.

New to osCommerce - get inspiration from these beautiful shops. Reckon your site has what it takes to become a member of the HOT 100? Submit it!