 |
Page 1 of 1
|
Author |
Message |
YorkieObsessed
Newbie
Joined: 09 Jul 2004
Posts: 1
|
 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
|
Fri Jul 09, 04 9:38 pm |
|
 |
milehightrader
Guest
|
You will find custom tax logic created by a Canadian user of the cart at agoracart.com
http://www.agoracart.com/addon_tax.htm
|
Sat Jul 10, 04 6:45 am |
|
 |
harvard
User - One Blade
Joined: 12 Oct 2005
Posts: 39
Location: Auckland
|
Unfortunate ly that link gives a 404 not found notice
|
Fri Apr 13, 07 3:43 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
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
|
Fri Apr 13, 07 5:48 pm |
 |
 |
Ducimus
Newbie - Two Blades
Joined: 06 Feb 2008
Posts: 31
|
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...
|
Mon May 05, 08 1:34 pm |
|
 |
Ducimus
Newbie - Two Blades
Joined: 06 Feb 2008
Posts: 31
|
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...
|
Mon May 05, 08 1:35 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Is that EXACTLY what you have in the tax logic box????
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Mon May 05, 08 5:15 pm |
 |
 |
Ducimus
Newbie - Two Blades
Joined: 06 Feb 2008
Posts: 31
|
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...
|
Mon May 05, 08 9:00 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
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
|
Tue May 06, 08 6:06 am |
 |
 |
Ducimus
Newbie - Two Blades
Joined: 06 Feb 2008
Posts: 31
|
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
_________________ Proof a little knowledge is a dangerous thing.... further proof that print designers should stay away from the web...
|
Tue May 06, 08 9:05 am |
|
 |
Ducimus
Newbie - Two Blades
Joined: 06 Feb 2008
Posts: 31
|
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
_________________ Proof a little knowledge is a dangerous thing.... further proof that print designers should stay away from the web...
|
Tue May 06, 08 9:07 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
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
|
Tue May 06, 08 9:31 am |
 |
 |
Ducimus
Newbie - Two Blades
Joined: 06 Feb 2008
Posts: 31
|
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...
|
Tue May 06, 08 3:01 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
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
|
Tue May 06, 08 4:48 pm |
 |
 |
Ducimus
Newbie - Two Blades
Joined: 06 Feb 2008
Posts: 31
|
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...
|
Wed May 07, 08 9:30 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
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
|
Wed May 07, 08 1:52 pm |
 |
 |
Ducimus
Newbie - Two Blades
Joined: 06 Feb 2008
Posts: 31
|
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...
|
Wed May 07, 08 4:40 pm |
|
 |
|
The time now is Sat Apr 26, 25 8:49 am | All times are GMT - 7 Hours
|
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
|
|
|