Multiple Category select Layered Navigation in magento 1.9 - filter

I want to Enabled Multiple Category select in Layered Navigation.
E.g: i have category
Apple
Banana
Orange
If click on apple category display filter option like:
Apple
Banana
Orange

Related

Joomla: how to display sub-menu items

I created a website using Joomla! 3.4.1. It has some categories and the main menu looks like this:
Home
Main Category
Category 1
Category 1.1
Category 1.1.1
Category 1.1.2
Category 1.1.3
Category 1.2
Category 1.3
Category 2
Category 2.1
Category 2.2
I decided (I'm not sure if it was the best decision) to create the complete website structure in the main menu.
Now, in the "Category 1" page, I would like to have a menu showing some selected sub-menu items, for example:
Category 1 Menu:
Category 1.1
Category 1.3
In order to achieve this, I decided to create a new menu called "Category 1 Menu" with menu item aliases (to avoid creating new URLs).
Until now everything was ok, the problem is now I want to display Category 1.1 sub-items, but I just want to display the children of Category 1.1 when Category 1.1 is selected. Something like this:
Category 1
Category 1.1
Category 1.3
And if I click on "Category 1.1" its items should expand like this:
Category 1
Category 1.1
Category 1.1.1
Category 1.1.2
Category 1.1.3
Category 1.3
Remember, all these items are menu item aliases.
I know how to do it without usign menu item aliases but in this case, I think that I need to use menu item aliases, otherwise I won't have a complete "tree" structure in the breadcrumbs.
What can I do?
Thanks in advance!
if you don't wanna use aliases you can easily create a module or search for one in JED. Basically code for sub menu is like this:
$menu = JFactory::getApplication()->getMenu();
$active = $menu->getActive();
$childs = $menu->getItems('parent_id', $active->id);
//now if childs are empty yoy don't have a submenu
if( !empty($childs) )
{
//show menu using foreach $childs as $child and creating friendly url using JRoute
}

Magento: How do i still display products in category anchor is set to NO?

The website is for samsung accesories.
So, menu item is Accesories > Samsung > Mobile Phones > other 8 subcategories. When i click on Samsung i do not want the attributes to be displayed on layered navigation. So i tried with anchor >NO, but i need the products. I need this because under Samsung i will have Mobile phones, Vacuum, fridge, air conditioner, etc.., with their on custom attributes sets.
I can transform subcategories for Mobile Phones into attributes, but the products will be all over. Can anybody help?
Layerd vs. normal navigation
The anchor option only disables the layered navigation, it should still be displaying the products (without the layered navigation sidebar) if they are associated directly to the category.
Product visibility
The fact that your products are not visible on the parent category only means that they are not (directly) associated with that category. In the product editing menu on the category tab you can set a product to be associated with multiple categories.
Product/category associations
You can also edit products from the Category editing page (from the products tab) which allows you to do some mass-associations instead of taking each product individually.
Open the product you want to show in the samsung category then on the categories tab check the "samsung" category also.This will show the products in samsung category.

How to exclude the product of category

I am displaying all the products from the subcategories of the parent category. I want to exclude the product of the specific subcategory from that parent category product listing page. ex. I have parent category as fruits and its subcategories as mango banana orange i want to display only mango and banana products on the fruits category page not orange products
You can solve this in 2 ways. First one, You can simply un select the product which are not to be displayed in the Fruits page through Manage Product->[required product]->Categories.Here select the Mango and unselect Orange.
And the next one, You can get the Product Collection and through Mage::getModel(catalog/category) you can get the IDs Of all the top categories and child Categories. Asusal the product which is not to be displayed contains the top category ID and its own ID. Here you can give the ID as statically and remove them.
You can add restrictions by category id. Check your category ids and add one if.
$arrayOfCatToBeExc = array(1,3,4);
// for example id of your categories and write one if to check
if(in_array($_product->getCategory(),$arrayOfCatToBeExc){
continue;
}

Customizing layered navigation by Categories in Magento

I'm using layered navigation for a category in my magento store.
But some products have multiple categories.
Say I have a category she. Again I have some other categories like t-shirt, cosmetics etc. A t-shirt may have both t-shirt and she categories. Again a cosmetics item may have both she and cosmetics categories. So when I'm displaying she category page, I want to show t-shirt and cosmetics categories in layered navigation. When user clicking on one of those categories (say t-shirt) it will show all the t-shirt which also fall in she category.
How to do this?
EDIT: Here one thing I need to make clear. she, t-shirt, cosmetics all are independent categories. none are sub category of another.
This is a Magento feature, if it doesn't work it's because you have deactivate something in your code that break this functionnality.
This should work as a normal filter with name = 'cat' and value = category ids.
Best Regards,

Magento show products in left side bar

How do i show the products of a category in the left sidebar when an item is clicked in the navigation bar in Magento.
What version of Magento? And I'm assuming you're referring to the layered navigation?

Resources