cubecart / v6

CubeCart Version 6
https://cubecart.com
72 stars 59 forks source link

Put Print Command in the Admin Source Code, Not in the Template #3509

Closed bhsmither closed 5 months ago

bhsmither commented 5 months ago

In admin template orders.print.php, at the end of the HTML code, there is a <script> block.

Feature Request:

Do not have this script block in the template.

Instead, in orders.index.inc.php, near line 650, where the template is parsed, append a string (being the script block) to $template.

I am experimenting with using the ACE editor for composing the "invoice template". Every effort I made at camouflaging the </script> end tag, the ACE editor always finds it and it corrupts the editor's effort to display the content.