Jump to content

[solved] Changing order color in Prestashop 1.5 Back office


Recommended Posts

Hi there,

 

I'm having a hard times getting used to new Prestashop 1.5 Orders list.

 

In PS 1.4 all orders were colored based on the order status - that way I could easily navigate between orders just looking at the row.

 

In PS 1.5 only statuses are colored - not the rows themselves.

 

Does anyone here know how can I modify default prestashop 1.5 back office theme to get the look of 1.4 (in terms of fully colored rows) instead of white & grey row background?

 

Please, see the images for detail.

 

Thanks in advance!

post-230733-0-06707000-1357577695_thumb.png

post-230733-0-22136500-1357577702_thumb.png

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Alright, since nobody stopped by to help me out, I had managed to figure it out myself.

 

Should anyone else be seeking to do the same thing as I did, here is the hint ->

 

Open your_prestashop_root/classes/controller/AdminController.php

and change it from:

 

protected $colorOnBackground;

 

to

 

protected $colorOnBackground = true;

 

So far it seems to be working.

 

The next step I'm about to investigate is implementing correct order status colors into order history (at every order detail). If I happen to find that out, I'll post it down.

 

Feel free to give a shout if this helped you a bit.

  • Like 2
Link to comment
Share on other sites

  • 1 month later...

Alright, since nobody stopped by to help me out, I had managed to figure it out myself.

 

Should anyone else be seeking to do the same thing as I did, here is the hint ->

 

Open your_prestashop_root/classes/controller/AdminController.php

and change it from:

 

 

 

to

 

 

 

So far it seems to be working.

 

The next step I'm about to investigate is implementing correct order status colors into order history (at every order detail). If I happen to find that out, I'll post it down.

 

Feel free to give a shout if this helped you a bit.

 

thanks for the solution, it works like a charm :) i marked this topic as solved fot other forum members

Link to comment
Share on other sites

  • 10 months later...
  • 10 months later...
  • 10 months later...
  • 11 months later...

Works perfectly on 1.6.1.5. as well! Thank You so much lucass, been struggling with this for more than three days now - and it was that easy!

 

EDIT: ok, it won't work at first for some people - for this change to take effect, You need to find this file:

{main_dir}\admin\themes\default\css\admin-theme.css

 

and comment out these lines (kill preset background-color parameters):

.bootstrap .table tbody>tr>td{border-top:none;color:#666;/*background-color:#fff;*/padding:3px 7px;vertical-align:middle;word-wrap:nowrap;font-size:12px;border-bottom:solid 1px #EAEDEF}/*.bootstrap .table tbody>tr.odd>td{background-color:#FCFDFE}*/
Edited by sting5 (see edit history)
Link to comment
Share on other sites

  • 3 years later...
On 10/6/2016 at 6:55 AM, sting5 said:

{main_dir}\admin\themes\default\css\admin-theme.css

 

and comment out these lines (kill preset background-color parameters):

 


.bootstrap .table tbody>tr>td{border-top:none;color:#666;/*background-color:#fff;*/padding:3px 7px;vertical-align:middle;word-wrap:nowrap;font-size:12px;border-bottom:solid 1px #EAEDEF}/*.bootstrap .table tbody>tr.odd>td{background-color:#FCFDFE}*/

and

.bootstrap .table tbody>tr.odd>td{*/background-color:#FCFDFE*/}

.bootstrap .table tbody>tr:hover>td{font-weight: bold;}

Edited by behcet (see edit history)
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...