[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 Chris =?iso-8859-1?Q?M=FCller?= <cmueller@polinet.ch> ******
I think that if you quote the [nitems], Perl makes it into a string and your comparison fails.
Chris
Stewart McCullough wrote:
> ****** message to minivend-users from Stewart McCullough <stewart@yixing.com> ******
>
> 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]
>
> If the above approach is heading in the wrong direction, 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?
>
> Any help is appreciated...
>
> thanks,
>
> 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
-
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