Forums / Currencies & Sales Taxes, VAT, GST, etc. / Display tax percentage rate

Display tax percentage rate

Locked

Started by takoda on 6 Feb 2010, 7:32 PM · Views: 1,055

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
6 Feb 2010, 7:32 PM
#1
takoda avatar

takoda

New Zenner

Join Date:
Nov 2009
Location:
France
Posts:
26
Plugin Contributions:
0

Display tax percentage rate

Is there any method of showing the actual % percentage rate charged on the checkout pages and, ideally, on the invoice?

The reason is that I've altered functions_taxes.php to calculate tax on a customer specific basis, with a couple of new fields in the customers table (modified Tax Exempt mod).

The answer (I think) lies somewhere in the function zen_get_tax_description, but I've got stuck... :unsure:

I've been working with the idea that I need to put the tax_rate into an array of $_SESSION in function zen_get_tax_rate, and pick it up again in zen_get_tax_description... But not too sure how.

Anyone?!

Am I on the right track, at least? :blink:

6 Feb 2010, 8:49 PM
#2
takoda avatar

takoda

New Zenner

Join Date:
Nov 2009
Location:
France
Posts:
26
Plugin Contributions:
0

Re: Display tax percentage rate

I wish I could delete posts after I've submitted them... :D

Have found the answer is to replace several entries of:

return $tax_description;

with

return $tax_description . ' ' . '@ ' . zen_get_tax_rate (1) . '%';

in the function zen_get_tax_description.

Note - Obviously, this whole business of setting tax rates for individual customers only works when all products are taxed the same.

6 Feb 2010, 11:30 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Display tax percentage rate

But think how many people you have helped by not being able to delete your post and for having posted the solution that worked for you ... :cool:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!