MiniVend Akopia Services

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

Re: A solution (was Re: how to calculate shipping tax?)







On Thu, 17 Jun 1999, Ryan Hertz wrote:
> >5. fire it off!
> 
> 	Cool.

So far so good!

> >My worry is that someone will choose the US.  That will force a page
> >submit and will reload everything.  However, if they haven't filled in the
> >state field yet, the sales_tax_region variable will not have the state in
> >it.  If they hit submit after filling in the state, there is no recalc
> >done on the page as far as I know.  Any help to get this problem solved
> >would be appreciated.
> 
> 	Really, it seems like you would have the best luck by using a multiple
> page check out.  It would take a little more effort, but would probably
> make complex situations like this one a bit easier to deal with.  Just my $.02

I found a trick to do this.  Add an "onChange" function to the _state_
entry and the page is reloaded when the user changes the state.  A bit
odd, but it does work fine as far as I can tell.

<INPUT onChange="this.form.submit()" TYPE="text" NAME="state"
VALUE="[value state]" size=8>

That does it.  The two page checkout was getting frustrating and my
management wasn't very happy because the existing system is not a two page
checkout.  They don't want to change too much look-n-feel too fast.

Best,
Kyle





Search for: Match: Format: Sort by: