Skip to main content

Change invoice background color

More
6 years 10 months ago - 6 years 10 months ago #312797 by hmd
-- 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 <body> 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: 6 years 10 months ago by hmd.

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #312801 by nicolas
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
So that's what you want to do in the invoice.php of the plugin.

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #312816 by hmd
Replied by hmd on topic Change invoice background color
Works perfectly.

Thanx.

Hubert

Please Log in or Create an account to join the conversation.

Time to create page: 0.212 seconds
Powered by Kunena Forum