VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 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

4266 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

4266 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