[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Order form setup
****** message to minivend-users from Ryan Hertz <rhertz@gyb.baits.com> ******
At 05:47 PM 1/26/2000 , you wrote:
>****** message to minivend-users from Marty Vance
><mvance@lwm.com> ******
>
>I have a form which submits an order_group. The master item in the
>group is selected through catalog browsing, and the sub item is chosen
>through javascript in the browser (amazingly, this is an art/frame
>situation, as referenced in the docs). My form starts out:
>
><form name="pricing" ACTION="[process-target]" METHOD=POST
>onSubmit="setOrder();">
> <input type="hidden" name="mv_todo" value="default refresh">
> <INPUT TYPE=hidden NAME=mv_order_group VALUE="1">
> <INPUT TYPE=hidden NAME=mv_order_item VALUE="[scratch art]">
> <INPUT TYPE=hidden NAME=mv_order_item VALUE="">
Wouldn't having two mv_order_items potentially cause some trouble
with your script? I'm not a Javascript Wizard, but it seems like you would
have to be certain to modify the second instance.
> <input type="hidden" name="mv_orderpage" value="catalog">
>
>Later in the form there is a field with the item code for the sub item
>(the frame):
>
> <input type="text" name="frame_id" value="0000" size="3"
>readonly>
Wow, I didn't know that 'readonly' was an argument to an input.
>"0000" is the default value of the field, and changes when the frame is
>selected. The function setOrder() changes the value of the second
>mv_order_item to the value of frame_id. The form submits and takes me
>back to the catalog page, but when I try to view the cart contents I
>get:
>
>Requested Product Unavailable
>
>We are sorry, but the product (unspecified error) that you requested is
>not now available. You can still browse our catalog, if
>you wish.
I'm not sure why you're using Javascript -- isn't there a Minivend-based
method for accomplishing this?
I take it you have a limited number of frames that match the artwork? You
might be better off looping through a 'frames' field for each piece (like
one would do for color or size) and then look into how Minivend will modify
a price based on the options.
>Also, I'm pretty sure this will not set the price right, as the correct
>price is determined by selecting a size in the form.
>
>Any ideas out there?
>
>
>Marty Vance
>LiveWire
>mvance@lwm.com
>www.lwm.com
>
>
>
>-
>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
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
-
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