Page 1 of 1

[SOLVED] What happened to the invoice styling?

Posted: Fri Apr 28, 2023 9:53 pm
by Reptile
What happened to the invoice styling?
As from Opencart 4.x the invoice got new styling and it looks ok.
But when you want to print the invoice there is no styling what so ever.
Is this a know problem?

Re: What happened to the invoice styling?

Posted: Fri Apr 28, 2023 11:35 pm
by ADD Creative

Re: What happened to the invoice styling?

Posted: Sat Apr 29, 2023 6:39 pm
by Reptile
Nevermind.
Found the problem.
In the order_invoice.twig
Simply replace:

Code: Select all

  <link href="{{ bootstrap_css }}" type="text/css" rel="stylesheet" media="screen"/>
With:

Code: Select all

  <link href="{{ bootstrap_css }}" type="text/css" rel="stylesheet"/>

Re: What happened to the invoice styling?

Posted: Sat Apr 29, 2023 11:44 pm
by straightlight
Reptile wrote:
Sat Apr 29, 2023 6:39 pm
Nevermind.
Found the problem.
In the order_invoice.twig
Simply replace:

Code: Select all

  <link href="{{ bootstrap_css }}" type="text/css" rel="stylesheet" media="screen"/>
With:

Code: Select all

  <link href="{{ bootstrap_css }}" type="text/css" rel="stylesheet"/>
Now that the issue has been resolved, please add: [SOLVED] at the beginning of the subject line on your first post.