Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to display attributes in catalog advanced search? 
 
papricek
Jr. Member
 
Total Posts:  19
Joined:  2007-11-19
 

Hi, I am successfully showing my custom attributes in the category listing, practically as shown in this article: http://www.magentocommerce.com/wiki/how-to/add-attributes-to-product-grid works . However, it works only in category listings, not in advanced search results. What should I do more?
my catalog.xml

<catalog_category_layered>
        <
reference name="content">
            <
block type="catalog/layer_view" name="catalog.middle" after="currency" template="catalog/layer/view.phtml"/>
        </
reference>
        <
reference name="content">
            <
block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
                <
block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
                    <
action method="addAttribute"><name>width</name></action>

and catalogsearch.xml

<catalogsearch_advanced_result>
        <!-- 
Mage_Catalogsearch -->
        <
reference name="root">
            <
action method="setTemplate">
                <
template>page/2columns-right.phtml</template>
            </
action>
        </
reference>
        <
reference name="content">
            <
block type="catalogsearch/advanced_result" name="catalogsearch_advanced_result" template="catalogsearch/advanced/result.phtml">
                <
block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml">
                    <
action method="addAttribute"><name>width</name></action>
                    <
action method="addAttribute"><name>profile</name></action>
                    <
action method="addAttribute"><name>average</name></action>
                    <
action method="addAttribute"><name>speed_index</name></action>
                    <
action method="addAttribute"><name>image_filename</name></action>
                </
block>
                <
action method="setListOrders"/>
                <
action method="setListModes"/>
                <
action method="setListCollection"/>
            </
block>
        </
reference>
    </
catalogsearch_advanced_result>
 
Magento Community Magento Community
Magento Community
Magento Community
 
Skeuds
Member
 
Avatar
Total Posts:  53
Joined:  2008-04-15
 

Hi,

I have the same problem. Have you find a soution ?

Thanks.

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