Daniel_96 Posted April 24, 2020 Share Posted April 24, 2020 Add the carriers column, and to the table 'ps_carrier_lang' add a column named 'color' as in the statuses, I want that color to be displayed. 'carrierdelay' => array( 'title' => $this->l('Envio'), 'type' => 'text', 'align' => 'text-center', 'class' => 'fixed-width-xl', 'color' => 'color', 'filter_key' => 'carrier_lang!delay', 'filter_type' => 'text', 'order_key' => 'carrier_lang!delay' ), if I put 'color' => 'color',it will bring me the same color of the order status, but I want to define another type of color to the carriers Link to comment Share on other sites More sharing options...
EvaF Posted April 25, 2020 Share Posted April 25, 2020 you have to add into list->_select also column 'color'. Something like this ( colors and carriers set yourself - of course) ... ,carrier_lang.delay, case when carrier_lang.id_carrier=1 then '#800000' when carrier_lang.id_carrier=2 then '#008000' when carrier_lang.id_carrier=3 then '#000080' else '#808080' end as color (I used carrier_lang alias, because do not know your alias for table ps_carrier) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now