[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: testing for total number of items in cart
****** message to minivend-users from Stewart McCullough <stewart@yixing.com> ******
Stewart McCullough wrote:
> I can't figure out how to get something like this to work:
>
> [if explicit]
> [condition]
> return 1 if '[nitems]' > 6;
> return 0;
> [/condition]
> too many
> [else]
> okay
> [/else]
> [/if]
here's a solution that works:
[if type=explicit compare="[calc] [nitems] > 6 [/calc]"]
greater than 6
[else]not greater than 6[/else]
[/if]
Stewart
===================================================
Montana Banana Web Design (http://www.montanab.com)
YiXing.com Chinese Teapots (http://www.yixing.com)
206-322-2435
-
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