Akopia Akopia Services

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

Re: [mv] Order form setup



******    message to minivend-users from Marty Vance <mvance@lwm.com>     ******

Ryan Hertz wrote:

> ******    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.

That's why I'm referencing it through the elements[] array of the form.  I know what the
index is.

>
>
> >     <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?

Javascript is being used because the big  image-swap/form element changes are driven by
the user on the client side.
The page shows the art in a table, with 4 other images that change as the user browses
the frames.  (I'd post the url, but the dns isn't set up yet).  Also, all the databases
are arbitrary SQL.  My prices are in a separate table from the art & frames.

>
>
> 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.

The number of frames available depends on the art.

>
>
> >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


Search for: Match: Format: Sort by: