Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipdate contribution (shipping arrival date)


Guest

Recommended Posts

Hello @all!

 

I think shipdate is a great contrib! Thanks!

 

My problem:

 

In the database table 'orders' shows the arrival date in unix time: 1297724400 for 15. Feb. 20011

 

For export in a Windows Invoicing_Program i need the date in this format (like the column 'date_purchased'): 2011-02-15

 

What i have to do to change the date-format??

 

Can anyone help?

 

Thanks

 

Werner

Link to comment
Share on other sites

  • 3 years later...

Appoligies in advance for bumping such a horribly old topic. Please forgive me.

 

I have burt's contribution currently installed, and it works fine. The problem is, I don't know how to make it mandatory that someone fill out a date.

 

I have found this contrib. I know it is really old, but does anyone know if it would work with OSCommerce v2.3.3.1?

 

Thank you for your time.

Link to comment
Share on other sites

@@Snarg

 

<?php echo TEXT_CHOOSE_SHIPPING_DATE . '<br /><br />' . tep_draw_input_field('delivery_date', '', 'id="delivery_date"'); ?>
to:

 

<?php echo TEXT_CHOOSE_SHIPPING_DATE . '<br /><br />' . tep_draw_input_field('delivery_date', '', 'required aria-required="true" id="delivery_date"'); ?>
ps, I award you todays prize for replying to the oldest thread ;) Edited by burt
Link to comment
Share on other sites

@@Snarg

 

<?php echo TEXT_CHOOSE_SHIPPING_DATE . '<br /><br />' . tep_draw_input_field('delivery_date', '', 'id="delivery_date"'); ?>
to:

 

<?php echo TEXT_CHOOSE_SHIPPING_DATE . '<br /><br />' . tep_draw_input_field('delivery_date', '', 'required aria-required="true" id="delivery_date"'); ?>
ps, I award you todays prize for replying to the oldest thread ;)

 

Thanks Burt :) In turn, I will award you a prize for the fastest repsonse.

 

I'm assuming this chage goes in checkout_shipping.php in the stores root, as this is the only place I can find the line.

 

Changing and testing now...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...