How do I get the value for the date field
Hi,
I am using the BSM tables orders and orderdetails to collect the order information. One of the fields is 'date'.
How do I get the confirm page to enter the date of the order into the date field?
Hi,
I am using the BSM tables orders and orderdetails to collect the order information. One of the fields is 'date'.
How do I get the confirm page to enter the date of the order into the date field?
In the store order summary select the date field and add the following code for the value:
<?php echo(date("d/m/Y")); ?>
Hi Jason,
I entered the code. Now the date field shows this: 0000-00-00 00:00:00
Is this a server problem? It happens both on the local and the remote server.
Ok, trey this instead without the formating:
<?php echo(date()); ?>
Hi Jason,
The result is still the same: 0000-00-00 00:00:00
I also noticed, that the type of the order date in the order summery behavior is set to text. I tried setting it to date, but it just won't stick. I save it, and when I open it again, it is back to text.
One last try:
<?php echo(date("Y-m-d h:m:s")); ?>
Jason, you are a genius. Thank you, it works. It even puts in the German time. Nice.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.