OK an update has been submitted for 1.5.8.
https://www.zen-cart.com/downloads.php?do=file&id=2111
The CSS needs some tweaking; I'll do that as soon as I can.
OK an update has been submitted for 1.5.8.
https://www.zen-cart.com/downloads.php?do=file&id=2111
The CSS needs some tweaking; I'll do that as soon as I can.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Thanks for this Scott. Been testing for you and here is my feedback.
If I want to turn off images should I hard code the setting in \invoice.php? The new override settings that work with admin\invoice.php won't be pulled through.
The latest version works in PHP 7.4 but fails in PHP 8.0
I fixed this by adding entries to my \includes\languages\english\lang.invoice.php file but don't know if this is the best way or if the error was caused by some other issue I have.Code:[05-Feb-2023 14:11:26 Europe/London] PHP Fatal error: Uncaught Error: Undefined constant "TABLE_HEADING_PRICE_EXCLUDING_TAX" in /invoice.php:214 Stack trace: #0 {main} thrown in /invoice.php on line 214 [05-Feb-2023 14:11:26 Europe/London] Request URI: /store158/invoice.php?oID=31848, IP address: 77.108.141.0 --> PHP Fatal error: Uncaught Error: Undefined constant "TABLE_HEADING_PRICE_EXCLUDING_TAX" in /invoice.php:214 Stack trace: #0 {main} thrown in /invoice.php on line 214.
You also have two old files in your latest update. I have ported the changes across my end but so this is just for other users.Code:'TABLE_HEADING_PRICE_EXCLUDING_TAX' => 'Price (excl)', 'TABLE_HEADING_PRICE_INCLUDING_TAX' => 'Price (incl)', 'TABLE_HEADING_TOTAL_EXCLUDING_TAX' => 'Total (excl)', 'TABLE_HEADING_TOTAL_INCLUDING_TAX' => 'Total (incl)',
Firstly
This is using\includes\templates\custom\templates\tpl_account_default.phpand the latest version is@version $Id: Scott C Wilson 2019 Jan 14 Modified in v1.5.6b $Secondly@version $Id: lat9 2022 May 26 Modified in v1.5.8-alpha $
Is based on\includes\templates\custom\templates\tpl_account_history_default.phpbut the latest version is@version $Id: Author: DrByte Sat Jan 9 13:13:41 2016 -0500 Modified in v1.5.5 $@version $Id: lat9 2022 Jul 23 Modified in v1.5.8-alpha2 $
Language file changes are correct - I'll add on the next update.
The template changes are really just an example - you have to merge the changes into your own template files.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
I understand that. It was more a notification for other users as they will see 1.5.8 ready and make assumptions. I got caught out by this when I started on this journey. Hard for someone who reads and writes code to understand
For anyone trying to remove images changing line 44 in /invoice.php did the trick for me.
Code:$show_product_images = $show_product_images ?? false;
css was referencing files that weren't included; this has been fixed in the latest update.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Hello,
I wanted a print button to print the invoice. There were a number of conditions I wanted to meet. 1) The print button was not allowed to be printed. 2) no header and footer of the (html) page were allowed to be printed.
Below is the solution:
Place the following code in the invoice.php file (under line 89), or just before </head>:
Then insert on line 118, just before </table> the next line:Code:<style type="text/css"> @media print { .noPrint{ display:none; } } @page { margin-left: 0.5in; margin-right: 0.5in; margin-top: 0; margin-bottom: 0; } </style>
Save the file and open the file includes\languages\english\lang.meta_tags.php (or your language file) and add:Code:<div class"noPrint"><button onclick="window.print();" class="noPrint"><?php echo TEXT_INVOICE_PRINT_BUTTON; ?></button></div>
There is now a button in the invoice that allows you to print the invoice directly.Code:'TEXT_INVOICE_PRINT_BUTTON' => 'Print invoice',
Dirk
HI, just tried installing this in 2.1.0. (bootstrap template) an a Ubuntu 24.04 VM PHP v8.3
I get a blank page when clicking on "My account".
No big deal, although I found this plug-in useful, I can live without it.
Not good enough a programmer to figure out why.
Last edited by wyliecoyoteuk; 10 Feb 2025 at 04:25 PM.