Close

Profile: mattprice1707

Avatar

User posts

10 years ago

Hi, sorry I left it weeks before responding to tour help here. I have noticed changes between the original code and our modified code but stil cant seem to workout what I should change in the selector settings. Sorry to do this, but this is the section of code...I believe. in categorytempatesgridorlines

:) Matt

@Html.Widget("categorydetails_after_featured_products")

    @*view mode*@
    @*    @if (Model.PagingFilteringContext.AllowProductViewModeChanging && Model.Products.Count > 0)
        {
            <div class="product-viewmode">
                <span>@T("Categories.ViewMode")</span>
                @Html.DropDownList("products-viewmode", Model.PagingFilteringContext.AvailableViewModes, new { onchange = "setLocation(this.value);" })
            </div>
        }

        @*sorting*@
    @*    @if (Model.PagingFilteringContext.AllowProductSorting && Model.Products.Count > 0)
        {
            <div class="product-sorting">
                <span>@T("Categories.OrderBy")</span>
                @Html.DropDownList("products-orderby", Model.PagingFilteringContext.AvailableSortOptions, new { onchange = "setLocation(this.value);" })
            </div>
        }

        @*page size*@
    @*    @if (Model.PagingFilteringContext.AllowCustomersToSelectPageSize && Model.Products.Count > 0)
        {
            <div class="product-page-size">
                <span>@T("Categories.PageSize")</span> <span>@Html.DropDownList("products-pagesize", Model.PagingFilteringContext.PageSizeOptions, new { onchange = "setLocation(this.value);" })</span>
                <span>@T("Categories.PageSize.PerPage")</span>
            </div>
        }*@

    @Html.Widget("categorydetails_before_filters")


    @*filtering*@
    @*    @if (Model.PagingFilteringContext.PriceRangeFilter.Enabled ||
        Model.PagingFilteringContext.SpecificationFilter.Enabled)
        {
            <div class="product-filters">
                <div class="filter-title">
                    <span>@T("Filtering.FilterResults")</span>
                </div>
                @if (Model.PagingFilteringContext.PriceRangeFilter.Enabled)
                {
                    <div class="filter-item">
                        @Html.Partial("_FilterPriceBox", Model.PagingFilteringContext.PriceRangeFilter, new ViewDataDictionary())
                    </div>
                }
                @if (Model.PagingFilteringContext.SpecificationFilter.Enabled)
                {
                    <div class="filter-item">
                        @Html.Partial("_FilterSpecsBox", Model.PagingFilteringContext.SpecificationFilter, new ViewDataDictionary())
                    </div>
                }
            </div>
        }*@

    @Html.Widget("categorydetails_before_product_list")
    @*product list*@
    @if (Model.Products.Count > 0)
    {
        int counter2 = 0;

        if (Model.PagingFilteringContext.ViewMode == "list")
        {
            @*list mode*@
            <div class="product-list">
                @foreach (var product in Model.Products)
                {
                    <div class="item-box">

                        @Html.Partial("_ProductBox", product)
                    </div>
                }
            </div>
        }
        else
        {

10 years ago

Oh okay, in which folder/file are they kept.

Cheers

Matt

10 years ago

Hi there, I would send you the link but im working on localhost atm. How do I know by looking whether the selectors have been changed? Sorry, I am fairly new to nopcommerce and the plugins for it.

Regards

Matt

10 years ago

Thanks for your reply.

Well, the site was developed by another guy and now I am just finishing it off but is customised. Does this make a difference? The settings are default and appear to be fine plus I only installed the plugin recently after we went to 3.20.

Cheers

Matt

10 years ago

Hi,

I am using ajax filters 3.20 and every time I try to use the filter I get 'loading page failed' appear. I have read this forum post http://www.nop-templates.com/boards/topic/453/loading-the-page-failed/page/2 and the solution of changing the category template just doesn't seem to work for me. I was wondering whether there are any other solutions.

This is the error message I get in my log.

The parameters dictionary contains a null entry for parameter 'orderby' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult Products(Int32, Int32, System.Nullable`1[System.Int32], Int32, System.String, Nop.Plugin.Widgets.AjaxFilter.Models.AttributeFilterModel, Nop.Plugin.Widgets.AjaxFilter.Models.SpecificationFilterModel, Nop.Plugin.Widgets.AjaxFilter.Models.ManufacturersFilterModel, Nop.Plugin.Widgets.AjaxFilter.Models.PriceRangeFilterModel)' in 'Nop.Plugin.Widgets.AjaxFilter.Controllers.WidgetsAjaxFilterController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter. Parameter name: parameters

Regards

Matt

10 years ago

Thanks mate,

That was what I was looking for. Don't know what I was doing before! To customize the colours for the filter which now shows, is there a certain css file that needs altering or are there options to do that in the full version.

Cheers

Matt

10 years ago

Hi Boyko,

Sorry I didn't reply sooner, have been off over Christmas and this alert went to my work e-mail. I may be and probably am totally wrong in what I tried to do. We sell tins of paint and the ajax filters would be great for letting the customer sort different colours, tin sizes and finishes. However, our web developer has created a custom theme that doesn't have a left sidebar where I have seen ajax filters being used in just about every demo. I was wondering whether there is any way to integrate it into the main body of the category page or into the right sidebar instead.

Thanks

Matt

10 years ago

Hi,

I am currently using the trial of ajax filters to see if it is exactly what we want for our website. As soon as I can see that it does the job we want we will be buying the plugin and probably the complete noptemplates plugin package. The problem that I have at the moment however is that when going through the instructions on manual integration our web developer has I believe created a new ProductBox.cshtml file called ProductBoxRabart.cshtml (rabart being the company name). When I cut out the line of code that resembles the one we are guided to replace with the ajax filters code I get a string of errors and the page doesn't load.

Below is the code in the web developers version of that file which I have been replacing.

<input type="button" value="@T("Products.Details")" onclick="setLocation('@Url.RouteUrl("Product", new { SeName = Model.SeName })')" />

I would be grateful if someone could tell me if I am doing this correctly as I because of the customization of the site I need the plugin to sit in the main body rather than in the widget areas.

Thanks

Matt