Change invoice background color

  • Posts: 39
  • Thank you received: 1
  • Hikashop Business
1 week 2 days 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: 1 week 2 days ago by hmd.

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

  • Posts: 67389
  • Thank you received: 9992
  • MODERATOR
1 week 1 day 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: 39
  • Thank you received: 1
  • Hikashop Business
1 week 1 day ago #312816

Works perfectly.

Thanx.

Hubert

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

Time to create page: 0.054 seconds
Powered by Kunena Forum