Anzahl der Beiträge:
2
Karma:
10
Beigetreten:
04.09.2009
Herkunft:
United Kingdom
Has anyone successfully placed the product filters below the category navigation in the sidebar or is this major change.
Anzahl der Beiträge:
77
Karma:
913
Beigetreten:
23.12.2009
Herkunft:
United Kingdom
Yes I want to do that too for site wide product filtering. I've had some thoughts on it, I'll be trying a few ideas over the next week or two so I'll let you know.
Anzahl der Beiträge:
13
Karma:
61
Beigetreten:
22.02.2010
Herkunft:
United States
This is simple to implement. Follow the steps below: 1. Goto Category.aspx 2. Register PriceRangeFilter and ProductSpecificationFilter on top of the page like below. <%@ Register TagPrefix="nopCommerce" TagName="PriceRangeFilter" Src="~/Modules/PriceRangeFilter.ascx" %> <%@ Register TagPrefix="nopCommerce" TagName="ProductSpecificationFilter" Src="~/Modules/ProductSpecificationFilter.ascx" %> 3. Inside the ContentPlaceHolder cph2 (left side) paste the following code (copied from Catgory/ProductsInGrid.ascx) <asp:Content ID="Content2" ContentPlaceHolderID="cph2" runat="server"> <asp:Panel runat="server" ID="pnlFilters" CssClass="ProductFilters"> <div class="FilterTitle"> <asp:Label runat="server" ID="lblProductFilterTitle"> <%=GetLocaleResourceString("Products.FilterOptionsTitle")%> </asp:Label> </div> <div class="FilterItem"> <nopCommerce:PriceRangeFilter ID="ctrlPriceRangeFilter" runat="server" /> </div> <div class="FilterItem"> <nopCommerce:ProductSpecificationFilter ID="ctrlProductSpecificationFilter" runat="server" /> </div> </asp:Panel> </asp:Content> 4. Copy paste the snippet in code behind (Category.aspx.cs) protected override void OnInit(EventArgs e) { base.OnInit(e); this.CreateChildControlsTree(); ctrlProductSpecificationFilter.CategoryID = this.CategoryID; ctrlPriceRangeFilter.PriceRanges = category.PriceRanges; ctrlProductSpecificationFilter.ReservedQueryStringParams = "CategoryID,"; } Compile and run..You can see all the filters on the left side below the Category list. Thanks Venkat
Anzahl der Beiträge:
77
Karma:
913
Beigetreten:
23.12.2009
Herkunft:
United Kingdom
Thanks Venkat, nice and simple. Personally not sure about product specifications for delivering data, seems to be a better filter and search tool. Would be nice to replace the hyperlink with a check box too...
Anzahl der Beiträge:
27
Karma:
135
Beigetreten:
13.08.2010
Herkunft:
United States
Is there an update for this for 1.6 and above? EDIT: Got the Price Ranges to work, but not the Specifications.
Anzahl der Beiträge:
25
Karma:
125
Beigetreten:
28.10.2010
Herkunft:
Russia
Hi all. Thanks you - it very interesting for me. But step 4 is error. Underline categoryID. Write don't find metod. Help me ctrlProductSpecificationFilter.CategoryID = this.CategoryID;
Anzahl der Beiträge:
25
Karma:
125
Beigetreten:
28.10.2010
Herkunft:
Russia
Please copy all code category.aspx and category.aspx.cx* and show me. Thank you
Anzahl der Beiträge:
25
Karma:
125
Beigetreten:
28.10.2010
Herkunft:
Russia
I want product filter attribute on the left side. You can look at this http://gifts.nopcommerceskin.com/category/51-notebooks.aspx
Anzahl der Beiträge:
274
Karma:
1616
Beigetreten:
23.06.2010
Herkunft:
Netherlands
Nice..want to share this. Or is this to difficult?
Anzahl der Beiträge:
25
Karma:
125
Beigetreten:
28.10.2010
Herkunft:
Russia
Am understand how doing this but step 4 is error. Who can help me. If can filter on the left part - help me.