| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Simple dropdown loop to show subcategories | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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:
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
__________________
4.1.10 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Do you want to dispay subcategories of the current category or All the categories of your store?
__________________
Regards, Victor Dubiniuk X-Cart Skins Store ![]() - twenty two different skins for 4.1.x and 4.2.x; - 4.3.x compatible versions are available; - refresh you store now! Smart menu X-Cart add-on for 4.1.8 - 4.3.x Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x |
|||||||||
#3
|
|||||||
|
|||||||
![]() 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?
__________________
4.1.10 |
|||||||
#4
|
|||||||
|
|||||||
![]() Hi there - still waiting to hear if anyone has a suggestion on this. Anyone?
Thanks, Sunbreaks
__________________
4.1.10 |
|||||||
#5
|
|||||||||
|
|||||||||
![]() $subcategories is actually the subcategories of the current category, try $all_categories instead
__________________
Regards, Victor Dubiniuk X-Cart Skins Store ![]() - twenty two different skins for 4.1.x and 4.2.x; - 4.3.x compatible versions are available; - refresh you store now! Smart menu X-Cart add-on for 4.1.8 - 4.3.x Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x |
|||||||||
#6
|
|||||||
|
|||||||
![]() 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
__________________
4.1.10 |
|||||||
#7
|
|||||||||
|
|||||||||
![]() I think you will need to add some code to the php in order to get this accomplished.
__________________
xcart 5.1.2 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|