Zen Cart Logo
Forums / All Other Contributions/Addons / Print Invoice Popup Tax Error

Print Invoice Popup Tax Error

Views: 601

Results 1 to 4 of 4
6 Mar 2018, 1:05 PM
#1
francois avatar

francois

New Zenner

Join Date:
Sep 2012
Posts:
42
Plugin Contributions:
0

Print Invoice Popup Tax Error

I recently installed the latest version of the Print Invoice Popup Plugin (for ZC v155). Everything is working fine except that 'None!' is displayed in the 'Tax' column. The correct value is however displayed on the standard ZC invoice.

The only place where this is checked/displayed is in lines #136 and #143 of the /includes/modules/print_invoice.php file. I cannot find where the variable $display_tax gets a value (true/false) from? Is this perhaps the incorrect variable name? What should it be?

There is no dedicated plugin support thread for Print Invoice Popup and I could not find any answer in the forums. Anyone that can maybe help here?

6 Mar 2018, 1:26 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Print Invoice Popup Tax Error

I downloaded the most recent version of the plugin and, like you, cannot find a spot where the $display_tax variable is set ... to anything.

To get the tax printed for your store, I suggest adding the line:

$display_tax = true;

at the very top of /includes/modules/print_invoice.php, just below the top comment-block.

6 Mar 2018, 1:57 PM
#3
francois avatar

francois

New Zenner

Join Date:
Sep 2012
Posts:
42
Plugin Contributions:
0

Re: Print Invoice Popup Tax Error

lat9:

I downloaded the most recent version of the plugin and, like you, cannot find a spot where the $display_tax variable is set ... to anything.

To get the tax printed for your store, I suggest adding the line:

$display_tax = true;

> 
> at the very top of /includes/modules/print_invoice.php, just below the top comment-block.

Thanks lat9, I will do so.  It does not really fix the fact that it should check whether tax is to be displayed or not, but I guess that problem will never surface...
6 Mar 2018, 2:02 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Print Invoice Popup Tax Error

Francois:

Thanks lat9, I will do so. It does not really fix the fact that it should check whether tax is to be displayed or not, but I guess that problem will never surface...
I looked back at a previous version of the plugin that didn't have that check. I'm not sure what the intent of displaying/not displaying the tax was; in my mind, it's an integral portion of an order.