[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: how to calculate shipping tax?
On Wed, 16 Jun 1999, Tim Shea wrote:
> Hi Kyle,
>
> I haven't run into this problem before, so I'm not 100% sure this will work,
> but I assume you only want to charge tax to certain US states. If this is
> the case, on foreign countries, don't display the shipping city state and
> zip fields. Make up your own and put them on receipt.html and report.html.
> (Of course in checkout.html too.) Then just do a comparison:
>
> [if country eq 'US']
> # display/request US csz
> [else]
> # display/request non-US csz
> [/else]
> [/if]
>
> >How do I get sales tax to trigger only when the country and the state
> >match the criteria?
Hmm, that would be considerably more complex than I would like :-(
Most of our sales are overseas. So, whatever solution I come up with
should work for everyone. My thought was to create another variable that
had the country code and state combined:
US_CA
would be for California in the US. That way, countries that matched such
as Canada (CA) wouldn't accidentally trigger the system.
A little bit of perl on the checkout page should suffice to produce
this... I think :-)
Then, if I key the sales tax to this new variable the sales tax will only
be calculated on this combination of country and state.
I'll try it and report back...
Best,
Kyle