MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: if [nitems] > 6



******    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]
> 
> Is there another way to access the total number of items in the shopping cart
> besides [nitems]?  How do I do some sort of test/if on the number of items?

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


Search for: Match: Format: Sort by: