Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Canadian Tax
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

PabloHoney
Starting Member

Canada
20 Posts

Posted - August 03 2007 :  14:09:09  Show Profile  Reply with Quote
Hi,

Laws in Canada state that the federal tax must be displayed separately from provincial tax. Currently during the checkout process there is only one line for tax. Is it possible to edit the code somewhere to have the two taxes displayed on different lines?

Also as a follow up question, certain provinces charge provincial tax on top of the federal tax. Is there anyway to accomplish this?

Thanks

support
Administrator

4679 Posts

Posted - August 06 2007 :  08:31:58  Show Profile  Visit support's Homepage  Reply with Quote
Hello,

VP-ASP 6.50 already has a built-in method to display both the provincial and federal tax on checkout.

You will simply need to set the value of "statetaxrate" and "statecanadapst" for Quebec and P.E. Island from the administration page. VP-ASP will then display both the taxes on 2 different lines for Quebec and P.E. Island.

Regards,
Frank

VP-ASP Support



Go to Top of Page

PabloHoney
Starting Member

Canada
20 Posts

Posted - September 20 2007 :  13:20:57  Show Profile  Reply with Quote
Hi,

Worked like a charm. The only remaining tax issue is that in Canada there are two taxes, provincial and federal. Quebec charges tax on tax meaning that you take the subtotal, add federal tax to that amount then tax the final amount. Is there anyway to charge tax on tax?
Go to Top of Page

support
Administrator

4679 Posts

Posted - September 23 2007 :  19:34:50  Show Profile  Visit support's Homepage  Reply with Quote
Hi,

On your shoptax.asp locate

if getconfig("xtaxincludedinprice") = "Yes" then
caxfactor = (carate * 100) + 100
caxnet = (price/caxfactor) * 100
tax = price - caxnet
caxfactor = (capst * 100) + 100
caxnet = (price/caxfactor) * 100
capst = price - caxnet
else
tax=carate*price
pst=capst*price
end if

Change to-

if getconfig("xtaxincludedinprice") = "Yes" then
if lcase(castate) = "qc" OR lcase(castate) = "pe" then
caxfactor = (capst * 100) + 100
caxnet = (price/caxfactor) * 100
capst = price - caxnet
caxfactor = (carate * 100) + 100
caxnet = ((price + capst)/caxfactor) * 100
tax = (price + capst) - caxnet
else
caxfactor = (carate * 100) + 100
caxnet = (price/caxfactor) * 100
tax = price - caxnet
caxfactor = (capst * 100) + 100
caxnet = (price/caxfactor) * 100
capst = price - caxnet
end if
else
if lcase(castate) = "qc" OR lcase(castate) = "pe" then
pst=capst*price
tax=carate*(price + pst)
else
tax=carate*price
pst=capst*price
end if
end if

This should resolve your issue

Regards,

Billy
VP-ASP Support
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00