on 05-18-2011 4:53 AM
I would like to filter the product search results based on a particular product custom attribute value or catalog category it belongs to. Has there any standard way of doing it in webchannel? Thanks
HI
Make an entry in catalog-site-config.xml in tc-web-core project.
<QuickSearchAttributes>
<Attribute ID="OBJECT_DESCRIPTION" type="String"/> >
<Attribute ID="TEXT_0001" type="String"/>
<Attribute ID="OBJECT_ID" type="String"/>
<Attribute ID="TEXT_0003" type="String"/>
<Attribute ID="CUSTOM ATTRIBUTE" type="String"/>
</QuickSearchAttributes>
also configure the same attribute in Product Catalog and replicate the same to TREX.
If you want to get the same in the resultset use the below code.
product.getCatalogItem().getAttribute("CUSTOM ATTRIBUTE") in the jsp.
Hope this helps you.
Regards
Antony
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.