Magento Layered Navigation Price Attribute State - magento

I have moved my layered navigation to the toolbar and I have made all the attributes a drop downs.
My problem is with the price attribute. The state changes after you have selected a price and all the price attributes disappear (I understand with layered navigation price you can only select one by default, this is fine). My goal is to display the last selected price in the drop down after the price has been selected.
Also, I would rather modify the code then install any of the custom extensions that do this for you.
What is the best way to keep the price from disappearing or to alter the price attribute's state to not allow it to disappear?
I am able to handle the custom attributes this way: http://www.magentocommerce.com/boards/viewthread/32614/P0/
I have also looked into these posts, but they have not helped:
http://www.magentocommerce.com/boards/viewthread/41951/
Show price layered navigation after selecting price filter

Plugin Mana Filters will allow you to do what you want ,
You can use Mana Filters Modules that will allow you to have filters with different input types, and you can customize it if you need
http://www.manadev.com/advanced-layered-navigation-ce

Related

MagentoCE 1.9 shows product count although it shouldn't

I use a custom attribute which is shown as layered navigation (type=dropdown, use in filter navigation BUT without product count).
Everything is like it should be, but the frontend SHOWS the product count next to the filterable attribute. Anchor is on in Display Settings (Category).
I wonder if I forgot to set something or if my settings are overwritten...
Magento_AT version 1.9.0.1v1
(special language version based on MagentoCE 1.9.0.1
There are options Filterable (with results), it means show this filter if there are some associated products in the listing. Filterable (no results), it means show this filter always.
To hide product count try to modify template
app\design\frontend\base\default\template\catalog\layer\filter.phtml
(copy it to your custom theme first)
There is a way to hide the product count without modifying the template directly.
In Configuration/Catalog/Filter Navigation one can unselect show product count.

Getting configurable product options pre selected from the layered navigation

I have several configurable products (with many simple products associated to them).
When browsing the super attributes through the layered navigation, you can filter down to all products that have (for instance) size= medium, Colour = Red.
I have set my simple products to not be visible and showing my configurable products, however, when you select the configurable product, the product options do not default to what has been filtered in the layered navigation.
Is there a way to get the relevant product options pre-selected on the product page?
suppose the user selected the filters from the listing page as size ="medium" colour ="red"
Now when user selects the configurable product from listing page after applying filter corresponding values must be pre selected on product detail page.
There is no ready-made way to do this. When the request is made for the product that product knows nothing of the layered navigation state. In theory you could add in some server side code to do that however this might have a performance penalty as you might not be able to use cache effectively.
You could do something on the front end in javascript. Add an event listener to the links in the filtered navigation and store an object in local storage, e.g. with size and colour.
On the product page you could then set the configurable product according to those values by waiting for the configurable product options to be built, then load the options object from local storage and then update the configurable product accordingly. You will need to then fire off events so the product page knows that options have been selected and can do things like update the price accordingly.
Internally Magento uses attribute option values that have numerical ids. These can be a bit complicated to work with, so you may want to put some logic in to read the labels instead, e.g. 'Red' instead of e.g. '461'.
There is no prototype specific way of working with local storage and you don't need some layer of jquery, normal javascript should suffice when it comes to storing/retrieving your size/colour object.
I found the following article to be the head start needed for doing things with the configurable product drop-downs:
http://inchoo.net/ecommerce/magento/how-to-make-configurable-options-autoselected-on-configurable-product-view-page/

Magento multiselect attribute behavior in layered navigation

I'm using the layered navigation of Magento to let the users select filters to determine their choice.
Because I have a large set of choices, I chose to use multiselect attributes so that the amount of attributes would be smaller.
The normal Magento behavior is as follows (i.e. shoes):
- User wants to find red and yellow shoes, using filter "Color"
- User selects "Red" and "Yellow" as filter options and that's it.
In my case, the selected options are depending on each other.
For instance when the user can filter on application.
- User wants to find a product that can be used in the kitchen and also in the living room.
When this user selects "Kitchen" and "Living room" as filter options and the possible products do not fit in a "bathroom", the filter option "Bathroom" has to disappear.
I've tried to do this using seperate select-attributes with only one option, but the amount of attributes keeps on growing and I'm losing overview while doing this.
How can I change the behavior of a multiselect attribute in Magento for the layered navigation, based on above example?
Thanks in advance.
If you want to change the behavior of layered navigation you need to rewrite the layered navigation in Block/Layer/.. and Model/Layer
You can use Mana Filters Modules that will allow you to have multiple filters from same type, then you can implement your own filter class for select( example price filter it has its own class in layered navigation ) etc .. !
http://www.manadev.com/advanced-layered-navigation-ce
There is also paid module amasty layered navigation

Magento Layered Navigation (Manadev.com) ia acting strange with configurable products

I am using Manadev SEO Layered Navigation Plus (http://www.manadev.com/seo-layered-navigation-plus) as my layered navigation, but it's acting strange with configurable products.
My configurable products use only one attribute to create configurables (Size). However I have a Color attribute, also used in the layered navigation (dropdown not used to create configuragles, because every product comes in one color and many sizes).
The problem is that Size attribute shows all the simples of the configurable product, even if they are disabled in the admin. When you see the product page, the disabled simples are not showing up, but they do in the layered navigation. What do you think may be the problem?
Btw I may have imported values for Color in the configurable product as well as in it's simples. And Re-Indexing doesn't work.
SEO Layered Navigation Plus extension relies on standard Magento functionality which prepares special index tables for use in layered navigation (and decides which products should be shown when an option is selected). Unfortunately, this functionality does not consider quantity of simple products when preparing index tables for configurable products.
Standard Magento layered navigation has the same issue because it relies on the same indexes.
There is no quick fix. We consider altering Magento indexing functionality to address this issue.
To keep you posted on this issue please contact us through www.manadev.com website.

Different product image per category in Magento

I have a large store with many products showing in multiple categories.
Inside each of these categories the product has a different use, so I would like to show a different image.
I would use a bundle / grouped product however the default simple product has custom options.
Any PHP or set up suggestions would be appreciated.
A clean implementation would be to add a new attribute to the media/gallery functionality (akin to label/sort-order).
Then you would add a drop-down category selector to the grid view on the "Manage Product > Edit Product > Images" tab.
Then from there, you could extend the standard collection for category/search to select your image with corresponding category ID (instead of the default selected thumbnail).
But you certainly are not going to find a 1-liner to pull this off (cleanly).

Resources