I have 2 column page the first column :
I want to create 2 drop down menus. The first contains the categories and the second has the posts that are related to the category.
With a meaning that when someone chooses the category (laptops) in the second menu only the laptops would appear. And when choosing both options and clicking submit the posts on the the other column would filter to only the product that he selected.
can you please help me with either one of them and your help would be appreciated.
Follow this example (Nested Combos):
http://www.prodiven.com/jcombo/
Related
I am trying to build a ad website and stuck at implementing the side filters on the sidebar navigation that are displayed based on the selected category.
1 : https://www.pigiame.co.ke/cars
2 : https://www.pigiame.co.ke/mobile-phones
Notice the different filters that appear on the sidebar based on the category selected on the main menu. Need help with showing the different filters.
The simplest form would be something like the following
Assuming you have a product_features tables, your query should look something like this:
SELECT DISTINCT(`feature`) `feature_name` FROM `product_features` `pf`
INNER JOIN `products` `p` ON `p`.`id` = `pf`.`product_id`
WHERE `p`.`category_id` = ?
this should give you all the features for a category, you can then make your menu based on your category_id which you pass to the menu
I'm using angular-materialize to generate a multiple select :
http://krescruz.github.io/angular-materialize/
I'm using ng-model to retrieve the selected items, all this works, however I tried to add a search box in order to filter what I need.
my problem is I search for the first time and check the value, but then when I make an other search (that doesn't lead to the previously selected item) it is deleted and I'm only left with the last selected items.
So my questions are :
1/ is there a way to conserve all the selected items even with multiple search?
2/ is it possible to always have the dropdown "active" meaning I won't have to click in order to have the list ? (if that helps the previous problem)
Thank you
How do I make sure after filtering results,it will only show available items on the next column?
I'm taking the example from this link.
(http://jsfiddle.net/koalyptus/eCqG3/)
As you can see,on the 1st column. You will able to filter all available countries by clicking [SHOW ALL]
But,after filtering the 1st column for example I took Asia.
On the next column, it still display all available population in the list instead of one list which belongs to Asia only.--How do I get this?
I Need to create the dynamic drop down of category in the WordPress. Is their any plugin in WordPress for the category drop down?
Eg: cars is the Category,
BMW is the sub category of the cars and
7 series is the sub of sub category .
Here How to display the parent category in the First drop down.and related sub category of the parent category in the Second drop down.
And if the Sub category has the Sub of Sub category means third drop down should display, If not third drop down should not display.
Is their any plugin for this scenario in the WordPress
may be that's the plugin that you were looking for.
http://wordpress.org/plugins/jquery-vertical-mega-menu/screenshots/
Try it..
here is the list..
http://www.wpstand.com/wordpress/plugins/14-free-wordpress-menu-plugins.html
How can i populate the values in the drop down(second drop down) from the select query on choosing
the option from the first drop down ?
Examples:
First Drop Down : Listing out all the "department name" using select query.
Second Drop Down : Now, i need the output to list out all the "professors name" in the respective departments on the basis of the first drop down option.
Thanks in advance. Much Appreciated your help.
You could easily accomplish this with JavaScript: http://javascript.about.com/library/bl3drop.htm
This essentially uses if-then statements to output the latter dropdown lists with options dependent on the first. If you're looking more for PHP and Ajax (for dynamic lists from a database), this is a similar question: [link]