[Skip to main content](#vessel-content)

#   Change Order Row background color

##

- **[nic7071](/forum/user/42433-nic7071 "View nic7071's Profile")**
- [![nic7071's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/42433-nic7071 "View nic7071's Profile") Topic Author
- [ Offline](/forum/user/42433-nic7071)

Less More

- Posts: 129
- Thank you received: 0
-
-

10 years 2 months ago [\#249514](#249514) by [nic7071](/forum/user/42433-nic7071 "View nic7071's Profile")  *[Change Order Row background color](/forum/25-install-update/886347-change-order-row-background-color#249514 "-- HikaShop version -- : 3.5.6 -- Joomla version -- : 3.5.1  hi, i'd like to change each order row background color upon status changes for example the background color of row of a confirmed order would be green created would be yellow and etc .")* was created by *[nic7071](/forum/user/42433-nic7071 "View nic7071's Profile")*

-- HikaShop version -- : 3.5.6
-- Joomla version -- : 3.5.1

hi,
i'd like to change each order row background color upon status changes
for example the background color of row of a confirmed order would be green
created would be yellow and etc .

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4NjM0Ny1jaGFuZ2Utb3JkZXItcm93LWJhY2tncm91bmQtY29sb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 2 months ago [\#249531](#249531) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Change Order Row background color](/forum/25-install-update/886347-change-order-row-background-color#249531 "-- HikaShop version -- : 3.5.6 -- Joomla version -- : 3.5.1  hi, i'd like to change each order row background color upon status changes for example the background color of row of a confirmed order would be green created would be yellow and etc .")*

Hi,

You'll need to perform a view override to change the classname of the different rows ; and then thanks to some CSS you will be able to customize the background color.
[ www.hikashop.com/support/documentation/1...ize-the-display.html](https://www.hikashop.com/support/documentation/153-customize-the-display.html)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4NjM0Ny1jaGFuZ2Utb3JkZXItcm93LWJhY2tncm91bmQtY29sb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nic7071](/forum/user/42433-nic7071 "View nic7071's Profile")**
- [![nic7071's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/42433-nic7071 "View nic7071's Profile") Topic Author
- [ Offline](/forum/user/42433-nic7071)

Less More

- Posts: 129
- Thank you received: 0
-
-

10 years 2 months ago [\#249673](#249673) by [nic7071](/forum/user/42433-nic7071 "View nic7071's Profile")  Replied by *[nic7071](/forum/user/42433-nic7071 "View nic7071's Profile")* on topic *[Change Order Row background color](/forum/25-install-update/886347-change-order-row-background-color#249673 "-- HikaShop version -- : 3.5.6 -- Joomla version -- : 3.5.1  hi, i'd like to change each order row background color upon status changes for example the background color of row of a confirmed order would be green created would be yellow and etc .")*

hello,
thanks but i was talking about the admin order list page .

i think i have to modify this file :
admin/component/hika/view/ order/tmpl/listing.php

i need an if condition code like
Code:

if status = confirm background red; else if status = shipped background blue and ...

thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4NjM0Ny1jaGFuZ2Utb3JkZXItcm93LWJhY2tncm91bmQtY29sb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

10 years 2 months ago [\#249675](#249675) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change Order Row background color](/forum/25-install-update/886347-change-order-row-background-color#249675 "-- HikaShop version -- : 3.5.6 -- Joomla version -- : 3.5.1  hi, i'd like to change each order row background color upon status changes for example the background color of row of a confirmed order would be green created would be yellow and etc .")*

Hi,

Yes, it's in that file.
Something like that : Code:

&lt;?php if($row-&gt;order_status == 'confirmed'){ echo ' style="background-color: red !important;" '; }elseif($row-&gt;order_status == 'shipped'){ echo ' style="background-color: blue !important;" '; }else{ // .... }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4NjM0Ny1jaGFuZ2Utb3JkZXItcm93LWJhY2tncm91bmQtY29sb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nic7071](/forum/user/42433-nic7071 "View nic7071's Profile")**
- [![nic7071's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/42433-nic7071 "View nic7071's Profile") Topic Author
- [ Offline](/forum/user/42433-nic7071)

Less More

- Posts: 129
- Thank you received: 0
-
-

10 years 2 months ago -  10 years 2 months ago [\#249773](#249773) by [nic7071](/forum/user/42433-nic7071 "View nic7071's Profile")  Replied by *[nic7071](/forum/user/42433-nic7071 "View nic7071's Profile")* on topic *[Change Order Row background color](/forum/25-install-update/886347-change-order-row-background-color#249773 "-- HikaShop version -- : 3.5.6 -- Joomla version -- : 3.5.1  hi, i'd like to change each order row background color upon status changes for example the background color of row of a confirmed order would be green created would be yellow and etc .")*

hey, thanks i'm using this code to change the background of a complete row of and order.
check out this code on line 123 of admin/component/hika/view/ order/tmpl/listing.php
Code:

&lt;?php if($row-&gt;order_status == 'created'){ echo ' style="background-color: #bafcff !important; border: 2px solid #62b7bb !important;" '; }elseif($row-&gt;order_status == 'confirmed'){ echo ' style="background-color: #bafcff !important; border: 2px solid #62b7bb !important;" '; }elseif($row-&gt;order_status == 'cancelled'){ echo ' style="background-color: #bafcff !important; border: 2px solid #62b7bb !important;" '; }elseif($row-&gt;order_status == 'refunded'){ echo ' style="background-color: #bafcff !important; border: 2px solid #62b7bb !important;" '; }elseif($row-&gt;order_status == 'shipped'){ echo ' style="background-color: #bafcff !important; border: 2px solid #62b7bb !important;" '; }elseif($row-&gt;order_status == 'delivered'){ echo ' style="background-color: #c5ff85 !important; border: 2px solid #6d9045 !important;" '; }else{ // .... }?&gt;

the result is not what i'm looking for, i guess i have to some how define the order id that this row is about some where beside order_status
to seperate each row from outside and sync the background of the row and the order status inside !

Last edit: 10 years 2 months ago by [nic7071](/forum/user/42433-nic7071 "View nic7071's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4NjM0Ny1jaGFuZ2Utb3JkZXItcm93LWJhY2tncm91bmQtY29sb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

10 years 2 months ago [\#249800](#249800) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change Order Row background color](/forum/25-install-update/886347-change-order-row-background-color#249800 "-- HikaShop version -- : 3.5.6 -- Joomla version -- : 3.5.1  hi, i'd like to change each order row background color upon status changes for example the background color of row of a confirmed order would be green created would be yellow and etc .")*

Hi,

You should be able to put that code directly into the tr opening tag of the table in that view file and it should work.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4NjM0Ny1jaGFuZ2Utb3JkZXItcm93LWJhY2tncm91bmQtY29sb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[procajlok](/forum/user/44495-procajlok "View procajlok's Profile")**
- [![procajlok's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44495-procajlok "View procajlok's Profile")
- [ Offline](/forum/user/44495-procajlok)

Less More

- Posts: 5
- Thank you received: 0
-
-

9 years 10 months ago [\#259211](#259211) by [procajlok](/forum/user/44495-procajlok "View procajlok's Profile")  Replied by *[procajlok](/forum/user/44495-procajlok "View procajlok's Profile")* on topic *[Change Order Row background color](/forum/25-install-update/886347-change-order-row-background-color#259211 "-- HikaShop version -- : 3.5.6 -- Joomla version -- : 3.5.1  hi, i'd like to change each order row background color upon status changes for example the background color of row of a confirmed order would be green created would be yellow and etc .")*

Hello!
I paste the above code, and unfortunately it does not work at all. What am I doing wrong? ![:(](/media/kunena/emoticons/22.png ":(")
All configuration (in attachement) not work...

- [ ![ScreenShot01-10-17at11.32PM.PNG](/forum/attachment/35504) ](/forum/attachment/35504 "...7at11.32PM.PNG") [ ](/forum/attachment/35504?download=1 "...7at11.32PM.PNG")
- [ ![ScreenShot01-10-17at11.33PM.PNG](/forum/attachment/35505) ](/forum/attachment/35505 "...7at11.33PM.PNG") [ ](/forum/attachment/35505?download=1 "...7at11.33PM.PNG")
- [ ![ScreenShot01-10-17at11.34PM.PNG](/forum/attachment/35506) ](/forum/attachment/35506 "...7at11.34PM.PNG") [ ](/forum/attachment/35506?download=1 "...7at11.34PM.PNG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4NjM0Ny1jaGFuZ2Utb3JkZXItcm93LWJhY2tncm91bmQtY29sb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 10 months ago [\#259479](#259479) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Change Order Row background color](/forum/25-install-update/886347-change-order-row-background-color#259479 "-- HikaShop version -- : 3.5.6 -- Joomla version -- : 3.5.1  hi, i'd like to change each order row background color upon status changes for example the background color of row of a confirmed order would be green created would be yellow and etc .")*

Hi,

I'm afraid that you didn't page the right code and you did not page it in the right place.
Please be careful, PHP is case-sensitive for the variable names.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4NjM0Ny1jaGFuZ2Utb3JkZXItcm93LWJhY2tncm91bmQtY29sb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[procajlok](/forum/user/44495-procajlok "View procajlok's Profile")**
- [![procajlok's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44495-procajlok "View procajlok's Profile")
- [ Offline](/forum/user/44495-procajlok)

Less More

- Posts: 5
- Thank you received: 0
-
-

9 years 10 months ago [\#259501](#259501) by [procajlok](/forum/user/44495-procajlok "View procajlok's Profile")  Replied by *[procajlok](/forum/user/44495-procajlok "View procajlok's Profile")* on topic *[Change Order Row background color](/forum/25-install-update/886347-change-order-row-background-color#259501 "-- HikaShop version -- : 3.5.6 -- Joomla version -- : 3.5.1  hi, i'd like to change each order row background color upon status changes for example the background color of row of a confirmed order would be green created would be yellow and etc .")*

Hi ![:)](/media/kunena/emoticons/3.png ":)") Thx for answer..
I paste this code to "admin/component/hika/view/order/tmpl/listing.php". Where should I paste the code that worked correctly?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4NjM0Ny1jaGFuZ2Utb3JkZXItcm93LWJhY2tncm91bmQtY29sb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

9 years 10 months ago [\#259513](#259513) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change Order Row background color](/forum/25-install-update/886347-change-order-row-background-color#259513 "-- HikaShop version -- : 3.5.6 -- Joomla version -- : 3.5.1  hi, i'd like to change each order row background color upon status changes for example the background color of row of a confirmed order would be green created would be yellow and etc .")*

Hi,

As I said in my previous message, you need that code in the tr tag there.
In your screenshots, I can see that you put the code either before the tr tag or after it, not inside it... like that:
&lt;tr &lt;?php ....PHP code.... ?&gt;&gt;
Also, you've used the variable name ORDER_STATUS. That's not valid. It should be order_status, as in the example I provided.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4NjM0Ny1jaGFuZ2Utb3JkZXItcm93LWJhY2tncm91bmQtY29sb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.102 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
