[ic] Re: Adding non-taxable OnFly objects to cart

Kevin Walsh kevin at cursor.biz
Fri Oct 10 15:34:14 EDT 2003

Mike Heins [mike at perusion.com] wrote:
> Quoting David Schnardthorst (daves at wavesco.com):
> > I have been able to add OnFly items to a shopping cart, for the purpose
> > of allowing our customers to pay invoices online.  The problem is that
> > the OnFly item is getting sales tax tacked on during the checkout
> > process.  I have tried the following code:
> > 
> (Interesting note -- this was flagged as spam by SpamAssassin, probably 
> because of the JavaScript.) 
My SpamAssassin setup scored David's article at only 0.7, matching the
following tests: HTML_40_50, HTML_MESSAGE and HTML_TAG_BALANCE_TABLE.
The article didn't get flagged as spam, on my setup, because of its low

Your article scored 0.0, Mike, as do most of the articles I receive from
this list.

> >
> > I have also
> > tried setting a variable of mv_nontaxable to 1 as well (again still in
> > the code).  Does anybody have something like this that is working, or
> > can you provide some thoughts on how to make it work?
> >
> The other thing you can do is to set the mv_nontaxable attribute
> in the item. You need to read up on how to set attributes in
> OnFly -- I believe I designed in a mechanism to do that and
> even documented it.
That's right.  The OnFly subroutine returns a fully-setup item
hashref, so you'd simply set the mv_nontaxable key, as appropriate,
before returning the reference.

David, if you're using the default OnFly mechanism then you should
create your own instead, so that you can code it to do what you need.
For instance, you shouldn't be specifying the price in your
"mv_order_fly" variable; the tag should work out the price for itself,
based upon whatever criteria you code into your UserTag.

If you really must use the default mechanism then the following will
probably work:

    <input type="hidden" name="mv_order_fly" value="description=Invoice Web Payment|price=0|mv_nontaxable=1">

   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin at cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/

More information about the interchange-users mailing list