Akopia Akopia Services

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

Re: [mv] Limiting Quantity



******    message to minivend-users from ".cory.trese." <digital@specialty-books.com>     ******

What if...

Could you set something like this inside the quantity box? (such as....)

<input type="text" name=[quantity-name] value="[if [item-quantity] >
[item-field maxquant]][item-field maxquant][else][item-quantity][/else][/if]"
size=3 onChange="this.form.submit()">

see what I'm getting at?  I know it's in old style tags, easier to do concept
code in them.  in above, the idea is that the user cannot change the value of
[item-quantity] without forcing a page refresh, this triggering the [if]
statement that tests [item-quantity] to see if it is greater than an arbitrary
item field (or even a database lookup, I guess) then it sets the value to the
maximum allowed.

This might not work, but it's a free idea ;)~

cory



On Wed, 02 Feb 2000, you wrote:
>******    message to minivend-users from "Mr. Christopher F. Miller" <cfm@maine.com>     ******
>
>
>
>Yes, you can iterate through the @item array and set it.  We do
>that with "virtual" items built on the fly.  I don't know if 
>you can do it in vanilla [tag]s but it's not too hard in perl.  You
>could write a user tag.
>
>
>On Wed, Feb 02, 2000 at 04:06:31PM -0800, Richard Russo wrote:
>> ******    message to minivend-users from Richard Russo <richardr@dgx.net>     ******
>> 
>> Is it possible to check if the quantity of a certain item in the cart is
>> over a certain number, and if so set it to the maximum value?
>> 
>> (for something like a limit 2 per customer for such and such an offer)
>> 
>> Richard Russo
>> DGX InterNET
>> -
>> 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
>
>-- 
>
>Christopher F. Miller, Publisher                             cfm@maine.com
>MaineStreet Communications, Inc         208 Portland Road, Gray, ME  04039
>1.207.657.5078                                       http://www.maine.com/
>Database publishing, e-commerce, office/internet integration, Debian linux.
>-
>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
--
Cory Trese 

email : digital@specialty-books.com
fone : (740) 594 - 2274, ext 223
phax : (740) 593 - 3045
========================================
Specialty Books,
Athens Ohio, 45701
www.specialty-books.com

linux!
-
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: