Author Topic: Add delivery date & time at checkout process  (Read 124557 times)

boonchunt

  • Beginner
  • *
  • Posts: 17
Re: Add delivery date & time at checkout process
« Reply #15 on: August 08, 2009, 02:16:44 am »
To remove the Time from ordering date submission

You can change the STORE TIME FORMAT in Virtuemart administration under EDIT STORE to just %A, %d %B %Y, it will change the time format of the Ordering Date (it is ok if you don't mind the timing in email order form).


For removing the Calender Time Format,Under components\com_virtuemart\themes\ja_larix\templates\checkout\get_shipping_method.tpl.php:

switch the ShowsTime function from true to false.

same for administrator\components\com_virtuemart\classe\ps_order_change_html.php:

boonchunt

  • Beginner
  • *
  • Posts: 17
Re: Add delivery date & time at checkout process
« Reply #16 on: August 08, 2009, 09:48:24 am »
I consult the Creater of this,

All you need to do is changing some part of components\com_virtuemart\themes\ja_larix\templates\checkout\get_shipping_method.tpl.php

 Replace:

ifFormat                               :               "<?php echo $vendor_date_format; ?>",

with new one:

ifFormat                               :               “%A, %d %B %Y",


Bravo for him!

freshy

  • Beginner
  • *
  • Posts: 5
Re: Add delivery date & time at checkout process
« Reply #17 on: August 13, 2009, 08:40:24 am »
Nice. Thanks for the reply.

It works brilliantly!

firebird212

  • Beginner
  • *
  • Posts: 1
Re: Add delivery date & time at checkout process
« Reply #18 on: August 19, 2009, 02:59:08 am »
Hey,
To begin, this hack is really fantastic so thanks for all the hard work.

I ran into a bit of a problem though.  I have implemented everything just fine however I encounter the same database error upon checkout.  It is:  "Critical: Adding the Order into the Database failed!"

I manually added the SQL field delivery_date_time and can confirm without the hack implemented everything works fine.  (I added the field via phpmyadmin) Does the order of the fields matter? Could I be overlooking something simple?

I am running VM 1.1.3 and Joomla 1.5.14

Any suggestions?

Thanks again.

prema

  • Beginner
  • *
  • Posts: 6
Re: Add delivery date & time at checkout process
« Reply #19 on: August 26, 2009, 23:07:57 pm »
Hello!

Very nice hack, i can't believe what i see. :)

But unfortunatly i have a big problem.
I use VM 1.1.3, Joomla 1.5.14, and JS_Jamba template for it.

I have first replace automatically the files, but only in the admin folder, because of the template. The template files i have made manually.
After this, everything was going ok, but at the end of the ordering, when i wanted to place the order i get also a critic error message:
"Critical: Adding the Order into the Database failed! User ID: 63"

After this i have restore everything with my last backup (it was made before processing this hack), and i have made everything manually. But the probelm is still going on.

Please, i need this option on the ordering form, asap, because we want to start our website asap. :)
It's really very important and urgent.
Thanks a lot. You're a genie.

boonchunt

  • Beginner
  • *
  • Posts: 17
Re: Add delivery date & time at checkout process
« Reply #20 on: August 27, 2009, 15:32:31 pm »
You need to add the Database Field delivery_date_time

Refer to early post. Hope it help.

Hello!

Very nice hack, i can't believe what i see. :)

But unfortunatly i have a big problem.
I use VM 1.1.3, Joomla 1.5.14, and JS_Jamba template for it.

I have first replace automatically the files, but only in the admin folder, because of the template. The template files i have made manually.
After this, everything was going ok, but at the end of the ordering, when i wanted to place the order i get also a critic error message:
"Critical: Adding the Order into the Database failed! User ID: 63"

After this i have restore everything with my last backup (it was made before processing this hack), and i have made everything manually. But the probelm is still going on.

Please, i need this option on the ordering form, asap, because we want to start our website asap. :)
It's really very important and urgent.
Thanks a lot. You're a genie.

