Announcement

Collapse
No announcement yet.

Help with Manufacturer drop down

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help with Manufacturer drop down

    Hi,

    Wondering if someone with more code knowledge could help me. I'd like to have my manufacturer shown in a drop down list. I have the code from a 3d template that has one but for some reason cant get it to work with the formatting on my current template. Here is the code for the down down that I would like to incorporate...

    <!--START: LEFT_BAR_BLOCKS--><!--START: FRAME_MANUFACTURER-->
    <table width="100%" cellspacing="0" cellpadding="0" border="0">
    <form name="mfg" id="mfg" method="get" action="search_groups.asp" style="margin: 0px; padding: 0px;">
    <tr>
    <td class="menu-headers" align="left">[frame_manufacturer]</td>
    </tr>
    <tr>
    <td align="center" valign="middle" height="50"><select name="manf" onChange="this.form.submit();" id="Select1" class="txtBoxStyle" style="width:140px;">
    <option value=0 selected class="txtBoxStyle">Manufacturer</option>
    <!--START: manufacturer_format-->
    <option value=[mfgid]>[manufacturer]</option>
    <!--END: manufacturer_format-->
    </select></td>
    </tr>
    </form>
    </table>
    <div><img src="assets/templates/common/images/spacer.gif" width="1" height="15" alt=""></div>
    <!--END: FRAME_MANUFACTURER-->

    And here is my current code...

    <!--START: FRAME_MANUFACTURER-->
    <table width="195" cellspacing="0" cellpadding="0" border="0">
    <tr>
    <td class="menu-headers">[frame_manufacturer]</td>
    </tr>
    <tr>
    <td class="mod_bg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td><img src="assets/templates/[template]/images/spacer.gif" width="1" height="20" alt=""></td>
    </tr>
    <!--START: manufacturer_format-->
    <tr>
    <td><a href="search_groups.asp?manf=[mfgid]" class="cat">[manufacturer]</a></td>
    </tr>
    <!--END: manufacturer_format-->
    <tr>
    <td><img src="assets/templates/[template]/images/spacer.gif" width="1" height="20" alt=""></td>
    </tr>
    </table></td>
    </tr>
    </table>
    <div><img src="assets/templates/[template]/images/spacer.gif" width="1" height="8" alt=""></div>
    <!--END: FRAME_MANUFACTURER-->

    Thanks in advance guys and girls. I really appreciate the help.

  • #2
    Give this a try
    Code:
    <!--START: FRAME_MANUFACTURER-->
    <table width="195" cellspacing="0" cellpadding="0" border="0">
    <form name="mfg" id="mfg" method="get" action="search_groups.asp" style="margin: 0px; padding: 0px;">
    <tr>
    <td class="menu-headers">[frame_manufacturer]</td>
    </tr>
    <tr>
    <td align="center" valign="middle" height="50"><select name="manf" onChange="this.form.submit();" id="Select1" class="txtBoxStyle" style="width:140px;">
    <option value=0 selected class="txtBoxStyle">Manufacturer</option>
    <!--START: manufacturer_format-->
    <option value=[mfgid]>[manufacturer]</option>
    <!--END: manufacturer_format-->
    </select></td>
    </tr>
    </form>
    </table>
    <div><img src="assets/templates/[template]/images/spacer.gif" width="1" height="8" alt=""></div>
    <!--END: FRAME_MANUFACTURER-->
    I can't see the results so also try
    Code:
    <!--START: FRAME_MANUFACTURER-->
    <table width="195" cellspacing="0" cellpadding="0" border="0">
    <form name="mfg" id="mfg" method="get" action="search_groups.asp" style="margin: 0px; padding: 0px;">
    <tr>
    <td class="menu-headers">[frame_manufacturer]</td>
    </tr>
    <tr>
    <td class="mod_bg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td><img src="assets/templates/[template]/images/spacer.gif" width="1" height="20" alt=""></td>
    </tr>
    <!--START: manufacturer_format-->
    <tr>
    <td align="center" valign="middle" height="50"><select name="manf" onChange="this.form.submit();" id="Select1" class="txtBoxStyle" style="width:140px;">
    <option value=0 selected class="txtBoxStyle">Manufacturer</option>
    <!--START: manufacturer_format-->
    <option value=[mfgid]>[manufacturer]</option>
    <!--END: manufacturer_format-->
    </select></td>
    </tr>
    </form>
    <tr>
    <td><img src="assets/templates/[template]/images/spacer.gif" width="1" height="20" alt=""></td>
    </tr>
    </table></td>
    </tr>
    </table>
    <div><img src="assets/templates/[template]/images/spacer.gif" width="1" height="8" alt=""></div>
    <!--END: FRAME_MANUFACTURER-->
    Good Luck!
    .
    Clayton
    Go Live Industries

    Comment


    • #3
      Thanks! I'll try both of these out today and let you know.

      Comment


      • #4
        A drop down is classified as a "form" in HTML, so you have to have all of the associated form tags in order for it to work. (the <form> tag, the <select> tag)

        Comment


        • #5
          Originally posted by piaf View Post
          A drop down is classified as a "form" in HTML, so you have to have all of the associated form tags in order for it to work. (the <form> tag, the <select> tag)
          So are you saying the <form> tags I used will not work or miss placed?
          .
          Clayton
          Go Live Industries

          Comment


          • #6
            Originally posted by Go Live View Post
            So are you saying the <form> tags I used will not work or miss placed?
            I was referring to the original post by can_man in my reply. He didn't have any form tags in his "current code" example he posted.

            Comment


            • #7
              Piaf
              Maybe you can assist by confirming one of the codes I placed above or submit your version.
              Thanks for your time!
              .
              Clayton
              Go Live Industries

              Comment


              • #8
                Now that I'm at my desk The second code posted above should be changed to:
                Code:
                <!--START: FRAME_MANUFACTURER-->
                <table width="195" cellspacing="0" cellpadding="0" border="0">
                <form name="mfg" id="mfg" method="get" action="search_groups.asp" style="margin: 0px; padding: 0px;">
                <tr>
                <td class="menu-headers">[frame_manufacturer]</td>
                </tr>
                <tr>
                <td class="mod_bg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                <td><img src="assets/templates/[template]/images/spacer.gif" width="1" height="20" alt=""></td>
                </tr>
                <!--START: manufacturer_format-->
                <tr>
                <td align="center" valign="middle" height="50"><select name="manf" onChange="this.form.submit();" id="Select1" class="txtBoxStyle" style="width:140px;">
                <option value=0 selected class="txtBoxStyle">Manufacturer</option>
                <!--START: manufacturer_format-->
                <option value=[mfgid]>[manufacturer]</option>
                <!--END: manufacturer_format-->
                </select></td>
                </tr>
                <tr>
                <td><img src="assets/templates/[template]/images/spacer.gif" width="1" height="20" alt=""></td>
                </tr>
                </table></td></form>
                </tr>
                </table>
                <div><img src="assets/templates/[template]/images/spacer.gif" width="1" height="8" alt=""></div>
                <!--END: FRAME_MANUFACTURER-->
                You will need to decide which looks best.

                Enjoy!
                .
                Clayton
                Go Live Industries

                Comment


                • #9
                  Thanks all.

                  Go live the first one you posted worked well but i lost my background image. The others seemed to repeat the drop down box and each box had one manufacturer it. How do you think i should add the background back in?

                  Thanks.

                  Comment


                  • #10
                    Sorry missed the BG image. That is why I did the second one without seeing and testing wasn't sure what you may of replaced with the spacer.gif.
                    Anyway give this a try!

                    Code:
                    <!--START: FRAME_MANUFACTURER-->
                    <table width="195" cellspacing="0" cellpadding="0" border="0">
                    <form name="mfg" id="mfg" method="get" action="search_groups.asp" style="margin: 0px; padding: 0px;">
                    <tr>
                    <td class="menu-headers">[frame_manufacturer]</td>
                    </tr>
                    <tr>
                    <td class="mod_bg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                    <td align="center" valign="middle" height="50"><select name="manf" onChange="this.form.submit();" id="Select1" class="txtBoxStyle" style="width:140px;">
                    <option value=0 selected class="txtBoxStyle">Manufacturer</option>
                    <!--START: manufacturer_format-->
                    <option value=[mfgid]>[manufacturer]</option>
                    <!--END: manufacturer_format-->
                    </select></td>
                    </tr>
                    </form>
                    </table>
                    <div><img src="assets/templates/[template]/images/spacer.gif" width="1" height="8" alt=""></div>
                    <!--END: FRAME_MANUFACTURER-->
                    .
                    Clayton
                    Go Live Industries

                    Comment


                    • #11
                      I'm a newbee and looking to do the same. Where do you put this code to have it show up in the left navigation, in a template or in the Global Left Banner? If Template, which template?

                      ---- Never Mind, I got it. Found the frame.html template which has the code already installed, just had to uncomment the required code and remove the unused code.

                      Thanks
                      Dan
                      Last edited by perfumemart; 07-12-2011, 10:35 PM.
                      Dan Goldman
                      www.perfumemart.com

                      Comment

                      Working...
                      X