[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Minimum Purchase based on [subtotal]
****** message to minivend-users from "March Roseland" <march@uia.net> ******
Thanks, and shoot -- I was afraid of that. I tried noformat=1, even though
it isn't documented for the [subtotal] tag, but no dice. I just tried
adding interpolate=1 in the various tags involved, also, but that didn't
seem to help either. noformat=1 definitely works in [subtotal] though, so
that seems like it must be part of the puzzle.
Having played with it some more, I've shown that it does work if I set
$subtot directly to a value, such as 40, 7, or 150, instead of to [subtotal
noformat=1]. This seems to imply that [subtotal noformat=1] isn't being
seen as a number, though it does come up as one if I use it elsewhere in the
page (i.e., if I add noformat=1 to the basic subtotal in the list of items
at the top of the page). interpolate=1 doesn't help in [subtotal],
[condition], or [if explicit], or any combination of the three. Any
suggestions on persuading this snippet that [subtotal noformat=1] is in fact
a number? Continuing thanks for any ideas!
-- March Roseland
----- Original Message -----
From: <kyle@invisio.com>
To: <minivend-users@minivend.com>
Sent: Monday, May 08, 2000 7:07 PM
Subject: Re: [mv] Minimum Purchase based on [subtotal]
> ****** message to minivend-users from "kyle@invisio.com"
<kyle@invisio.com> ******
>
> March,
>
> The [subtotal] tag will return a number with a dollar sign, so it will
> never be "greater than" 0.
>
> try [subtotal noformat=1] instead
>
> I don't use the [condition] tag much, so I don't know if you will need
> add the interpolate=1 to it or not.
>
> Kyle (KC)
>
> At 03:53 PM 5/8/00 -0700, you wrote:
> >****** message to minivend-users from "March Roseland" <march@uia.net>
> > ******
> >
> >Hello, all,
> >
> > I'm not sure why this doesn't work... it may be blatantly obvious.
If
> >so, please let me in on it! Perl is not my area of expertise. I based
this
> >on the documentation for [if explicit] and the solutions I found in the
mail
> >list archive for setting minimum purchase prices:
> >
> >[if explicit]
> >[condition]
> > $subtot = [subtotal];
> > return 1 if $subtot >= 25;
> > return 0;
> >[/condition]
> ><B><INPUT TYPE=submit NAME=mv_click VALUE="[L]Place Order![/L]"
> >onClick="fix_tax(this.form)"></B>
> >[else]
> ><font color="660000"><B><BR>You must make a minimum purchase of $25.
Please
> >add to your order.</b></font><br><BR>
> >[/else]
> >[/if]
> >
> <SNIP>
> -
> 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