michels85

  • Beginner
  • *
  • Posts: 1
Re: Add delivery date & time at checkout process
« Reply #21 on: September 15, 2009, 14:55:04 pm »
Hello,

First of all i want to say great hack!

But i still have an question :D

What i did i moved the code from File components\com_virtuemart\themes\ja_larix\templates\checkout\get_shipping_method.tpl.php:
After (line 21):

To the page components\com_virtuemart\themes\ja_larix\templates\checkout\get_shipping_address.tpl.php

Wich works fine.
Only the check wich is done on the final confirmation page in the file ps_checkout.php and this where i have the problem.

if the date is empty it will give the error message wich is great..however
my checkout pages are build up 1 2 2 2
so that the deliverydate is on 1 and the confirmation on 2 and also the error message on 2.

Is there a way to get the error message on checkout page 1 when you click continue?

Or perhaps another solution wich will solve this?

Because now when people get the error message and there is no other way to return to that field then pressing the back button in the browser.

I hope you can help me with this issue.

Thank you in advance

useris

  • Jr. Member
  • **
  • Posts: 224
Re: Add delivery date & time at checkout process
« Reply #22 on: September 20, 2009, 11:11:23 am »
Hello,

This is nice hack for checkout But how to disable day before today and all weekends? Maybe somebody have example of the code or could tell me which file I sould modify.

Thanks,
Serge

Yeah!

  • Beginner
  • *
  • Posts: 1
Re: Add delivery date & time at checkout process
« Reply #23 on: September 27, 2009, 06:15:11 am »
Thanks for your hack. It's very nice. I tried to modify it by add the calendar code in administrator\components\com_virtuemart\html\basket.php after add another field in #__vm_cart. It shows input box for each item in cart but I have 1 problem. The calendar popup could be shown in the first input box but not for other. Could you make the calendar popup show in every input box?

Thanks for your hack again.

ehunter41

  • Beginner
  • *
  • Posts: 4
Re: Add delivery date & time at checkout process
« Reply #24 on: October 06, 2009, 23:28:37 pm »
Hello zdjl505!

Beautiful post!!  I've been reading online the entire day looking for this solution (not exactly a calendar function, but I can follow the instructions and this can be done for any type of input field!) and you hit it right on the nose.  Many....many thanks.

nevewers

  • Beginner
  • *
  • Posts: 2
Re: Add delivery date & time at checkout process
« Reply #25 on: November 29, 2009, 14:22:41 pm »
Great hack

Question though...
Is there a easier way of turning this off rather than removing all the code that was previously added ?

cvf

  • Beginner
  • *
  • Posts: 2
Re: Add delivery date & time at checkout process
« Reply #26 on: December 24, 2009, 11:20:42 am »
Hi,

Nice working tool, how can I change the calendar?
I need the Saturday as I delivery date.
Is this possible en how to changes this??


waiyaki

  • Beginner
  • *
  • Posts: 6
Re: Add delivery date & time at checkout process
« Reply #27 on: January 12, 2010, 08:42:30 am »
Hi everyone,

Just installed the hack :) Somehow the values are not being entered into the database...
I check phpMyAdmin but the delivery_date_time is empty

Does anyone know which file I need to look at?

Thanks

slaxas

  • Beginner
  • *
  • Posts: 2
Re: Add delivery date & time at checkout process
« Reply #28 on: January 17, 2010, 21:09:35 pm »
Hi guys

How disable calendar pop-up mode ?
I need load calendar in shipping method page body.
For example: http://www.geliufabrikas.lt/shop/?add=211&new

tnx all for great job !!!

geeteach

  • Beginner
  • *
  • Posts: 3
Re: Add delivery date & time at checkout process
« Reply #29 on: April 15, 2010, 20:07:53 pm »
I think think someone should develop a commercial extension for this hack.

I would be willing to pay $19.99 for such an option.