X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Sub-Categories in Advanced Search Dropdown??? (https://forum.x-cart.com/showthread.php?t=10622)

ProjectShadow 11-29-2004 06:53 AM

Sub-Categories in Advanced Search Dropdown???
 
Okay, where do I channge the bolded loop to list subcategories in the dropdown as well?

Code:

<select name="in_category">
<option value="">All</option>

{section name=cat_num loop=$categories}<-------------- Need to edit the SQL Select for this loop

<option value="{ $categories[cat_num].categoryid}" {if $smarty.get.in_category eq $categories[cat_num].categoryid or $cat eq $categories[cat_num].categoryid}selected{/if}>{$categories[cat_num].category|escape}</option>
{/section}
</select>


Any help is appreciated, because as it stands now the drop-down is only displaying the top-level categories.

shan 11-29-2004 07:00 AM

moved, read the stickies !!

ProjectShadow 11-29-2004 10:16 PM

I changed the title so it makes a little more sense what I'm trying to do.

ProjectShadow 11-30-2004 11:11 AM

Anyone?

ProjectShadow 12-01-2004 09:34 AM

TTT


All times are GMT -8. The time now is 11:21 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.