Forum Moderators: open

Message Too Old, No Replies

Form Question

Order Form and totals

         

dave_h

1:07 am on Mar 31, 2005 (gmt 0)

10+ Year Member



Can someone tell me if it is possible to make this form to allow the customer to purchase one of each color or two of any one color, only for a total of two? What would I have to do to make that work or is there a form to make that possible?

<Sorry, no personal URLs.
See Terms of Service [webmasterworld.com]>

Thanks

Dave

[edited by: tedster at 1:35 am (utc) on Mar. 31, 2005]

coopster

1:21 am on Mar 31, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I would probably do three things here.

First, tell your potential customer about the limitation with some form of verbiage on the display.

Second, use javascript to perform some client-side validation and alert your buyer of any issues.

Lastly, perform the same client-side editing on the server-side. For those that don't have javascript enabled in their browser, but also to prevent any spoofing that might occur.

dave_h

1:33 am on Mar 31, 2005 (gmt 0)

10+ Year Member



Yes I also did think of those options but I don't know javascript. I will try looking for some ready made scripts and edit the one I like if I can find one.

Thanks
Dave

dave_h

1:48 am on Mar 31, 2005 (gmt 0)

10+ Year Member



The form in question is only allowing customers to select up to 2 items for each product but they only want the customers to purchase a total of two items only because of their merchant account limitations.

So the form drop down options at the moment for backpack grey is 1 or 2

For the black one it's the same thing 1 or 2

So of course that will make them be able to purchase up to four items.

Since the url example was removed I am trying to explain in case someone else can help.

thanks
dave

dave_h

1:48 pm on Mar 31, 2005 (gmt 0)

10+ Year Member



Ok I figured it out. I will use radio buttons. Been so long I forgot about them.

Thanks
Dave