How can i get the url of the filterable attribute in layered navigation? - magento

As we know the filterable attributes on the layered navigation has certain url that magento creates on click which filters the product list.
Let me explain my issue by giving an example. Let's say i have an attribute city which is filterable.Now the city attribute has options like "melbourne","sydney",etc.When I click on melbourne it redirects to url like
http://Your_Base_Url/Category/filter/city/melbourne.html
Same way if there are multiple attributes Magento manages the url like that.So what I want is i have a seperate dropdown where there is listed all the options for city when i click that i have to filter the products of that category.
So I am thinking if i can generate the url same as magento creates for the layered navigation i could get my work done.
So i was hoping if someone could help me on this.I have tried to trace how the layered navigation is working but i couldn't implement that way of generating urls in my case.So any help on this is appreciable.
Regards,
aton

Related

Magento Go - Adding attribute above product description in Grid view

Im wanting to add the Brand name (or designer name in this case which i have made a new attribute for) just above the product description in the Category view (grid) but cant figure it out.
As its Magento Go i have no access to the code, other than XML updates for the category itself.
Ive looked everywhere and would value any help.
Thanks
If you are cant get to the template phtml codes, you can put it on by admin.
Open catalog / attributes / manage attributes, find your attribute and in the properties set to
Visible on Product View Page on Front-end
Used in Product Listing
But it will not be on position you want.
You can edit CSS for the template and set an absolute position for your attribute.
Next way is to add in the admin in category XML layout, but this you need to do for each category. (Custom Layout Update)

Magento List Products based by attribute in CMS page, how to?

how can I list only porducts with some attribute on CMS page?
For example I want to list only all the products across the categories with attribute color=red
How can I achive this?
So far I was able to achive listing products with Special prices based on this
http://phpmysqltalk.com/937-magento-how-to-create-a-special-price-page-with-new-products-first.html
HoweverI am unable to modify it to any other attribute. Any help, how can I achieve displaying only products which have specific value of some attribute /from the Root category for the store or also from specific categories/
Thanks a lot.
check out this tutorial for creating a simple custom module which should do exactly what you need:
https://www.atwix.com/magento/products-list-cms/

Brands in sub categories in Magento

I'm trying to solve a problem with the top navigation in Magento.
The top navigation I have, currently shows a top level category and it's sub categories. What I want to do is add another level underneath each sub category containing brands in that sub category as shown here (http://cl.ly/image/3A3D1i1D3j3x)
I want the brand items to be retrieved from the "brands" attribute of products in the parent sub category (Jackets etc.) rather than creating a bunch of brand sub categories in each product type sub category as that is a nightmare for administrating the system.
If anyone knows of a good extension free or paid that does this, I'm willing to go down that route too.
Thanks for the help.
I'm working on something similar right now. It's not an exact fit as it wouldn't integrate with your menu but I would recommend using Amasty's Improved Layered Navigation for this.
It allows you to add a horizontal layered navigation block and set it up so that you can filter by brand based on an attribute. You could use the default manufacturer attribute but I've found it less problematic to add a new one called Brands. The module allows you to assign images to attribute values, so you can have all the logos for your brands listed and the user can filter the products by clicking on the logo.
You can also then use the same brand images in the product list page and the product view page.
This is very easy for your client to manage, they just assign the product it's brand attribute when they create it.
Here's a screenshot of the site I'm working on so far (still not finished so some rough edges) so you can see what I mean. Just a few test products in there and I have used the vertical block rather than the horizontal one but you get the idea. The user just clicks on a logo to filter the list.
And apart from that there's lots of other handy aspects to the module, including sliders for filtering other attributes (weight, price and anything numeric).

Magento:- Add Grid in Admin Form

Iam generating a form in Magento Adminhtml.
I have two list boxes Category and SubCategory which are populated cascadingly.
Now after click or change event of subcategory list i want to display magento grid(grid with paging filtering) JUST below that subcategory list.
I dont know which block to use to show that grid.
Help appreciated.
-Thanks
Hemant
Try to look in Mage files , magento already using grid into form,
look in this file : core/Mage/Adminhtml/Block/Catalog/Category/Tap/Product.php
Product.php is a grid , to check the result from back-office, check catalog->manage categories then click on category products tab
There are many tutorials on creating a grid.
Maybe this one will help?
http://www.webspeaks.in/2010/08/create-admin-backend-module-in-magento.html

Magento add custom option in the left side filter

I have products that has custom options like size, color etc. All are unique to the products and not shared by attributes. How can i add these filters on the product listing pages. I hope i write my question clearly. Please let me know if you want more information. Thanks for your help.
In Magento, two properties will appear as layered navigation filters without you having to do anything: Price and Categories
Its better to store them as attributes and make them filterable , then it will be displayed in the layered navigation.
You can see here how layered navigation works.
And if you want to know how to include this layered navigation widget in any of the page, read this tutorial

Resources