Total Posts: 481 Karma: 2782 Joined: 7/24/2010 Location: India getting loads of error while compiling ctrlpricerangefilter could not be found etc..
Total Posts: 203 Karma: 1935 Joined: 1/3/2011 Location: Vietnam I tried to follow the instructions but it does not work.I use nop 1.9. Can you hellp me?
Total Posts: 203 Karma: 1935 Joined: 1/3/2011 Location: Vietnam for me it is working in 1.9.Can you hellp me.?
Total Posts: 203 Karma: 1935 Joined: 1/3/2011 Location: Vietnam Category page product Fitters nop 1.9 In Category.ascx: <%@ Register TagPrefix="nopCommerce" TagName="MiniShoppingCartBox" Src="~/Modules/MiniShoppingCartBox.ascx" %> <%@ Register TagPrefix="nopCommerce" TagName="CategoryNavigation" Src="~/Modules/CategoryNavigation.ascx" %> <%@ Register TagPrefix="nopCommerce" TagName="ManufacturerNavigation" Src="~/Modules/ManufacturerNavigation.ascx" %> <%@ Register TagPrefix="nopCommerce" TagName="RecentlyViewedProducts" Src="~/Modules/RecentlyViewedProductsBox.ascx" %><%@ Register TagPrefix="nopCommerce" TagName="ProductSpecificationFilter" Src="~/Modules/ProductSpecificationFilter.ascx" %> <script runat="server"> protected override void OnInit(EventArgs e) { base.OnInit(e); ctrlProductSpecificationFilter.CategoryId = this.CategoryId; ctrlProductSpecificationFilter.ReservedQueryStringParams = "CategoryId,"; ctrlProductSpecificationFilter.ReservedQueryStringParams += "orderby,"; ctrlProductSpecificationFilter.ReservedQueryStringParams += ctrlPriceRangeFilter.QueryStringProperty; } protected override void OnPreRender(EventArgs e) { this.pnlFilters.Visible = ctrlPriceRangeFilter.Visible || ctrlProductSpecificationFilter.Visible; base.OnPreRender(e); } // </script> <asp:Content ID="Content2" ContentPlaceHolderID="cph2" runat="server"> <nopCommerce:CategoryNavigation ID="ctrlCategoryNavigation" runat="server" /> <div class="clear"> </div> <nopCommerce:ManufacturerNavigation ID="ctrlManufacturerNavigation" runat="server" /> <div class="clear"> </div> <asp:Panel runat="server" ID="pnlFilters" CssClass="product-filters"> <div class="filter-title"> <asp:Label runat="server" ID="lblProductFilterTitle"> <%=GetLocaleResourceString("Products.FilterOptionsTitle")%> </asp:Label> </div> <div class="filter-item"> <nopCommerce:PriceRangeFilter ID="ctrlPriceRangeFilter" runat="server" /> </div> <div class="filter-item"> <nopCommerce:ProductSpecificationFilter ID="ctrlProductSpecificationFilter" runat="server" /> </div> </asp:Panel> <div class="clear"> </div> <nopCommerce:RecentlyViewedProducts ID="ctrlRecentlyViewedProducts" runat="server" /> <div class="clear"> </div> </asp:Content> <asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="Server"> <asp:PlaceHolder runat="server" ID="CategoryPlaceHolder"></asp:PlaceHolder> </asp:Content>
Total Posts: 481 Karma: 2782 Joined: 7/24/2010 Location: India Everthing is working fine for me, but i cant remove the product filters from its defualt location on the category page, when i comment product filter option on product grid templete i get loads of error whiole comipling.. need some help on this.
Total Posts: 481 Karma: 2782 Joined: 7/24/2010 Location: India GuysCan somebody help me remove the filters from the main category page as I have successfully implemented it on the left side, please assist on this.. http://www.lanoscomputers.com/estore/category/78-speakers.aspx
Total Posts: 481 Karma: 2782 Joined: 7/24/2010 Location: India Thank for your advise, but the code you specified is already uncommented
Total Posts: 5 Karma: 25 Joined: 7/17/2011 Location: Australia I still can't make it work on my 1.9. Can anyone help me to figure out what have I done wrong? In Category.ascx added: <%@ Register TagPrefix="nopCommerce" TagName="PriceRangeFilter" Src="~/Modules/PriceRangeFilter.ascx" %> <%@ Register TagPrefix="nopCommerce" TagName="ProductSpecificationFilter" Src="~/Modules/ProductSpecificationFilter.ascx" %> <asp:Content ID="Content2" ContentPlaceHolderID="cph2" runat="server"> <nopCommerce:CategoryNavigation ID="ctrlCategoryNavigation" runat="server" /> <div class="clear"> </div> <nopCommerce:ManufacturerNavigation ID="ctrlManufacturerNavigation" runat="server" /> <div class="clear"> </div> <asp:Panel runat="server" ID="pnlFilters" CssClass="product-filters"> <div class="filter-title"> <asp:Label runat="server" ID="lblProductFilterTitle"> <%=GetLocaleResourceString("Products.FilterOptionsTitle")%> </asp:Label> </div> <div class="filter-item"> <nopCommerce:PriceRangeFilter ID="ctrlPriceRangeFilter" runat="server" /> </div> <div class="filter-item"> <nopCommerce:ProductSpecificationFilter ID="ctrlProductSpecificationFilter" runat="server" /> </div> </asp:Panel> <div class="clear"> </div> <nopCommerce:RecentlyViewedProducts ID="ctrlRecentlyViewedProducts" runat="server" /> <div class="clear"> </div> </asp:Content> <asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="Server"> <asp:PlaceHolder runat="server" ID="CategoryPlaceHolder"></asp:PlaceHolder> </asp:Content> codebehind in category.aspx.cs added protected override void OnInit(EventArgs e) { base.OnInit(e); this.CreateChildControlsTree(); ctrlProductSpecificationFilter.CategoryId = this.CategoryId; ctrlPriceRangeFilter.PriceRanges = category.PriceRanges; ctrlProductSpecificationFilter.ReservedQueryStringParams = "CategoryID,"; ctrlProductSpecificationFilter.ReservedQueryStringParams += "pageindex,"; ctrlProductSpecificationFilter.ReservedQueryStringParams += "orderby,"; ctrlProductSpecificationFilter.ReservedQueryStringParams += ctrlPriceRangeFilter.QueryStringProperty; } protected override void OnPreRender(EventArgs e) { this.pnlFilters.Visible = ctrlPriceRangeFilter.Visible || ctrlProductSpecificationFilter.Visible; base.OnPreRender(e); } In Category.aspx.designer.cs Added the following controls protected global::System.Web.UI.WebControls.Panel pnlFilters; protected global::System.Web.UI.WebControls.Label lblProductFilterTitle; protected global::NopSolutions.NopCommerce.Web.Modules.PriceRangeFilterControl ctrlPriceRangeFilter; protected global::NopSolutions.NopCommerce.Web.Modules.ProductSpecificationFilterControl ctrlProductSpecificationFilter; protected global::NopSolutions.NopCommerce.Controls.Pager productsPager;
Total Posts: 5 Karma: 25 Joined: 7/17/2011 Location: Australia I have figured out how to recompile the whole project. After that it works for me.