MiniVend Akopia Services

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

RE: [mv] Multiple carts in one basket page... [quantity-name] pr ev ents this?



Ok, this actually works, i just have to specify the cart in every form, i.e.
                    [if items main]
                    [then]
                        [cart main]
                        <form action="[process-target secure=1]"
method=post>
                            <input type="hidden" name="mv_session_id"
value="[data session id]">
                            <input type="hidden" name="mv_cartname"
value="main">
                            <input type="hidden" name="mv_doit"
value="refresh">
                            <input type="hidden" name="mv_orderpage"
value="ord/basket">
                            <input type="hidden" name="mv_checkout"
value="ord/checkout">
                            <input type="hidden" name="mv_nextpage"
value="index">
                                    (display cart "main")
                        </form>
                    [/then]
                    [/if]
                    [if items rental]
                    [then]
                        [cart rental]
                        <form action="[process-target secure=1]"
method=post>
                            <input type="hidden" name="mv_session_id"
value="[data session id]">
                            <input type="hidden" name="mv_cartname"
value="rental">
                            <input type="hidden" name="mv_doit"
value="refresh">
                            <input type="hidden" name="mv_orderpage"
value="ord/basket">
                            <input type="hidden" name="mv_checkout"
value="ord/checkout">
                            <input type="hidden" name="mv_nextpage"
value="index">
                                    (display cart "rental")
                        </form>
                    [/then]
                    [/if]

However this also means I have two sets of buttons (although I put in some
statements to show the "Stop shopping" and "Check out" only once), and if
the user changes a quantity in the upper cart, but klicks on the lower
cart's "Recalculate" button, nothing will happen... But I guess that's life
;-)

Thanks for your help!

Regards,
Eric
> ----------
> From: 	jojo@buchonline.net[SMTP:jojo@buchonline.net]
> Sent: 	Donnerstag, 23. September 1999 09:55
> To: 	minivend-users@minivend.com
> Subject: 	Re: [mv] Multiple carts in one basket page...
> [quantity-name]  prev ents thi s?
> 
> ******    message to minivend-users from jojo@buchonline.net     ******
> 
>     Maybe, this can help you!
>     Use two forms and insert the main cart into the first form and the
>     second cart into the second form.
> 
> Regards,
> 
> Joachim
> 
> 
> On 22 Sep, Ryan Hertz wrote:
> >>Hi!
> >>
> >>I searched through the mail list archive, but didn't find a solution to
> my
> >>problem...
> >>
> >>I have two carts, one for purchases and one for rentals. The purchases
> one
> >>is the normal "main", the other one is called "rental", and I want them
> both
> >>on *the same* cart page. Now, in basket.html I have the following code
> >>(short version):
> >>
> [BIG SNIP]
> >>
> >>I read in the mail archive that if you put the Remove checkbox *after*
> the
> >>input field for quantity, it won't work, since MiniVend gets two CGI
> >>variables called quantity0 (for the first line), one with a value 1 (or
> >>whatever the quantity is) and another with the value 0 (from the Remove
> >>checkbox). Since it always takes the first value, the item isn't
> deleted.
> >>I figured that this could be my problem. When I look at the HTML code, I
> see
> >>the following:
> >>
> >>For basket "main":
> >>The Remove checkbox:
> >><input type=checkbox name="quantity0"
> >>onClick="this.form.action='http://whatever/cgi-bin/demo2/process?tImDLzp
> C;;3
> >>58', this.form.submit()" value=0>
> >>The quantity:
> >><input type="text" name=quantity0 value="1" size=3>
> >>
> >>For basket "rental":
> >>The Remove checkbox:
> >><input type=checkbox name="quantity0"
> >>onClick="this.form.action='http://whatever/cgi-bin/demo2/process?tImDLzp
> C;;3
> >>94', this.form.submit()" value=0>
> >>The quantity:
> >><input type="text" name=quantity0 value="1" size=3>
> >>
> >>Yeah, looks pretty much the same. So, if I change anything in the
> "rental"
> >>basket, it doesn't reflect and shows the quantity of the "main" basket
> >>instead. Just for fun, I put the "rental" basket before the "main"
> basket on
> >>the page. And now, if I change something in the "rental" basket, it
> reflects
> >>in the "main" basket.
> >>All of this is quite logical, once you see it.
> >>
> >>But my problem still isn't solved: How do I get different "quantity.."
> >>identifiers? Why doesn't MiniVend change to another identifier within a
> new
> >>cart? Do I have to do it by hand?
> > 
> > 	You probably would have better success if the <input>s did not have
> the
> > same 'name' regardless of which <form> they are contained in.  Just my
> guess.
> > 
> >>
> >>I'm glad for any help...
> >>
> >>Regards,
> >>Eric
> >>----------------------------------
> >>   Swisscom AG      		mailto:eric.lewis@swisscom.com
> >>   Informatik
> >>   Eric Lewis, CIT-AE-742
> >>   Postfach               		phone	+41-31/342 79 71
> >>   CH-3050 Bern       		fax	+41-31/342 90 69
> >>----------------------------------
> >>-
> > 
> > Ryan Hertz                                              tel
> 800-645-BAIT
> > Webmaster                                               fax
> 520-645-2588
> > Advertising Director
> http://www.insideline.net
> > Gary Yamamoto Custom Baits, Inc.
> http://www.yamamoto.baits.com
> > -
> 
> -- 
> Hans-Joachim Leidinger
> buch online                 jojo@buchonline.net
> Munscheidstr. 14            FAX: +49 209 1971449
> 45886 Gelsenkirchen
> 
> -
> 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: