You have removed formatting from the original template that broke how it should work. When using <J00>
tag, you need to have columns separated by |
otherwise there is no way for it to know what is a column.
So for a start, change this line
<J00>{NAME} {QUANTITY} [=FF('{PRICE}','#,#')] [=FF('{TOTAL PRICE}','#,#')]
to
<J00>{NAME}|{QUANTITY}|[=FF('{PRICE}','#,#')]|[=FF('{TOTAL PRICE}','#,#')]
And follow same for other similar lines using <J>
tag.
You should also reduce the font size using HTML tags so you have more space to layout the receipt.
Unfortunately HTML printing support in V4 doesn’t have support for HTML <table>
tag (support was added in V5.1.32). That would give you better support for handling columns.
You can read more about standard formatting tags (not necessarily for HTML format) here: