Invoice headers only repeat on the first page printing (The PDF button works fine and repeats headers). However If I deleted either the tag containing recipient.code and name etc OR the tag containing the {{ description }} everthing will be fine and the headers will be repeated.
Is there a limit of somesort on the amount of variables?
Built-in themes do not include code for repeating headers. They simply break wherever the page ends, depending on page format. The repeated headers were added to the internal PDF generator only, and that is no longer actively supported because of language issues. So, if you want repeated headers, you will need a custom theme, and you are on your own for their coding and performance.
@Ealfardan the problem is with Print @Tut I think repreated headers is a reasonable request and should be supported by the program. How else would you connect the second page to the first one and prevent mixing it up with other pages of other invoices?
Anyways. I was thinking it’s a bug otherwise why having both these tags
Print doesn’t repeat headers like PDF does. So I’m not sure what you’re talking about.
You’re probably already using a custom theme before introducing this change. In that case, it’s not a bug with Manager, it’s a bug in your custom theme.
Anyway, making the Print repeat headers isn’t a trivial task and it requires rebuilding the entire theme. Also, it will break the PDF function – that could be why you don’t see it developed because there are lots of users who still heavily rely on PDF.
There’s a quick fix for the main table headers to be repeated, if you’re not willing to go the full way to develop a custom theme from scratch.
Print doesn’t repeat headers like PDF does. So I’m not sure what you’re talking about.
Print doesn’t repeat headers at all even with default themes. I have to figured out by reorganizing the table and div tags just a little and deleting few tags make it repeat invoice headers.
You’re probably already using a custom theme before introducing this change. In that case, it’s not a bug with Manager, it’s a bug in your custom theme.
I tested with the simple Plain theme and the issue is still there you can try it for yourself
Anyway, making the Print repeat headers isn’t a trivial task and it requires rebuilding the entire theme. Also, it will break the PDF function – that could be why you don’t see it developed because there are lots of users who still heavily rely on PDF.
There’s a quick fix for the main table headers to be repeated, if you’re not willing to go the full way to develop a custom theme from scratch.
I don’t mind either way I want to solve this (if possible on my side) even if it means redesigining the whole thing.
I am doing the coding. I explained my problem better in my previous reply.
I need to understand what causes the program to behave weirdly like this in order to make my custom theme.
You have already been told the Plain theme does not have this capability. That is why you need a custom theme. Testing with Plain is pointless.
It is not weird. The program follows the Liquid code of whatever theme is used to display completed transaction forms. If you do not understand that code, hire a programmer who does for the task.
After some googling I found out what the problem was. Apparently the tag should not exceed 250px in height otherwise it will not be repeated. All I needed to do was to make the headers a bit shorter.