MiniVend Akopia Services

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

RE: [mv] Computing Sales Tax on County Basis



I did that, and I created three files.

state.asc - contains a list of US state abbrevs
county.asc - contains a list of counties in New York
salestax.asc - contains all the counties with proper tax rates

Then I put in two selects in my checkout form.  One for the state.  Then I 
put in an [if value state ~= /NY/] statement that either puts up a select 
for the counties or puts in a hidden input that sets the county to NONE.  I 
also set both selects to OnChange="this.form.submit()" The problem I have 
is when I first select New York as a state, I get the first county up, but 
the salestax is still 0.  Then if I select a county, everything is ok.  But 
after that, if I select a new state, the county select disappears, but the 
salestax stays at whatever the previous value was until I update it 
again.  Is there any way that I don't have to update every time?  I thought 
that's what the OnChange would do for me, but it doesn't work for state 
changing.

I tried to modify the taxrate javascript at the top of the "simple demo" 
order form, but it only likes the flytax-type tax rates.  Since I'm not 
using flytax I can't make the java work either.

Any suggestions?

At 10:55 AM 12/16/99 , you wrote:
>******    message to minivend-users from "Christopher Thompson" 
><ct@arborinternet.com>     ******
>
>Check the file products/salestax.asc and search the docs about it. It
>allows you to calculate salestax by state or zip code.
>
>
> > -----Original Message-----
> > From: owner-minivend-users@minivend.com
> > [mailto:owner-minivend-users@minivend.com]On Behalf Of Eric Paul
> > Sent: Wednesday, December 15, 1999 8:17 PM
> > To: minivend-users@minivend.com
> > Subject: [mv] Computing Sales Tax on County Basis
> >
> >
> > ******    message to minivend-users from Eric Paul
> > <epaul@spellbook.net>     ******
> >
> > My client is in New York.  New York sales tax varies by county, and the
> > client needs to know which county the customer is from so they
> > know which
> > county to send the tax checks to.  I know how to set minivend
> > up to compute
> > fixed tax rate per state, but how can I set it up to compute on
> > another field?
> >
> > What I'd really like to do is have the checkout form come up with some
> > drop-down boxes if you pick New York state asking which county you are
> > in.  Then it grabs the right tax rate.  The HTML coding seems pretty
> > straightforward, but I'm not sure how to do the tax part.  Anyone else
> > battled this problem already?
> >
> > Eric
> > ---
> > Eric Paul
> > SpellBook Systems
> > http://www.spellbook.net
> > -
> > To unsubscribe from the list, DO NOT REPLY to this message.
> > Instead, send
> > email with 'UNSUBSCRIBE minivend-users' in the body to
> > Majordomo@minivend.com.
> > Archive of past messages: http://www.minivend.com/minivend/minivend-list
> >
>
>-
>To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
>email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
>Archive of past messages: http://www.minivend.com/minivend/minivend-list

---
Eric Paul
SpellBook Systems
http://www.spellbook.net


Search for: Match: Format: Sort by: