MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Multiple Salestaxes



Hi all,
            I have a new problem. One of the catalogs I set up is for a Tobacco shop. The shop is located in Michigan, which has a 16% tobacco sales tax on top of our normal 6% sales tax.
 
            I have the checkout.html detecting if an item ordered is a tobacco product. Now I need the right direction to head in so that I can either place perl code that will calculate the tax for that specific item, or a way to call a routine that can. In both cases, the code to do such a thing eludes me.
 
            I may be totally off on this as it may not be possible at all. I would really rather not make a seperate catalog just for MI buyers that would have the products just tagged as nontaxable and incorporate the tax into the price if I don't have to. Could someone point me in the right direction with this? Any help would be greatly appreciated.
 
Here is the code that detects the items in checkout.html
<SCRIPT>    // JavaScript Form Validation Demo    // by Paul Colton
    function check_tax(form) {
        // Make sure the email field is not blank
        var foundState = false;
        var ch = form.state.value;
        ch = ch.toUpperCase();
  [loop arg="__TAXAREA__"]
        if(ch == "[loop-code]") {
            alert("You will be charged [currency][fly-tax [loop-code]][/currency] sales tax\nsince you are shipping to [loop-code].");
[if ordered 99-102]
alert("Since you are shipping to Michigan, and have a tobacco product in your order, an additonal 16% tobacco tax will be added to each tobacco product in your cart. Please press UPDATE to reflect the new tax addition.");
 

[/if]
 
            foundState = true;
        }
  [/loop]
        return foundState;
    }
</SCRIPT>
 
Bill Beecham
 
 

Search for: Match: Format: Sort by: