PDA

View Full Version : Drop down list in checkout?


TraceyHand
24-Nov-2003, 09:41 AM
OK, I have an easy question for your more experienced folk (grovel grovel ;) )

Firstly, I'd like to put a drop down box in one of my user defined fields at the checkout. User Definable one (after delivery details, before payment) currently asks "How did you find our site?"
I'd like it to present the customer with a drop-down list of options and, if they select "other" I'd ideally like them to be able to type in details for this.
Did that make sense? So they can select a source from the list or select "other" which will them prompt them to type where exactly (if, indeed, they know!!)
Is this possible?
I do have a drop-down list at Budget Bumps but I'm using V5 (a BB) so don't want to just attempt to pick out the right html when I have no clue about it really!
Thanks in advance!
Tracey

jxm28788
24-Nov-2003, 12:43 PM
I'd be interested in this too...

zmagyar
24-Nov-2003, 03:34 PM
Actually my (Actinic's default) Act_Order02.html template contains the following commented out lines: <!-- Use the HTML below to have a drop-down for the 'How did you find our site?' -->
<!--
<TR>
<td bgcolor="NETQUOTEVAR:CHECKOUTBG"><FONT FACE="ARIAL" SIZE="2">NETQUOTEVAR:GENERALPROMPT000</FONT></TD>
<td bgcolor="NETQUOTEVAR:CHECKOUTBG"><FONT FACE="ARIAL" SIZE="2">
<SELECT NAME="GENERALHOWFOUND"> <OPTION SELECTED>Please select:
<OPTION VALUE="Search Engine">Search Engine
<OPTION VALUE="Magazine">Magazine
<OPTION VALUE="Other">Other
</SELECT>
</FONT></TD>
</TR>
//-->Is this what you would like to achieve?

Regards,

TraceyHand
24-Nov-2003, 04:22 PM
Thanks but I think I've deleted something I shouldn't have coz it displays wrong now.

If you see attached, how do I get the line above the drop down list not to appear?
If I remove user definable 1 from the general tab in "display, text" Phase 4 Id 0 it doesn't show that line OR the drop down.
I've tried it checked and unchecked, is it something I've missed in the html (Act_Order_02), something I've deleted?
I'll paste a section that I've altered.

<td bgcolor="NETQUOTEVAR:CHECKOUTBG">NETQUOTEVAR:GENERALPROMPT000</td>
<td bgcolor="NETQUOTEVAR:CHECKOUTBG">
<input type="TEXT" name="GENERALHOWFOUND" size="40" maxlength="255" value="NETQUOTEVAR:GENERALHOWFOUND">
</td>
</tr>
<!-- Use the HTML below to have a drop-down for the 'How did you find our site?' -->

<TR>
<td bgcolor="NETQUOTEVAR:CHECKOUTBG"><FONT FACE="ARIAL" SIZE="2">NETQUOTEVAR:GENERALPROMPT000</FONT></TD>
<td bgcolor="NETQUOTEVAR:CHECKOUTBG"><FONT FACE="ARIAL" SIZE="2">
<SELECT NAME="GENERALHOWFOUND"> <OPTION SELECTED>Please select:
<option>Previous Customer</option>
<option>Budget Bumps Customer</option>
<option>Personal Recommendation</option>
<option>Ask Alix Website</option>
<option>MothersBliss.com Website</option>
<option>BritishMailOrder.com Website</option>
<option>Yahoo Directory</option>
<option>Google Ad</option>
<option>Other Search engine</option>
<option>Online Shopping Directory</option>
<option>Mother & Baby Magazine Advert</option>
<option>Mother & Baby Magazine Article</option>
<option>Pregnancy & Birth Magazine Advert</option>
<option>Pregnancy Magazine Advert</option>
<option>Pregnancy Magazine Article</option>
<option>Pregnancy & Birth Magazine Article</option>
<option>Junior Magazine Article</option>
<option>UKParents Website Link</option>
<option>BabySoon Website Link</option>
<option>Yahoo Auctions</option>
<option>Seen a Budget Bumps Flyer</option>
<option>Other Website Link</option>
<option>Can't Remember</option>
</SELECT>
</FONT></TD>
</TR>

NETQUOTEDEL:GENERALPROMPT000

It all works ,but still displays the line above (the user definable 1, Design, Text, Phase 4, Id 0) also.

I'll be something I've done, I'm sure. Can anyone see it?
Thanks,
Tracey

TraceyHand
24-Nov-2003, 04:26 PM
Just figured it out (trial and error and much saving to notepad, just in case..lol)
Am not as stupid as I look ;)
Thanks again
Tracey

mash
04-Apr-2005, 08:35 AM
Hi Tracey,

I have been asked to add a similar thing with a drop down list "How did you find our site?" question.

You said that you had a problem, and then you fixed it, if you can remember how did you do it?

You wanted "Other" and allow people to type in, was this possible or not worth trying?

Can you make the filling out this field a required field?

Thanks M

Nadeem
06-Apr-2005, 08:24 AM
Hi Mash

Simply open your "Act_Order02.html" template and you will have the following:


<!-- Use the HTML below to have a drop-down for the 'How did you find our site?' -->
<!--
<TR>
<td bgcolor="NETQUOTEVAR:CHECKOUTBG"><FONT FACE="ARIAL" SIZE="2">NETQUOTEVAR:GENERALPROMPT000</FONT></TD>
<td bgcolor="NETQUOTEVAR:CHECKOUTBG"><FONT FACE="ARIAL" SIZE="2">
<SELECT NAME="GENERALHOWFOUND"> <OPTION SELECTED>Please select:
<OPTION VALUE="Search Engine">Search Engine
<OPTION VALUE="Magazine">Magazine
<OPTION VALUE="Other">Other
</SELECT>
</FONT></TD>
</TR>
//-->


Simply uncomment this line and rename the options to what you want. If you want to add in more options into the dropdown list, simply insert the line:

<OPTION VALUE="More details">More Details.

You can make this a required field, by going into "Design | Text | Web Site (Cont)" and put a tick for "User Definable 1"

Kind Regards

mash
06-Apr-2005, 09:01 AM
That is superb, I did get to the list bit and worked that but now I have completed it.

The only problem is that text font/size seam to be different between each question under General Information, where can I standardize this.

Thanks though, as I said superb. Mash

Nadeem
06-Apr-2005, 09:49 AM
Hi Mash,

You should see the <FONT FACE="ARIAL"> tags on these, try changing these to <span class="actregular"> or whatever you would like them to be.

Kind Regards

mash
07-Apr-2005, 08:12 AM
That has worked a treat thank you.

marc-man
08-Jun-2005, 09:50 AM
Hi Mash

Simply open your "Act_Order02.html" template and you will have the following:


<!-- Use the HTML below to have a drop-down for the 'How did you find our site?' -->
<!--
<TR>
<td bgcolor="NETQUOTEVAR:CHECKOUTBG"><FONT FACE="ARIAL" SIZE="2">NETQUOTEVAR:GENERALPROMPT000</FONT></TD>
<td bgcolor="NETQUOTEVAR:CHECKOUTBG"><FONT FACE="ARIAL" SIZE="2">
<SELECT NAME="GENERALHOWFOUND"> <OPTION SELECTED>Please select:
<OPTION VALUE="Search Engine">Search Engine
<OPTION VALUE="Magazine">Magazine
<OPTION VALUE="Other">Other
</SELECT>
</FONT></TD>
</TR>
//-->


Simply uncomment this line and rename the options to what you want. If you want to add in more options into the dropdown list, simply insert the line:

<OPTION VALUE="More details">More Details.

You can make this a required field, by going into "Design | Text | Web Site (Cont)" and put a tick for "User Definable 1"




Just for future reference: To make the drop down a required field you also need to remove the line: '<OPTION SELECTED>Please select:' and replace with <OPTION>. If you do not replace this then the option of Please Select will be used as the required field text when an option has not been selected by the user.

The 'User Definable 1' mentioned above is (Phase: 4 ID: 0). To change the 'General Information' heading go to (Phase: -1 ID: 151)

dgf
01-Feb-2006, 11:51 AM
i have done the above but i still have 2 problems, i now have 2 how did you find our sites on the page one with a box to fill in and the other with the pull down list
the one with the pull down list is still in a different font.

thanks
damien

wjcampbe
01-Feb-2006, 09:33 PM
Remove the face="Arial" from the code shown above and the box will inherit the default font you are using. Just realised I am basically repeating what Nadeem said in post #9 :)

Comment out the code for the standard text box 'how did you find.." with <!-- including a space after the second hyphen before the code and --> including a space before the first hyphen.

angieb
07-Jun-2006, 11:34 AM
Hi,

I have added a dropdown list of options to my checkout, but i want to add a type box so that the user can add in a description if they chose 'other' from the drop down.

Is there a way to do this?

Cheers
Angie

cdicken
12-Jun-2006, 09:15 AM
Hi Angela

Are you using the 'User Definable 3' field for anything? You can check this by going to 'Design | Text | Web Site (cont) | General Information'. You can use this field as an 'Other' field.

mash
12-Jun-2006, 09:43 AM
Hi Angie,

That is what i have done, people can type in what they like. Works well when people use it, we keep it as opional.

Our lists have become pretty long, wondering if it is possible to represent this as a radio button format, or check boxes.

Any suggestions would be appreciated, kind regards Mash

cdicken
14-Jun-2006, 08:12 AM
The answer to that is a big yes. All you need to do is edit the code of the drop-down list in Act_Order02.html so that rather than looking like this:

<SELECT NAME="GENERALHOWFOUND">
<OPTION SELECTED>Please select:
<OPTION VALUE="Search Engine">Search Engine
<OPTION VALUE="Magazine">Magazine
<OPTION VALUE="Other">Other
</SELECT>

it looks like this:

<input type="radio" name="GENERALHOWFOUND" value="Search Engine" />Search Engine<br />
<input type="radio" name="GENERALHOWFOUND" value="Magazine" />Magazine<br />
<input type="radio" name="GENERALHOWFOUND" value="Other" />Other<br />

mash
21-Jun-2006, 12:41 PM
Thank you I will try that after my holiday, cheers Mash