Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Layered navigation makes it easy to find a product based on category, price range, or any other available attribute.
2
votes
Accepted
Display number of found products in layered navigation
Try to get
$select = clone Mage::getSingleton('catalog/layer')->getProductCollection()->getSelect();
Then you can modify the $select object to get COUNT() and fetch it.
Note, you have the right co …
1
vote
How to modify "shop by" to display category
Unless you have some layered navigation extension that does the job for you, you can rewrite the categories filter model Mage_Catalog_Model_Layer_Filter_Category, not the template to show parent categ …
1
vote
How can I get the product count of a category subject to the current facet?
So you have the categories collection $categories and current facet selection in the $layer object.
Then you can just call do
$layer->getProductCollection()
->addCountToCategories($categor …
4
votes
Showing all options in layered navigation
You can start from app\code\core\Mage\Catalog\Model\Layer\Filter\Attribute.php (it can be rewritten in the local pool or in the custom module) Note, the magento default function apply contains code t …
0
votes
How to consolidate/summarise/combine color and other attributes in the layered navigation
We did a lot of layered navigation customization for last five yerars, including the described one. Most clients do not change existing attributes but crestes a new one, like naviation-color and show …
2
votes
Accepted
Add custom field in Layered Navigation
It's default functionality.
Please define the size attribute to be "Price" type, then set it as "Used in Layered Navigation". Reindex and you are done.
1
vote
Accepted
Layered navigation - multiple attribute choices
You need to rewrite
app\code\core\Mage\Catalog\Model\Layer\Filter\Item.php
to generate right urls and
app\code\core\Mage\Catalog\Model\Layer\Filter\Attribute.php
plus
app\code\core\Mage\Catalog\Model …
1
vote
Layered Navigation categories to start one level down
Please see app\code\core\Mage\Catalog\Model\Layer\Filter\Category.php
It gets the categories using method protected function _getItemsData()
You can change its logic to return required category ID ( …
0
votes
Layered navigation in custom list view (specials)
To add layered navigation to a custom page you basically need
1) Have the navigation block in the page layout
2) Use the Catalog Layer object to load product collection (and the modify it if needed)
…
1
vote
Deny layered navigation to search engines
It is also possible
1) to hide layered navigation block from the output based on the user agents and filter our Google/Bing bots.
2) add a special variable in the url like "noind" and then in the …
2
votes
Accepted
hide "one of the attribute label name" in layered navigation
You can remove some option directly in your theme template (dirty hack):
app\design\frontend\base\default\template\catalog\layer\filter.phtml
after line
<?php foreach ($this->getItems() as $_ite …
0
votes
How will the selected layered navigation apply to all categories?
Basically you can save layered navigation selection in the session. For this you may use of the pre-dispatch events.
And update the Mage::app()->getRequest()->setParam('color', 13); Where 13 is the v …
0
votes
Remove particular category name in default Layered Navigation in Magento 2.1
You can disable the "Anchor" option in
Product->Categories->[Your category name]->Display
Setting
1
vote
Custom from-to price filter in layered navigation
There 2 parts of the price filter in the layered navigation.
The first one is frontend, by default it is only list of ranges, but you can modify it to a dropdown, slider or from-to widget in the .phr …
1
vote
Accepted
Find Selected Attribute Options
For your new size attribute set option "used in layered navigation" to "yes, filterable with results" and reindex.