Try the Demo

Magento Forum

   
Filtered/Layered Product List from CMS Page
 
Ossy
Jr. Member
 
Total Posts:  19
Joined:  2008-10-22
London
 


From an CMS Page I would like to display a List of Products filtered by an Attribute (e.g. brand).

I can easily display a list of products within a CMS Page, but I cannot find an existing way of specifying a filter based on the value of an attribute.

In the CMS Page I enter:

{{block type="catalog/product_list" template="catalog/product/list.phtml"}}

and in the cms.xml page I add the <reference name="left"> section to display the Layered Navigation:
<cms_page>
         <
reference name="left">
                   <
remove name="catalog.leftnavig" />
             <
block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/>
        </
reference>
       
        <
reference name="content">
            <
block type="cms/page" name="cms_page"/>
        </
reference>
    </
cms_page>


Is there a way to pass an attribute that would work as a filter? For instance
{{block type="catalog/product_list" brand_filter="123" template="catalog/product/list.phtml"}}
to get the equivalent of http://www.site.com/categoryname?brand=123

Many thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Ethan Hunt
Jr. Member
 
Avatar
Total Posts:  23
Joined:  2009-02-05
 

You can add the category_id="123" tag within the block like:
{{block type="catalog/product_list" category_id="123" template="catalog/product/list.phtml"}}
but this will only show products under the category with id 123
Not Sure for attributes? Also looking for the same solution

 
Magento Community Magento Community
Magento Community
Magento Community
 
brendanb
Mentor
 
Total Posts:  1072
Joined:  2008-07-16
London, United Kingdom
 

hi,

did you find a solution to this?

regards
brendan

 Signature 

Magento Enterprise & Community Developer

 
Magento Community Magento Community
Magento Community
Magento Community
 
Ossy
Jr. Member
 
Total Posts:  19
Joined:  2008-10-22
London
 

I did not manage to find good solution.

For the time being this is what I do for creating Brand pages with related products and the Layered Navigation:

1) in the brand CMS page I use the following, as explained in my original post:

{{block type="catalog/product_list" template="catalog/product/list.phtml"}}

2) the links to the brand page have the attribute+value parameter into it. For instance:

http://www.site.com/brand-name?brand=123

What the does is to apply the filter “brand=123” into the product list call (1) that selects all the products in the site.

In fact, if you call http://www.site.com/brand-name without the parameter it will show ALL the products.

In order to implement (2) easily, I had an Admin Brand module developed so that it links a CMS page to a Brand, so it knows how to build the links to the Brand CMS pages etc… I hope it makes sense.

It does all I need well and use all the useful features of a CMS page, such as Meta Data. However, the links have a parameter in it, which is not ideal, but not a big issue either.

Alternatively there is a Magento Extension to help woth brands: http://www.magentocommerce.com/extension/1289/shop-by-brands

I am not sure whether it deals with the issue of displaying a full Layered Navigation. Here is an example, but it only shows the Categories: http://www.shearup.com/brands/avena/ It could be that this site only uses the categories in the Layered Navigation.

 
Magento Community Magento Community
Magento Community
Magento Community
 
FMEExtensions
Guru
 
Avatar
Total Posts:  718
Joined:  2009-08-07
 

For Shop by brands you can also look here for a solution

http://www.magentocommerce.com/magento-connect/shop-by-manufacturers.html

 Signature 

One Step Checkout - $85| Ajax Add to Cart - $79 | Background Images - $59| Additional Checkout Attributes - $89 Square Foot Pricing Calculator - $119 Product Quick View - $79 Featured Product Layout - $79

 
Magento Community Magento Community
Magento Community
Magento Community
 
todoslot
Jr. Member
 
Total Posts:  3
Joined:  2009-08-27
 

For someone who wants to add a complete brand options;

-First, create an image and link to brands in product page:
http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/catalog/how_to_add_a_brand_or_manufacturer_logo_to_your_product_pages

-Then, create a cms page with a product list, not only from category, but using an attribute: 
http://yoast.com/landing-pages-module-magento/
Using layered navigation:
http://www.sonassi.com/knowledge-base/magento-kb/yoast-landing-pages-module-with-layered-navigation/

You can see it in http://www.todoslot.es

 
Magento Community Magento Community
Magento Community
Magento Community
 
FMEExtensions
Guru
 
Avatar
Total Posts:  718
Joined:  2009-08-07
 

Have a look at the new extension released by FME where you can add the products filtered by certain attributes, category or even SKU

http://www.fmeextensions.com/magento-add-products-to-cms.html

ADD PRODUCTS TO CMS in MAGENTO

 Signature 

One Step Checkout - $85| Ajax Add to Cart - $79 | Background Images - $59| Additional Checkout Attributes - $89 Square Foot Pricing Calculator - $119 Product Quick View - $79 Featured Product Layout - $79

 
Magento Community Magento Community
Magento Community
Magento Community
 
pradeep_kumar67
Sr. Member
 
Avatar
Total Posts:  139
Joined:  2010-06-24
Bangalore
 

Hi guys

check this post
http://www.magentocommerce.com/boards/viewthread/308574/
i hope it helps you

 Signature 

Pradeep Kumar, Magento Developer in Bangalore India, Magento Programmer in Bangalore India, Magento Expert In Bangalore India, Magento Developer India , Magento Programmer India, Magento Expert India, http://pradeepkumarrcs.blogspot.in/, linkedin.com,Magento Developer, Magento Programmer, Magento Expert

 
Magento Community Magento Community
Magento Community
Magento Community
 
davidmst
Sr. Member
 
Avatar
Total Posts:  274
Joined:  2012-02-08
 

try use extension Shop By Brands!!!

Visit Extension Page: http://www.magebay.com/shop/shop-by-brands.html

Live Demo: http://magebay.com/livedemo/opc/index.php/brands/

Backend Demo: http://magebay.com/livedemo/opc/index.php/admin

 Signature 

Free & Paid Magento extensions by MageBay
Mega Dropdown Menu, Left Mega Menu, Accordion and Responsive Menu for Magento. MCP MenuCreatorPro is a great Menu Extension
http://menucreatorpro.com/
http://menucreatorpro.com/livedemo/
http://menucreatorpro.com/livedemo/index.php/admin/

 
Magento Community Magento Community
Magento Community
Magento Community
 
Amasty
Mentor
 
Avatar
Total Posts:  3076
Joined:  2009-11-10
 

Try using Landing Pages Extension.

Good landing pages give you better sales conversion and pages with unique content, which improve your site rankings in search engines. The module lets you decide which content to display on the pages - selected products, banners, text info, CMS blocks. You can specify custom meta tags and short SEO url for each landing page.
-Improve your site SEO to rank higher in search engines
-Landing pages with nice SEO urls and custom meta tags
-Create pages for NEW products
-Pages based on categories and product attributes
-ON SALE products with layered navigation

For userguide and live demo please follow the link http://amasty.com/landing-pages.html

 Signature 

55+ free & paid Magento extensions

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top