- Posts: 3
- Thank you received: 0
Database problem
14 years 10 months ago #30697
by pubokia
Database problem was created by pubokia
I added a new attribute called order_date to the jos_hikashop_order table using the DATE format. However when i process an order the date does not seems to work and come out as 0000-00-00 00.00.00 in the database. How to i make it that it will track the time when i process and order and appear in the jos_hikashop_order table under the newly create order_date attribute. Please help THANKS!
Please Log in or Create an account to join the conversation.
14 years 10 months ago #30709
by pubokia
Replied by pubokia on topic Re: Database problem
Hi , is there any solution to this problem??
Please Log in or Create an account to join the conversation.
14 years 10 months ago - 14 years 10 months ago #30745
by nicolas
Replied by nicolas on topic Re: Database problem
You should edit your order_date column and set its default value you "current timestamp" but that will set the date of when the order was created which is already in the order_created field.
Last edit: 14 years 10 months ago by nicolas.
Please Log in or Create an account to join the conversation.
14 years 10 months ago #30803
by pubokia
Replied by pubokia on topic Re: Database problem
the order_created field is not in a date time format, this is what i get from my database. 1321971206. how do i read this information ?
Please Log in or Create an account to join the conversation.
14 years 10 months ago #30830
by nicolas
Replied by nicolas on topic Re: Database problem
That's a unix timestamp.
If HikaShop is loaded, you can use the function hikashop_getDate() to convert it into a date. That function is implemented in the file administrator/components/com_hikashop/helpers/helper.php
If HikaShop is loaded, you can use the function hikashop_getDate() to convert it into a date. That function is implemented in the file administrator/components/com_hikashop/helpers/helper.php
Please Log in or Create an account to join the conversation.
Time to create page: 0.170 seconds