The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
Can the cart perform taxes for Canadians PST & GST
Author Message
Reply with quote
Post Can the cart perform taxes for Canadians PST & GST 
In Canada some provinces charge a provincial sales tax (PST) and the federal government charges the government sales tax... (GST)

Is Agora Cart suitable for Canadian E-Commerce Sites

Thanking you in advance for you reply

have a good day :P

View user's profile Send private message
Reply with quote
Post  
You will find custom tax logic created by a Canadian user of the cart at agoracart.com
http://www.agoracart.com/addon_tax.htm

Reply with quote
Post  
Unfortunate ly that link gives a 404 not found notice

View user's profile Send private message
Reply with quote
Post  
Again, you're looking a a nearly 3 year old post...
Try here:
http://tech.groups.yahoo.com/group/agora2/files/

HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
Works for GST and PST, but with 5 additional PST settings it's lacking any hints?


_________________
Proof a little knowledge is a dangerous thing.... further proof that print designers should stay away from the web...
View user's profile Send private message
Reply with quote
Post  
I trided scripting this for logic3, but it didn't seem to work
Code:
# 7 \% Provincial Sales Tax in BC and Manitoba on the subtotal
(0.07)*\$subtotal
if (\$form_data{\'Ecom_ShipTo_Postal_StateProv\'}=~ /BC|MB/i);
\# 5 \% Provincial Sales Tax in Saskatchewan on the subtotal
(0.05)*\$subtotal
if (\$form_data{\'Ecom_ShipTo_Postal_StateProv\'}=~ /SK/i);
\# 7.5 \% Provincial Sales Tax in Quebec on the subtotal
(0.075)*\$subtotal
if (\$form_data{\'Ecom_ShipTo_Postal_StateProv\'}=~ /QC/i);
\# 8 \% Provincial Sales Tax in Ontario on the subtotal
(0.08)*\$subtotal
if (\$form_data{\'Ecom_ShipTo_Postal_StateProv\'}=~ /ON/i);
\# 10 \% Provincial Sales Tax in PEI on the subtotal
(0.1)*\$subtotal
if (\$form_data{\'Ecom_ShipTo_Postal_StateProv\'}=~ /PEI/i);`;


Perhaps it's just a little glitch somewhere


_________________
Proof a little knowledge is a dangerous thing.... further proof that print designers should stay away from the web...
View user's profile Send private message
Reply with quote
Post  
Is that EXACTLY what you have in the tax logic box????


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
Not quite... it was a copy from the lib file... I had to copy it out of there cuz i was messing around a few too many times and well, didn't have it.. I did clean it to read:

Code:

# 7 % Provincial Sales Tax in BC and Manitoba on the subtotal
(0.07)*$subtotal
if ($form_data{'Ecom_ShipTo_Postal_StateProv'}=~ /BC|MB/i);
# 5 % Provincial Sales Tax in Saskatchewan on the subtotal
(0.05)*$subtotal
if ($form_data{'Ecom_ShipTo_Postal_StateProv'}=~ /SK/i);
# 7.5 % Provincial Sales Tax in Quebec on the subtotal
(0.075)*$subtotal
if ($form_data{'Ecom_ShipTo_Postal_StateProv'}=~ /QC/i);
# 8 % Provincial Sales Tax in Ontario on the subtotal
(0.08)*$subtotal
if ($form_data{'Ecom_ShipTo_Postal_StateProv'}=~ /ON/i);
# 10 % Provincial Sales Tax in PEI on the subtotal
(0.1)*$subtotal
if ($form_data{'Ecom_ShipTo_Postal_StateProv'}=~ /PEI/i);



_________________
Proof a little knowledge is a dangerous thing.... further proof that print designers should stay away from the web...
View user's profile Send private message
Reply with quote
Post  
Try this, instead:
Code:

# 7 % Provincial Sales Tax in BC and Manitoba on the subtotal
if ($form_data{'Ecom_ShipTo_Postal_StateProv'}=~ /BC|MB/i) {
(0.07)*$subtotal;
}
# 5 % Provincial Sales Tax in Saskatchewan on the subtotal
if ($form_data{'Ecom_ShipTo_Postal_StateProv'}=~ /SK/i) {
(0.05)*$subtotal;
}
# 7.5 % Provincial Sales Tax in Quebec on the subtotal
if ($form_data{'Ecom_ShipTo_Postal_StateProv'}=~ /QC/i) {
(0.075)*$subtotal;
}
# 8 % Provincial Sales Tax in Ontario on the subtotal
if ($form_data{'Ecom_ShipTo_Postal_StateProv'}=~ /ON/i) {
(0.08)*$subtotal;
}
# 10 % Provincial Sales Tax in PEI on the subtotal
if ($form_data{'Ecom_ShipTo_Postal_StateProv'}=~ /PEI/i) {
(0.1)*$subtotal;
}


I haven't done this in a while so not quite sure... Might need to define some variables...
Give it a try and let me know...
Also, let us know what the rest of the sales tax settings are set to.

HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
hmmm... logic 1 - Goods and Services Tax GST

Code:

# 5 % Federal Goods And Services Tax on the subtotal
(0.05)*$subtotal
if ($form_data{'Ecom_ShipTo_Postal_StateProv'}=~ /AB|BC|MB|NWT|ON|PEI|PQ|SK|YT/i);


works fine

logic 2 - Harmonized Sales Tax HST
Code:

# 13 % combined federal/provincial Harmonised Services Tax on the subtotal
(0.13)*$subtotal
if ($form_data{'Ecom_ShipTo_Postal_StateProv'}=~ /NB|NFLD|NS/i);


Works fine

logic3 - Provincial Sales Tax PST
Code:

# 7 % Provincial Sales Tax in BC and Manitoba on the subtotal
if ($form_data{'Ecom_ShipTo_Postal_StateProv'}=~ /BC|MB/i) {
(0.07)*$subtotal;
}
# 5 % Provincial Sales Tax in Saskatchewan on the subtotal
if ($form_data{'Ecom_ShipTo_Postal_StateProv'}=~ /SK/i) {
(0.05)*$subtotal;
}
# 7.5 % Provincial Sales Tax in Quebec on the subtotal
if ($form_data{'Ecom_ShipTo_Postal_StateProv'}=~ /QC/i) {
(0.075)*$subtotal;
}
# 8 % Provincial Sales Tax in Ontario on the subtotal
if ($form_data{'Ecom_ShipTo_Postal_StateProv'}=~ /ON/i) {
(0.08)*$subtotal;
}
# 10 % Provincial Sales Tax in PEI on the subtotal
if ($form_data{'Ecom_ShipTo_Postal_StateProv'}=~ /PEI/i) {
(0.1)*$subtotal;
}


Doesnt work Sad


_________________
Proof a little knowledge is a dangerous thing.... further proof that print designers should stay away from the web...
View user's profile Send private message
Reply with quote
Post  
you have to love a nice goofy little tax structure....

Though I suppose, once it's set for one, it can be customized for other multiple taxation areas - like 50 odd states Smile


_________________
Proof a little knowledge is a dangerous thing.... further proof that print designers should stay away from the web...
View user's profile Send private message
Reply with quote
Post  
Ducimus,
Are all of the AgoraCart Modules up to date????
I am thinking there may have been a problem with the Tax3 calculation thingy....


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
hmmm... all my modules read up to date...


_________________
Proof a little knowledge is a dangerous thing.... further proof that print designers should stay away from the web...
View user's profile Send private message
Reply with quote
Post  
Ducimus,
Check the agora_order_lib.pl file in the 'library' directory.

In the subroutine "display_calculations", around line 1534 look for:
Code:
if ($sc_use_verify_values_for_display =~ /yes/i) {
  ($sc_ship_method_shortname,$junk) =
    split(/\(/,$sc_verify_shipto_method,2);
  ($final_shipping,
  $final_discount,
  $final_sales_tax,
  $final_extra_tax1,
  $final_extra_tax2,
  $grand_total,
       $final_buySafe) =
  ($sc_verify_shipping,$sc_verify_discount,
  $sc_verify_tax,$sc_verify_etax1,
  $sc_verify_etax2,$sc_verify_etax3,
  $sc_verify_grand_total,
  $sc_verify_buySafe);
 }


Edit as follows:
Code:
if ($sc_use_verify_values_for_display =~ /yes/i) {
  ($sc_ship_method_shortname,$junk) =
    split(/\(/,$sc_verify_shipto_method,2);
  ($final_shipping,
  $final_discount,
  $final_sales_tax,
  $final_extra_tax1,
  $final_extra_tax2,
  $final_extra_tax3,
  $grand_total,
       $final_buySafe) =
  ($sc_verify_shipping,$sc_verify_discount,
  $sc_verify_tax,$sc_verify_etax1,
  $sc_verify_etax2,$sc_verify_etax3,
  $sc_verify_grand_total,
  $sc_verify_buySafe);
 }


Remember to download/upload the file in ASCII mode.

HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
Well those lines were at Exactly line 1534, but alas, still not getting the PST settings...

I really wish I knew more about programming so all this doesnt look so greek to me, but I may learn yet.....


_________________
Proof a little knowledge is a dangerous thing.... further proof that print designers should stay away from the web...
View user's profile Send private message
Reply with quote
Post  
Is the code exactly like the 2nd set of code I posted?
Cause the faulty code is only different by 1 line....


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
from 1521-1562 read (i'll apologize in advance for pasting a long code snippit in):

Quote:

sub display_calculations {
local($taxable_grand_total,$subtotal,
$are_we_before_or_at_process_form,
$total_measured_quantity,
$text_of_cart) = @_;
local($final_shipping,
$final_discount,
$final_sales_tax,
$final_extra_tax1,
$final_extra_tax2,
$final_extra_tax3,
$grand_total,$final_buySafe);
if ($sc_use_verify_values_for_display =~ /yes/i) {
($sc_ship_method_shortname,$junk) =
split(/\(/,$sc_verify_shipto_method,2);
($final_shipping,
$final_discount,
$final_sales_tax,
$final_extra_tax1,
$final_extra_tax2,
$final_extra_tax3,
$grand_total,
$final_buySafe) =
($sc_verify_shipping,$sc_verify_discount,
$sc_verify_tax,$sc_verify_etax1,
$sc_verify_etax2,$sc_verify_etax3,
$sc_verify_grand_total,
$sc_verify_buySafe);
} else {
($final_shipping,
$final_discount,
$final_sales_tax,
$final_extra_tax1,
$final_extra_tax2,
$final_extra_tax3,
$grand_total,
$final_buySafe) =
&calculate_final_values($taxable_grand_total,$subtotal,
$total_quantity,
$total_measured_quantity,
$are_we_before_or_at_process_form);
}



_________________
Proof a little knowledge is a dangerous thing.... further proof that print designers should stay away from the web...
View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum