# Perl Support File # WebStore Form Variables # Variables used by all scripts: /Web_store/ws_global.setup # File Permissions: 644 -rw-r--r-- # NOTE: If you change the filename of this file, change the value of # $country_file in outlet.setup to reflect the file's new name. ############################################################################ # outlet.state_country.setup # #==========================================================================# # Copyright (c) 1996 - 2002, RDC Software # # WebStore@ratite.com http://www.ratite.com/Perl/WebStore.shtml # # Version: 4.15.00 Date: 01/01/2002 # # # # Full copyright notice can be found in the following files for the # # listed license type: # # # # Single User License: /Docs/Copyright_SingleUser.html # # Server License: /Docs/Copyright_Server.html # # # # This copyright notification can not be altered or removed from this file.# ############################################################################ # %states is a hash of arrays listing states and territories of the # United States. # %states is used for printing US states drop down select form elements, # performing required fields checking of state (and country) form inputs, # and to provide state sales tax values. # State sales tax is added to a client's order when $tax = 1 in outlet.setup # and array element two of the client selected state from %states contains a # tax rate value. # When $tax = '' in outlet.setup, elements two and three of state arrays are # disregarded. # Store sales tax percentage values, in decimal format, in element two of # state arrays. # # Examples of state array with 6.75% sales tax: # # KEY zero one two three # '53' => ['TX', 'Texas', '.0675'], # '53' => ['TX', 'Texas', '.0675', '~~RATE~~ ~~STATE~~ Sales Tax'], # # zero: State abbreviation. # # one: State. # # two: Sales tax percentage value, in decimal format. # # three: Tax label. WebStore uses the universal label defined in $tax_label in # outlet.setup for state sales tax labels. Defining state specific tax # labels in element three is not necessary as the tax label structure is # identical for all states. # # When a label is defined in element three, it's value will replace the # universal label defined in $tax_label in outlet.setup. # # Occurrences of ~~RATE~~ ~~STATE~~ ~~PROVINCE~~ and ~~COUNTRY~~ # found in element three will be replaced with: # # ~~RATE~~ Tax rate in percentage format: 6.75% # ~~STATE~~ US state from %states in $country_file # ~~PROVINCE~~ Province from %provinces in $country_file # ~~COUNTRY~~ Country from %countries in $country_file # Example sales tax rate of .0675 and sales tax state of Texas: # # $tax_label = '~~RATE~~ ~~STATE~~ Sales Tax'; # $tax_label = '6.75% Texas Sales Tax'; %states = ( '10' => ['AL','Alabama'], '11' => ['AK','Alaska'], '12' => ['AZ','Arizona'], '13' => ['AR','Arkansas'], '14' => ['CA','California'], '15' => ['CO','Colorado'], '16' => ['CT','Connecticut'], '17' => ['DE','Delaware'], '18' => ['DC','District of Columbia'], '19' => ['FL','Florida'], '20' => ['GA','Georgia'], '21' => ['HI','Hawaii'], '22' => ['ID','Idaho'], '23' => ['IL','Illinois'], '24' => ['IN','Indiana'], '25' => ['IA','Iowa'], '26' => ['KS','Kansas'], '27' => ['KY','Kentucky'], '28' => ['LA','Louisiana'], '29' => ['ME','Maine'], '30' => ['MD','Maryland'], '31' => ['MA','Massachusetts'], '32' => ['MI','Michigan'], '33' => ['MN','Minnesota'], '34' => ['MS','Mississippi'], '35' => ['MO','Missouri'], '36' => ['MT','Montana'], '37' => ['NE','Nebraska'], '38' => ['NV','Nevada'], '39' => ['NH','New Hampshire'], '40' => ['NJ','New Jersey'], '41' => ['NM','New Mexico'], '42' => ['NY','New York'], '43' => ['NC','North Carolina'], '44' => ['ND','North Dakota'], '45' => ['OH','Ohio'], '46' => ['OK','Oklahoma'], '47' => ['OR','Oregon'], '48' => ['PA','Pennsylvania'], '49' => ['RI','Rhode Island'], '50' => ['SC','South Carolina'], '51' => ['SD','South Dakota'], '52' => ['TN','Tennessee'], '53' => ['TX','Texas', '.0675', '~~RATE~~ ~~STATE~~ Sales Tax'], '54' => ['UT','Utah'], '55' => ['VT','Vermont'], '56' => ['VI','Virgin Islands'], '57' => ['VA','Virginia'], '58' => ['WA','Washington'], '59' => ['WV','West Virginia'], '60' => ['WI','Wisconsin'], '61' => ['WY','Wyoming'], ); # DO NOT REMOVE - terminates %states # %countries is a hash of arrays listing countries. # %countries is used for printing country drop down select form elements, # performing required fields checking of country (and state) form inputs, # and to provide country sales tax (or VAT) values. # Country tax is added to a client's order when $tax = 1 in outlet.setup and # array element two of the client selected country from %countries contains a # tax rate value. # When $tax = '' in outlet.setup, elements two and three of country arrays are # disregarded. # Store sales tax percentage values, in decimal format, in element two of # country arrays. # # Examples of country array with 17% VAT tax rate: # # KEY zero one two three # '194' => ['IT', 'Italy', '.17'], # '194' => ['IT', 'Italy', '.17', '~~RATE~~ VAT'], # # zero: Country abbreviation. # # one: Country. # # two: Country tax percentage value, in decimal format. # # three: Tax label. WebStore uses the universal label defined in $tax_label in # outlet.setup for country tax labels. Defining country specific tax # labels in element three may be necessary as the tax label structure may # not be identical for all countries. # # When a label is defined in element three, it's value will replace the # universal label defined in $tax_label in outlet.setup. # # Occurrences of ~~RATE~~ ~~STATE~~ ~~PROVINCE~~ and ~~COUNTRY~~ # found in element three will be replaced with: # # ~~RATE~~ Tax rate in percentage format: 6.75% # ~~STATE~~ US state from %states in $country_file # ~~PROVINCE~~ Province from %provinces in $country_file # ~~COUNTRY~~ Country from %countries in $country_file # State tax rates in %states take precedence over tax rates in %countries. # # Elements two and three of the United States' array are always disregarded. # List tax rates in state arrays in %states (above) for the United States. # Example tax rate of .17 and tax country of Italy: # # $tax_label = '~~RATE~~ VAT'; # $tax_label = '17% VAT'; %countries = ( '100' => ['AL','Albania'], '101' => ['DZ','Algeria'], '102' => ['AS','American Samoa'], '103' => ['AD','Andorra'], '104' => ['AI','Anguilla'], '105' => ['AG','Antigua'], '106' => ['AR','Argentina'], '107' => ['AW','Aruba'], '108' => ['AU','Australia'], '109' => ['AT','Austria'], '110' => ['AP','Azores'], '111' => ['AS','Bahamas'], '112' => ['BH','Bahrain'], '113' => ['BD','Bangladesh'], '114' => ['BB','Barbados'], '115' => ['BC','Barbuda'], '116' => ['BE','Belgium'], '117' => ['BZ','Belize'], '118' => ['BY','Belorus'], '119' => ['BJ','Benin'], '120' => ['BM','Bermuda'], '121' => ['BO','Bolivia'], '122' => ['BL','Bonaire'], '123' => ['BW','Botswana'], '124' => ['BR','Brazil'], '125' => ['VG','British Virgin Islands'], '126' => ['BN','Brunei'], '127' => ['BG','Bulgaria'], '128' => ['BF','Burkina Faso'], '129' => ['BI','Burundi'], '130' => ['KH','Cambodia'], '131' => ['CM','Cameroon'], '132' => ['CA','Canada'], '133' => ['CE','Canary Islands'], '134' => ['CV','Cape Verde Islands'], '135' => ['KY','Cayman Islands'], '136' => ['CF','Central African Republic'], '137' => ['TD','Chad'], '138' => ['NN','Channel Islands'], '139' => ['CL','Chile'], '140' => ['CN','China, Peoples Republc of'], '141' => ['CX','Christmas Island'], '142' => ['CC','Cocos Islands'], '143' => ['CO','Colombia'], '144' => ['CG','Congo'], '145' => ['CK','Cook Islands'], '146' => ['CR','Costa Rica'], '147' => ['HR','Croatia'], '148' => ['CB','Curacao'], '149' => ['CY','Cyprus'], '150' => ['CZ','Czech Republic'], '151' => ['DK','Denmark'], '152' => ['DJ','Djibouti'], '153' => ['DM','Dominica'], '154' => ['DO','Dominican Republic'], '155' => ['EC','Ecuador'], '156' => ['EG','Egypt'], '157' => ['SV','El Salvador'], '158' => ['EN','England'], '159' => ['GQ','Equitorial Guinea'], '160' => ['ER','Eritrea'], '161' => ['EE','Estonia'], '162' => ['ET','Ethiopia'], '163' => ['FO','Faeroe Islands'], '164' => ['FJ','Fiji'], '165' => ['FI','Finland'], '166' => ['FR','France'], '167' => ['GF','French Guiana'], '168' => ['PF','French Polynesia'], '169' => ['GA','Gabon'], '170' => ['GM','Gambia'], '171' => ['DE','Germany'], '172' => ['GH','Ghana'], '173' => ['GI','Gibraltar'], '174' => ['GR','Greece'], '175' => ['GL','Greenland'], '176' => ['GD','Grenada'], '177' => ['GP','Guadeloupe'], '178' => ['GU','Guam'], '179' => ['GT','Guatemala'], '180' => ['GN','Guinea'], '181' => ['GW','Guinea-Bissau'], '182' => ['GY','Guyana'], '183' => ['HT','Haiti'], '184' => ['HO','Holland'], '185' => ['HN','Honduras'], '186' => ['HK','Hong Kong'], '187' => ['HU','Hungary'], '188' => ['IS','Iceland'], '189' => ['IN','India'], '190' => ['ID','Indonesia'], '191' => ['IR','Iran'], '192' => ['IE','Ireland'], '193' => ['IL','Israel'], '194' => ['IT','Italy'], '195' => ['CI','Ivory Coast (Cote d\'Ivoire)'], '196' => ['JM','Jamaica'], '197' => ['JP','Japan'], '198' => ['JO','Jordan'], '199' => ['KZ','Kazakhstan'], '200' => ['KE','Kenya'], '201' => ['KI','Kiribati'], '202' => ['KR','Korea, South'], '203' => ['KO','Kosrae'], '204' => ['KW','Kuwait'], '205' => ['KG','Kyrgyzstan'], '206' => ['LA','Laos'], '207' => ['LV','Latvia'], '208' => ['LB','Lebanon'], '209' => ['LS','Lesotho'], '210' => ['LR','Liberia'], '211' => ['LI','Liechtenstein'], '212' => ['LT','Lithuania'], '213' => ['LU','Luxembourg'], '214' => ['MO','Macau'], '215' => ['MK','Macedonia'], '216' => ['MG','Madagascar'], '217' => ['ME','Madeira'], '218' => ['MW','Malawi'], '219' => ['MY','Malaysia'], '220' => ['MV','Maldives'], '221' => ['ML','Mali'], '222' => ['MT','Malta'], '223' => ['MH','Marshall Islands'], '224' => ['MQ','Martinique'], '225' => ['MR','Mauritania'], '226' => ['MU','Mauritius'], '227' => ['MX','Mexico'], '228' => ['FM','Micronesia'], '229' => ['MC','Monaco'], '230' => ['MS','Montserrat'], '231' => ['MA','Morocco'], '232' => ['MZ','Mozambique'], '233' => ['MM','Myanmar'], '234' => ['NA','Namibia'], '235' => ['NP','Nepal'], '236' => ['NL','Netherlands'], '237' => ['AN','Netherlands Antilles'], '238' => ['NV','Nevis'], '239' => ['NC','New Caledonia'], '240' => ['NZ','New Zealand'], '241' => ['NI','Nicaragua'], '242' => ['NE','Niger'], '243' => ['NG','Nigeria'], '244' => ['NU','Niue'], '245' => ['NF','Norfolk Island'], '246' => ['NB','Northern Ireland'], '247' => ['MP','Northern Mariana Islands'], '248' => ['NO','Norway'], '249' => ['OM','Oman'], '250' => ['PK','Pakistan'], '251' => ['PW','Palau'], '252' => ['PA','Panama'], '253' => ['PG','Papua New Guinea'], '254' => ['PY','Paraguay'], '255' => ['PE','Peru'], '256' => ['PH','Philippines'], '257' => ['PL','Poland'], '258' => ['PO','Ponape'], '259' => ['PT','Portugal'], '260' => ['PR','Puerto Rico'], '261' => ['QA','Qatar'], '262' => ['RE','Reunion'], '263' => ['RO','Romania'], '264' => ['RT','Rota'], '265' => ['RU','Russia'], '266' => ['RW','Rwanda'], '267' => ['SS','Saba'], '268' => ['SP','Saipan'], '269' => ['SA','Saudi Arabia'], '270' => ['SF','Scotland'], '271' => ['SN','Senegal'], '272' => ['SC','Seychelles'], '273' => ['SL','Sierra Leone'], '274' => ['SG','Singapore'], '275' => ['SK','Slovak Republic'], '276' => ['SI','Slovenia'], '277' => ['SB','Solomon Islands'], '278' => ['ZA','South Africa'], '279' => ['ES','Spain'], '280' => ['LK','Sri Lanka'], '281' => ['NT','St. Barthelemy'], '282' => ['SW','St. Christopher'], '283' => ['SX','St. Croix'], '284' => ['EU','St. Eustatius'], '285' => ['UV','St. John'], '286' => ['KN','St. Kitts'], '287' => ['LC','St. Lucia'], '288' => ['MB','St. Maarten'], '289' => ['TB','St. Martin'], '290' => ['VL','St. Thomas'], '291' => ['VC','St. Vincent and the Grenadines'], '292' => ['SD','Sudan'], '293' => ['SR','Suriname'], '294' => ['SZ','Swaziland'], '295' => ['SE','Sweden'], '296' => ['CH','Switzerland'], '297' => ['SY','Syria'], '298' => ['TA','Tahiti'], '299' => ['TW','Taiwan'], '300' => ['TJ','Tajikistan'], '301' => ['TZ','Tanzania'], '302' => ['TH','Thailand'], '303' => ['TI','Tinian'], '304' => ['TG','Togo'], '305' => ['TO','Tonga'], '306' => ['TL','Tortola'], '307' => ['TT','Trinidad and Tobago'], '308' => ['TU','Truk'], '309' => ['TN','Tunisia'], '310' => ['TR','Turkey'], '311' => ['TC','Turks and Caicos Islands'], '312' => ['TV','Tuvalu'], '313' => ['VI','U.S. Virgin Islands'], '314' => ['UG','Uganda'], '315' => ['UA','Ukraine'], '316' => ['UI','Union Island'], '317' => ['AE','United Arab Emirates'], '318' => ['GB','United Kingdom'], '319' => ['US','United States'], '320' => ['UY','Uruguay'], '321' => ['UZ','Uzbekistan'], '322' => ['VU','Vanuatu'], '323' => ['VE','Venezuela'], '324' => ['VN','Vietnam'], '325' => ['VR','Virgin Gorda'], '326' => ['WK','Wake Island'], '327' => ['WL','Wales'], '328' => ['WF','Wallis and Futuna Islands'], '329' => ['WS','Western Samoa'], '330' => ['YA','Yap'], '331' => ['YE','Yemen'], '332' => ['ZR','Zaire'], '333' => ['ZM','Zambia'], '334' => ['ZW','Zimbabwe'], ); # DO NOT REMOVE - terminates %countries # %provinces is a hash of arrays listing provinces and territories of Canada. # %provinces is used for printing Canadian provincial drop down select form # elements, performing required fields checking of provinces (and country) # form inputs, and to provide Canadian tax values. # Canadian tax is added to a client's order when $tax = 1 in outlet.setup # and array element two of the client selected province or territory from # %provinces contains a tax rate value. # When $tax = '' in outlet.setup, elements two and three of provincial arrays # are disregarded. # Store tax percentage values, in decimal format, in element two of provincial # arrays. # # Examples of provincial array with 7.0% tax: # # KEY zero one two three # '1000' => ['AB', 'Alberta', '.07'], # '1000' => ['AB', 'Alberta', '.07', '~~RATE~~ ~~COUNTRY~~ Tax'], # # zero: Province or territory abbreviation. # # one: Province or territory # # two: Tax percentage value, in decimal format. # # three: Tax label. WebStore uses the universal label defined in $tax_label in # outlet.setup for tax labels. Defining provincial specific tax labels # in element three is not necessary as the tax label structure is # identical for all provinces or territories. # # When a label is defined in element three, it's value will replace the # universal label defined in $tax_label in outlet.setup. # # Occurrences of ~~RATE~~ ~~STATE~~ ~~PROVINCE~~ and ~~COUNTRY~~ # found in element three will be replaced with: # # ~~RATE~~ Tax rate in percentage format: 6.75% # ~~STATE~~ US state from %states in $country_file # ~~PROVINCE~~ Province from %provinces in $country_file # ~~COUNTRY~~ Country from %countries in $country_file # GST: Goods and Services Tax - Federal tax applied to goods and services # PST: Provincial Sales Tax - Provincial tax applied to goods and services # HST: Harmonized Sales Tax - Same tax base and operating rules as GST # 15% HST equals 7% GST plus 8% PST # Example tax rate of .07 and sales tax country of Canada: # # $tax_label = '~~RATE~~ ~~COUNTRY~~ Tax'; # $tax_label = '7.0% Canada Tax'; %provinces = ( '1000' => ['AB','Alberta', '.07', '~~COUNTRY~~ ~~RATE~~ GST Tax'], '1001' => ['BC','British Columbia', '.14', '~~COUNTRY~~ ~~RATE~~ GST/PST Tax'], '1002' => ['MB','Manitoba', '.07', '~~COUNTRY~~ ~~RATE~~ GST Tax'], '1003' => ['NB','New Brunswick', '.15', '~~COUNTRY~~ ~~RATE~~ HST Tax'], '1004' => ['NF','Newfoundland', '.15', '~~COUNTRY~~ ~~RATE~~ HST Tax'], '1005' => ['NT','Northwest Territories', '.07', '~~COUNTRY~~ ~~RATE~~ GST Tax'], '1006' => ['NS','Nova Scotia', '.15', '~~COUNTRY~~ ~~RATE~~ HST Tax'], '1007' => ['NU','Nunavut', '.07', '~~COUNTRY~~ ~~RATE~~ GST Tax'], '1008' => ['ON','Ontario', '.07', '~~COUNTRY~~ ~~RATE~~ GST Tax'], '1009' => ['PE','Prince Edward Island', '.15', '~~COUNTRY~~ ~~RATE~~ HST Tax'], '1010' => ['QC','Quebec', '.07', '~~COUNTRY~~ ~~RATE~~ GST Tax'], '1011' => ['SK','Saskatchewan', '.07', '~~COUNTRY~~ ~~RATE~~ GST Tax'], '1012' => ['YT','Yukon Territory', '.07', '~~COUNTRY~~ ~~RATE~~ GST Tax'], ); # DO NOT REMOVE - terminates %provinces 1; # DO NOT REMOVE # End of file