![]() |
Simple dropdown loop to show subcategories
1 Attachment(s)
Hi there,
I'd like to have some very simple dropdown menus, but I'm stuck. So far the dropdowns are being created correctly, but I can't get them to list the subcategories as the options. Here's my code: Code:
{capture name=menu} And here's what it looks like: http://forum.x-cart.com/attachment.php?attachmentid=1598&stc=1&d=124839039 5 As you can see, the dropdown options are exactly the same as the main categories, rather than listing the subcategories. Can someone please tell me how to get the option values to get down into my subcategories? Thanks very much! Sunbreaks |
Re: Simple dropdown loop to show subcategories
Do you want to dispay subcategories of the current category or All the categories of your store?
|
Re: Simple dropdown loop to show subcategories
It is correctly showing the main categories as the select, but then I need it to show the subcategories of each in the option area of the drop down menu. Does that make sense?
|
Re: Simple dropdown loop to show subcategories
Hi there - still waiting to hear if anyone has a suggestion on this. Anyone?
Thanks, Sunbreaks |
Re: Simple dropdown loop to show subcategories
$subcategories is actually the subcategories of the current category, try $all_categories instead
|
Re: Simple dropdown loop to show subcategories
Thank you so much for the reply! I tried substituting $all_categories but I don't know exactly how to insert it in my code. Right now when I try using it nothing shows up. Of course this is harder because I want all categories and their subcategories to show on all pages, including the search results page. Can you offer any more advice?
Thanks again, Sunbreaks |
Re: Simple dropdown loop to show subcategories
I think you will need to add some code to the php in order to get this accomplished.
|
All times are GMT -8. The time now is 04:38 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.