Akopia Akopia Services

[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 "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


Search for: Match: Format: Sort by: