Tax - Canada

If you are runnig Joomla 3.x and Virtuemart 3.x please post to this forum your questions or support tickets about One Page Checkout

Tax - Canada

Postby kovacshazi » Thu Apr 30, 2015 3:55 pm

Incorrectly calculated the tax value of the OPC

My TAX settings:
American settings: YES
Product unit price at checkout: CANADIAN
Subtotal at the checkout: CANADIAN
Coupon price at the checkout: whitout Tax
Plugin Discounts: NO
...
Show just one tax: NO
Show dynamic lines: YES

If "show just one tax" - is checked, the VAT calculation good
If "show just one tax" - is unchecked, the VAT calculation false.
Image
kovacshazi
 
Posts: 4
Joined: Fri Nov 07, 2014 1:04 pm

Re: Tax - Canada

Postby admin » Thu Apr 30, 2015 3:58 pm

hello, opc does not calculate the tax, it can only alter a different views of the tax itself.

i suggest to check your tax config from within virtuemart's calculations. there is a huge difference between calculating tax for "eu vat tax" and "canadian sales tax". In some cases the tax in US/Canada can be calculated before it's discounted.

in general you also may want to try to set all payment and shipping methods "to use no tax" and see if this fixes the problem.

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Tax - Canada

Postby admin » Thu Apr 30, 2015 4:01 pm

hello, i just did a test on my demo on vm3.0.8 and i see the same problem, i am going to check on when did this behavior changed and see if this is a VM bug or OPC bug.

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Tax - Canada

Postby kovacshazi » Thu Apr 30, 2015 4:11 pm

For this product there is no discount.
If the OPC is used then the TOTAL is good, so VAT is good.
A dynamic calculatd TAX value is false.
kovacshazi
 
Posts: 4
Joined: Fri Nov 07, 2014 1:04 pm

Re: Tax - Canada

Postby admin » Thu Apr 30, 2015 5:39 pm

hello, i did further tests and i found that:
- when using "Bill Tax" the opc and VM should generate the lines properly
- but when using "tax per product" there is no summary within VM where opc could pick up the proper rate (or i have to create a work around for latest VM releases, am trying to consult with VM team if this is intentional or not... )

so you can fix this with two options:
- either change the tax to Bill Tax or try Vat Tax if it calculates the rate properly (i didn't yet tried vat tax)
- or keep the single line within OPC's config, so it summarizes the taxes (this is how the new default cart looks in VM as well)

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Tax - Canada

Postby admin » Wed May 06, 2015 4:29 pm

hello, i located the issue within opc code that prepares the line tax display. this type of tax display is not available in core VM, so opc indeed does a calculation from VM's values to show each tax individually if needed. the issue is caused by a small change in VM's objects property where opc incorrectly gets the rates.

to fix this issue, you can either update to our dev version (upon request) or you can just comment one line within
\components\com_onepage\helpers\ajaxhelper.php

locate and comment this line:
Code: Select all
if (!empty($results) && (!array_key_exists($k2, $results)))


so it looks like:
Code: Select all
// if (!empty($results) && (!array_key_exists($k2, $results)))


i will also send you an update by email.

best regards, stan, rupostel.com
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 3 on Joomla 3.x