Move filters to left side column

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 Jahre weitere
Hi,

I am using 3.7V
Can anybody help me to move filters to left side column on default theme of nopcommerce

Thanks
Prince,
8 Jahre weitere
prince7003 wrote:
Hi,

I am using 3.7V
Can anybody help me to move filters to left side column on default theme of nopcommerce

Thanks
Prince,


Define following code @section left


@Html.Widget("categorydetails_before_filters", Model.Id)
        <div class="product-filters">
            @*filtering*@
            @if (Model.PagingFilteringContext.PriceRangeFilter.Enabled)
            {
                @Html.Partial("_FilterPriceBox", Model.PagingFilteringContext.PriceRangeFilter, new ViewDataDictionary())
            }
            @*filtering*@
            @if (Model.PagingFilteringContext.SpecificationFilter.Enabled)
            {
                @Html.Partial("_FilterSpecsBox", Model.PagingFilteringContext.SpecificationFilter, new ViewDataDictionary())
            }
        </div>
        @Html.Widget("categorydetails_before_product_list", Model.Id)
7 Jahre weitere
sohel wrote:
Hi,

I am using 3.7V
Can anybody help me to move filters to left side column on default theme of nopcommerce

Thanks
Prince,

Define following code @section left


@Html.Widget("categorydetails_before_filters", Model.Id)
        <div class="product-filters">
            @*filtering*@
            @if (Model.PagingFilteringContext.PriceRangeFilter.Enabled)
            {
                @Html.Partial("_FilterPriceBox", Model.PagingFilteringContext.PriceRangeFilter, new ViewDataDictionary())
            }
            @*filtering*@
            @if (Model.PagingFilteringContext.SpecificationFilter.Enabled)
            {
                @Html.Partial("_FilterSpecsBox", Model.PagingFilteringContext.SpecificationFilter, new ViewDataDictionary())
            }
        </div>
        @Html.Widget("categorydetails_before_product_list", Model.Id)



could you please explain your solution
where must I put  the "code @section left" , what path/File?  what section?
7 Jahre weitere
[email protected] wrote:
Could you please explain your solution
where must I put  the "code @section left" , what path/File?  what section?


Go to Presentation > Nop.Web > Catalog > CategoryTemplate.ProductsInGridOrLines.cshtml

Find code: (line number 119 to 132)

@Html.Widget("categorydetails_before_filters", Model.Id)
<div class="product-filters">
    @*filtering*@
    @if (Model.PagingFilteringContext.PriceRangeFilter.Enabled)
    {
        @Html.Partial("_FilterPriceBox", Model.PagingFilteringContext.PriceRangeFilter, new ViewDataDictionary())
    }
    @*filtering*@
    @if (Model.PagingFilteringContext.SpecificationFilter.Enabled)
    {
        @Html.Partial("_FilterSpecsBox", Model.PagingFilteringContext.SpecificationFilter, new ViewDataDictionary())
    }
</div>
@Html.Widget("categorydetails_before_product_list", Model.Id)


Add that code in @section left in a following way:

@section left
{
    @Html.Widget("categorydetails_before_filters", Model.Id)
    <div class="product-filters">
        @*filtering*@
        @if (Model.PagingFilteringContext.PriceRangeFilter.Enabled)
        {
            @Html.Partial("_FilterPriceBox", Model.PagingFilteringContext.PriceRangeFilter, new ViewDataDictionary())
        }
        @*filtering*@
        @if (Model.PagingFilteringContext.SpecificationFilter.Enabled)
        {
            @Html.Partial("_FilterSpecsBox", Model.PagingFilteringContext.SpecificationFilter, new ViewDataDictionary())
        }
    </div>
    @Html.Widget("categorydetails_before_product_list", Model.Id)
}
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.