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
tax logic version 5 not working.....stumped.
Author Message
Reply with quote
Post tax logic version 5 not working.....stumped. 
hi.

i have been reading for about 30-40 minutes, and not finding an answer....

i have created a v4 agora cart, and have sales tax working (as VAT-17.5%) more or less (design still ongoing)
http://www.mentalwealthstudios.com/quirlys/store/agora.cgi

i am trying the same in a current v5 agora cart, and it is not displaying in the cart viewing page, before the checkout process, with the other totals. I have the extra tax logic = yes etc etc.

http://www.slinkysals.co.uk/store5/agora.cgi

<logic>
$sc_city_tax_variable = "Ecom_ShipTo_Postal_City";
$city_tax = ($subtotal *0.175);
</logic>

thanks in advance.

View user's profile Send private message
Reply with quote
Post  
Do you have a sales tax set for the main part?
Or are you just trying to do it using the city tax.
I think that the main sales tax part needs to have a value.
How exactly do you calculate the sales taxes for where you are?


_________________
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  
my carts are currently for uk only...so all will be charged 17.5% regardless..........i do not want to set tax based on states/location.

will i have this same problem i have now with the shippings as well? does that need to be based on state? if so, how do i change that also please.

thanks

View user's profile Send private message
Reply with quote
Post  
Shipping depends on how you want it calculated.

Do you only ship within the UK?
I have done work for a client to edit the tax calculation to be based on the country being shipped to...


_________________
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  
no...just 17.5% wherever you are will be fine...............my customer may upgrade this at a later date. I will set my shipping up a little better, but will generally offer two or three options to choose.

so no ideas y my tax isnt working?

View user's profile Send private message
Reply with quote
Post  
You need to have a base tax set up.
You can't have it just set to "NONE" since that turns off all of the tax.

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  
so how do i get rid of the states etc? and just have tax turned on?

View user's profile Send private message
Reply with quote
Post  
It takes a little editing of the core files... which will make it so that you cannot upgrade the v5 modules unless you reapply the fix EVERY time you do.
This will also work in v4.

Make a backup of the current files *before* editing.
In the tax_settings-ext_lib.pl file, find:
Code:
<TR>
<TD><FONT FACE=ARIAL SIZE=2>Customers shipping to the state selected here
will be charged sales tax</font></TD>
<TD><FONT FACE=ARIAL SIZE=2>
<SELECT NAME=sales_tax_state>
<OPTION>$sc_sales_tax_state</OPTION>
<OPTION>None</OPTION>
<OPTION>AL</OPTION>
<OPTION>AK</OPTION>
<OPTION>AZ</OPTION>
<OPTION>AR</OPTION>
<OPTION>CA</OPTION>
<OPTION>CO</OPTION>
<OPTION>CT</OPTION>
<OPTION>DC</OPTION>
<OPTION>DE</OPTION>
<OPTION>FL</OPTION>
<OPTION>GA</OPTION>
<OPTION>GU</OPTION>
<OPTION>HI</OPTION>
<OPTION>ID</OPTION>
<OPTION>IL</OPTION>
<OPTION>IN</OPTION>
<OPTION>IA</OPTION>
<OPTION>KS</OPTION>
<OPTION>KY</OPTION>
<OPTION>LA</OPTION>
<OPTION>ME</OPTION>
<OPTION>MD</OPTION>
<OPTION>MA</OPTION>
<OPTION>MI</OPTION>
<OPTION>MN</OPTION>
<OPTION>MS</OPTION>
<OPTION>MO</OPTION>
<OPTION>MT</OPTION>
<OPTION>NE</OPTION>
<OPTION>NV</OPTION>
<OPTION>NH</OPTION>
<OPTION>NJ</OPTION>
<OPTION>NM</OPTION>
<OPTION>NY</OPTION>
<OPTION>NC</OPTION>
<OPTION>ND</OPTION>
<OPTION>OH</OPTION>
<OPTION>OK</OPTION>
<OPTION>OR</OPTION>
<OPTION>PA</OPTION>
<OPTION>PR</OPTION>
<OPTION>RI</OPTION>
<OPTION>SC</OPTION>
<OPTION>SD</OPTION>
<OPTION>TN</OPTION>
<OPTION>TX</OPTION>
<OPTION>UT</OPTION>
<OPTION>VI</OPTION>
<OPTION>VT</OPTION>
<OPTION>VA</OPTION>
<OPTION>WA</OPTION>
<OPTION>WV</OPTION>
<OPTION>WI</OPTION>
<OPTION>WY</OPTION>
</SELECT>
</font></TD>
</TR>


Replace with:
Code:
<TR>
<TD>Customers shipping to the country inputted here
will be charged sales tax.</TD>
<TD>
<!-- SE - Edited the following for state selection for sales tax based on
country - courtesy http://www.scottcrewwebservices.com -->
<INPUT TYPE="TEXT" NAME="sales_tax_country" VALUE="$sc_sales_tax_country"
SIZE="30">
</TD>
</TR>


In the agora.setup.db file, find:
Code:
$sc_sales_tax_form_variable = "Ecom_ShipTo_Postal_StateProv";


Replace with:
Code:
#SE - Edited following for sales tax based on country - courtesy http://www.scottcrewwebservices.com
$sc_sales_tax_form_variable = "Ecom_ShipTo_Postal_CountryCode";


FIND:
Code:
@sc_sales_tax_form_values = ("$sc_sales_tax_state");


Replace with:
Code:
#SE - Edited following for sales tax based on country - courtesy http://www.scottcrewwebservices.com
@sc_sales_tax_form_values = ("$sc_sales_tax_country");


Remember to reupload these files back to the server 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  
right.....

i have done the above......but this will not let me have a tax (VAT) in the initial cart viewing section (and doesnt appear in step one/two where you choose your payment method).....i believe this is because the country is not entered until the next step.......

how do i change this? i want customers to see their VAT charges in the cart section.

i will be dealing with UK only, so how can i get it to add the VAT, without 'UK' actually being specified.

one idea is to be maybe not have a tax, and make sure all product prices include VAT @ 17.5%???


and if i change this in the future, and ship to another country, i believe they are still subject to our VAT charges???? Question

thanks

View user's profile Send private message
Reply with quote
Post  
I do not know about taxes in the UK, therefore, it is your responsibilty, as the merchant, to know the taxoing requirements set forth by your taxing authority. That is why I stated that you needed to speak with them.
However, based on what I have seen, you CANNOT collect VAT when you are shipping to countries that are not in the EU.

On the order form, you can add a country field... If you are ONLY selling in the UK, then, you can do a "hidden" field for the country on the order form.
You might want to review the following thread on adding fields to order forms:
http://www.agoraguide.com/faq/viewtopic.php?t=2113

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
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