Change invoice background color

  • Posts: 43
  • Thank you received: 1
4 years 5 months ago #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 <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: 4 years 5 months ago by hmd.

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
4 years 5 months ago #312801

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.

  • Posts: 43
  • Thank you received: 1
4 years 5 months ago #312816

Works perfectly.

Thanx.

Hubert

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

Time to create page: 0.055 seconds
Powered by Kunena Forum