Jump to content

AdminOrders - New Column Day - 06-11-2015


hellykun

Recommended Posts

Hello fellow Prestashop friends,

 

I have two things I would like to create:

 

The first is that I would like to add a Day column to the Orders Table (in the administrator area).

The Day Column will present the Day of the Week that the order took place.

 

I have added the following lines but I am stuck on how to insert my code that gets the Day from the date.

 

'day' => array(
'title' => $this->l('Day')
)
 
Where can I put this code in order to make it work?
 
$date = $dateadd;
$day = date('D', strtotime($date));
 
Thanks a lot in advance.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...