Log in

View Full Version : Merge text list into dropdown menu



donnythed
01-21-2016, 05:51 PM
hi. the code below creates a textual list of category items on our webpage. the code is default of the shopping cart, however i'd prefer the text categories be contained in a dropdown menu. anyone know how to do that?


<!--START: SUB_CATEGORIES-->
<div id="subcategoriesBlock">
<div class="titles">[category_Header-subcategories]</div>
<div class="sub-categories-format">
<!--START: SUB_CATEGORIES_FORMAT-->
<li>
<div class="sub-categories">
<a href="view_category.asp?cat=[CATID]">
<!--START: SUB_CATEGORY_IMAGE-->
<span class="img"><img src="[SUB_CATEGORY_IMAGE]" title="[SUB_CATEGORY_NAME]"/> </span>
<!--END: SUB_CATEGORY_IMAGE-->


<!--START: SUB_CATEGORY_NAME-->
<span class="name"><U><font size=1><sup><font color=#045FB4><B>[SUB_CATEGORY_NAME] </u> </font></font> </span>
<!--START: SUB_CATEGORY_NAME--></a>
<div class="desc">[SUB_CATEGORY_DESCRIPTION]</div>
</div>
</li>


<!--END: SUB_CATEGORIES_FORMAT-->
</div>
</div>

Beverleyh
01-21-2016, 10:28 PM
First you would source a dropdown menu that you like the look of - you can find lots if you do a Google search, or try searching the DD library here http://www.dynamicdrive.com/dynamicindex1/index.html

Then install it on your website to make sure it works as expected using placeholder text.

Lastly, transfer your own category links to the menu.

You say you're using a shopping cart so you might need to research to find out which template files to edit - asking in the forums of whatever shopping cart script/plugin you're using is usually a good place.

donnythed
01-23-2016, 09:52 PM
Thanks for the suggestions!