Dynamic Tax Rate

Phoca Cart - complex e-commerce extension
JanP
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 11 Sep 2018, 09:39

Dynamic Tax Rate

Post by JanP »

Hello,

It doesn't matter which Dynamic Tax Rate is set (Country/Region)

I set various Tax Rate for various Countries/Regions (for testing) and it seems that for Orders and Invoices always the default Tax rate is used instead of Tax Rate (for Country/Region).

Hmm?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Dynamic Tax Rate

Post by Jan »

Hi, did you enable it in Options (it needs to be allowed in Options - Dynamic Tax Rate):

Image
If you find Phoca extensions useful, please support the project
JanP
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 11 Sep 2018, 09:39

Re: Dynamic Tax Rate

Post by JanP »

Hi

Sure - It has been enabled.

Here I have to note that there were two regions
- one region has set VAT 20%,
- but the second one has set VAT to ZERO value... perhaps this ZERO could make problems

Anyway - This was my attempt to solve this issue viewtopic.php?f=44&t=59172
Where the solution for me could be to rename "Region" to "Are you VAT TAX payer ?" and regions should be Yes (with Zero VAT) and No (with 20% VAT)...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Dynamic Tax Rate

Post by Jan »

Hi, yes, you are right, 0% is not taken as 0% but as empty, so it will then switch back to standard VAT. I will try to take a look at it so when you set 0 it will be taken as 0

Try to open:
administrator\components\com_phocacart\libraries\phocacart\tax\tax.php

and on line cca 94, try to change

FROM:

Code: Select all

if ($taxChangedA['taxrate'] > 0 && $taxChangedA['taxtitle'] != '') {
				return $taxChangedA;
			}
TO:

Code: Select all

//if ($taxChangedA['taxrate'] > 0 && $taxChangedA['taxtitle'] != '') {
			if ($taxChangedA['taxtitle'] != '') {	
				return $taxChangedA;
			}
The same you can do for region (line cca 129)

Let me know if this works for you so I can change it for next version.

Thank you, Jan
If you find Phoca extensions useful, please support the project
JanP
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 11 Sep 2018, 09:39

Re: Dynamic Tax Rate

Post by JanP »

Hi Jan,

Thank you for your info. I'm not able to test it. I was testing your Phoca cart for few days only and I have already uninstalled it.
Anyway your Phoca Cart is simply & good system, and if you solve this Zero Tax rate region - it is the way (for a bit experienced users) to solve EU VAT Tax rules... etc

Thank you
Jan
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Dynamic Tax Rate

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Dynamic Tax Rate

Post by Jan »

If you find Phoca extensions useful, please support the project
Post Reply