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