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

#   Change invoice background color

##

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

Less More

- Posts: 43
- Thank you received: 1
-
-

7 years 3 weeks ago -  7 years 3 weeks ago [\#312797](#312797) by [hmd](/forum/user/56870-hmd "View hmd's Profile")  *[Change invoice background color](/forum/28-shipping-methods/898623-change-invoice-background-color#312797 "-- url of the page with the problem -- :   www.industrialgarden.nl  -- Browser(s) name and version -- : Chrome  I have a local copy of my website on Xampp. It includes the attach-PDF extension of Hikashop.  I am trying to set a background color for the invoice. Usually you can do this in the  tag, but there is no such tag in invoice.php.  Can you tell me how to set thebackground color for my invoices?  Regards,  Hubert")* was created by *[hmd](/forum/user/56870-hmd "View hmd's Profile")*

-- url of the page with the problem -- : [ www.industrialgarden.nl](http://www.industrialgarden.nl)
-- Browser(s) name and version -- : Chrome

I have a local copy of my website on Xampp. It includes the attach-PDF extension of Hikashop.

I am trying to set a background color for the invoice. Usually you can do this in the &lt;body&gt; tag, but there is no such tag in invoice.php.

Can you tell me how to set thebackground color for my invoices?

Regards,

Hubert

Last edit: 7 years 3 weeks ago by [hmd](/forum/user/56870-hmd "View hmd's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODk4NjIzLWNoYW5nZS1pbnZvaWNlLWJhY2tncm91bmQtY29sb3I/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: 86584
- Thank you received: 14325
-
-

7 years 3 weeks ago [\#312801](#312801) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change invoice background color](/forum/28-shipping-methods/898623-change-invoice-background-color#312801 "-- url of the page with the problem -- :   www.industrialgarden.nl  -- Browser(s) name and version -- : Chrome  I have a local copy of my website on Xampp. It includes the attach-PDF extension of Hikashop.  I am trying to set a background color for the invoice. Usually you can do this in the  tag, but there is no such tag in invoice.php.  Can you tell me how to set thebackground color for my invoices?  Regards,  Hubert")*

Hi,

The plugin is using the HTML2PDF library. And it doesn't support the body tag nor the background-color CSS. Apparently however, it supports the backcolor attribute on the page tag:
[ stackoverflow.com/questions/10414663/can...-generated-from-html](https://stackoverflow.com/questions/10414663/can-not-get-background-color-in-pdf-generated-from-html)
So that's what you want to do in the invoice.php of the plugin.

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

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

Less More

- Posts: 43
- Thank you received: 1
-
-

7 years 3 weeks ago [\#312816](#312816) by [hmd](/forum/user/56870-hmd "View hmd's Profile")  Replied by *[hmd](/forum/user/56870-hmd "View hmd's Profile")* on topic *[Change invoice background color](/forum/28-shipping-methods/898623-change-invoice-background-color#312816 "-- url of the page with the problem -- :   www.industrialgarden.nl  -- Browser(s) name and version -- : Chrome  I have a local copy of my website on Xampp. It includes the attach-PDF extension of Hikashop.  I am trying to set a background color for the invoice. Usually you can do this in the  tag, but there is no such tag in invoice.php.  Can you tell me how to set thebackground color for my invoices?  Regards,  Hubert")*

Works perfectly.

Thanx.

Hubert

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODk4NjIzLWNoYW5nZS1pbnZvaWNlLWJhY2tncm91bmQtY29sb3I/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.066 seconds

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