Akopia Akopia Services

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

Re: [mv] Multiple Quantity MV4.4



******    message to minivend-users from Mike Heins <mikeh@minivend.com>     ******

Quoting Humberto T Reyes (htreyes@earthlink.net):
> 
> Greetings to all,
> 
> I have a small challenge that is driving me nuts--here I go:
> 
> 
> I have a link that will list all the products lets say they are widgets.
> There are 100 widgets this link goes to a result s page that list 14 widgets
> at a time.  The user can then enter the quantity they would like and then
> place them in the cart.  However if the user wants 20 widgets on results
> page number 1 and then goes to results page number 3 for a different
> widget--the original widget quantity/item is not placed in the cart when the
> user submits the order to the cart.
> 
> Is there any way for me to keep track of what item they wanted on the
> previous page so that they can all make it into the cart?
> 
> Any ideas welcome!!

I know of several ways to solve this situation, none perfect. We
need more information on the navigation method, though, before
we can go further. If you want them to be able to random_access
search pages on Minivend [more-list] things, it would be quite
difficult to do. 

There is a simple method which relies on JavaScript:

	[set combine]
	    mv_order_quantity==[cgi mv_order_quantity]
	[/set]
	[search-region]
	[search-list]
	<FORM METHOD=POST ACTION="[process]">
	<INPUT TYPE=hidden NAME=mv_todo VALUE=refresh>
	<INPUT TYPE=hidden NAME=mv_click VALUE=combine>
	<INPUT TYPE=hidden NAME=mv_nextpage VALUE="ord/silentbasket">
	<INPUT TYPE=hidden NAME=mv_order_item VALUE="[item-code]">
	<INPUT NAME=mv_order_quantity
		onChange="this.form.submit()"
		SIZE=3
		VALUE="">
	</form>
	[/search-list]
	[/search-region]

Then put in pages/ord/silentbasket.html

[tag op=header]
Status: 204 Not modified
[/tag]

The effect of this is that every time the user changes the quantity
of the box, that number of that widget gets placed in the cart.
The ord/nobasket page returns a 204 status, so no page refresh
is done.

-- 
Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.8220 fax 7501 <heins@akopia.com>

I have a cop friend who thinks he ought be able to give a new ticket;
"too dumb for conditions".
-
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: