Close

Profile: IvanStoyanov

Avatar

User posts

12 years ago

JonNopper1 wrote:
Hi there I was wondering if you could help with a design feature of the specification filter.
I would like to change the toggle box to default to the closed position instead of showing the 'all' option plus dropdown items.

Currently

> Specification
-->All
(--> option1)
(--> option2 )

I would like the default appearance to be

> Specification


Hi JonNopper1,

To achieve this you need to go to /Plugins/SevenSpikes.Nop.AjaxFilters/Views/SpecificationFilter7Spikes/ and open the SpecificationFilter.cshtml view.
Go to line 69 and change the following code:
<a class="toggleControl">@specificationFilterGroup.Name</a>


to

<a class="toggleControl closed">@specificationFilterGroup.Name</a>


After that go to line 85 and change the following code:
<div class="filtersGroupPanel filtersDropDownPanel" data-optionsGroupId="@specificationFilterGroup.Id" style="z-index: @currentZIndex;">


to

<div class="filtersGroupPanel filtersDropDownPanel" data-optionsGroupId="@specificationFilterGroup.Id" style="z-index: @currentZIndex;" style="display: none;">


If you want to do this for the attributes or manufacturers, you need to do the same in the ManufacturerFilter.cshtml and AttributeFilter.cshtml.

Ivan Stoyanov

12 years ago

mrbombay wrote:
Hi Nop-Templates,

I'm testing the ajax filters on my fast local machine, and use mini-profiler to watch te load time. When i load my parent category from the main-menu (1200 products - products from subcategories included) i register a time of 0,5 seconds (after caching). When i filter the first time i'm getting a slow response after 31 seconds. The second filter has a response time of 25 seconds. This is way to slow to use in production. Could this be solved? These are the filters i use:



Hi mrbombay,

We are aware of this problem. It is caused by the large number of products that you have in your category. The Nop Ajax Filters are doing a lot more than the default nopCommerce filters (calculating the discounts, available options after filtration, etc.). We recommend a maximum of 300-400 products in a category and products from subcategories not included. We recommend this not only because of the Nop Ajax Filters, but also because of user experience. When you have a lot of products with different specifications, attributes and manufacturers, the list of this options is too long and it is hard for the user to find and select the necessary option and make the right filtration. At the moment we are working on performance optimization of the Nop Ajax  Filters plugin. We will notify you when we are ready.

We are sorry for your inconvenience.

Ivan Stoyanov

codicezerouno wrote:
Hi, I'm using your plugin on nopCommerce 2.70 but I get the error "Object reference not set to an instance of an object."
The complete error description is:


Hi codicezerouno,

When is this error occurring?  Have you by any chance removed the view mode, page size or sort options dropdowns? Please give us more information.

Ivan Stoyanov

Hi Ivan,
  yes we disabled "Allow customers to select page size" in every category and "Allow view mode changing" in catalog settings.

Can you solve this issue?

Thank you.

codicezerouno

Hi codicezerouno,

Yes we fixed this issue. You need to update to the latest version of the Ajax Filters.  Please read the following post:  http://www.nop-templates.com/boards/topic/412/object-reference-not-set-to-an-instance-of-an-object-on-nopcommerce-270#2089

Ivan, I followed the steps indicated in the post. I found the problem persists removing both page size and view mode selection option but the plugin works removing only view mode selection.


Thanks.
codicezerouno


Hi codicezerouno,

This is very strange. The problem should be fixed. Can you send us admin credentials to your website and FTP credentials to support (at) nop-templates.com
We need this in order to further investigate the problem.

Ivan Stoyanov

codicezerouno wrote:
Hi, I'm using your plugin on nopCommerce 2.70 but I get the error "Object reference not set to an instance of an object."
The complete error description is:


Hi codicezerouno,

When is this error occurring?  Have you by any chance removed the view mode, page size or sort options dropdowns? Please give us more information.

Ivan Stoyanov

Hi Ivan,
  yes we disabled "Allow customers to select page size" in every category and "Allow view mode changing" in catalog settings.

Can you solve this issue?

Thank you.

codicezerouno


Hi codicezerouno,

Yes we fixed this issue. You need to update to the latest version of the Ajax Filters.  Please read the following post:  http://www.nop-templates.com/boards/topic/412/object-reference-not-set-to-an-instance-of-an-object-on-nopcommerce-270#2089

Also can you please try and update the Ajax Filters plugin to the latest version. We added some bug fixes. For more information on how to do this please read the following article: http://www.nop-templates.com/t/How-To-Update-A-NopCommerce-Plugin

Ivan Stoyanov

codicezerouno wrote:
Hi, I'm using your plugin on nopCommerce 2.70 but I get the error "Object reference not set to an instance of an object."
The complete error description is:


Hi codicezerouno,

When is this error occurring?  Have you by any chance removed the view mode, page size or sort options dropdowns? Please give us more information.

Ivan Stoyanov

12 years ago

drcomputer wrote:
How to check data-producid to enable quick view


Hi drcomputer,

By default in nopCommerce 2.7 and 2.8 the .product-item element contains the data-productid attribute. You can see it by inspecting the HTML of a product on the category page.

The Nop Quick View plugin should be working by default. You just need to go to the Settings page of the plugin and check the Enable the Quick View plugin setting.

Best regards.

Ivan Stoyanov

12 years ago

drcomputer wrote:
How to hide plugins menu in admin area in electronics theme or Change NOP Ajax cart to ajax Cart in plugin menu


Hi drcomputer,

There is no such feature. The only way to hide the Plugins menu is to uninstall all plugins. Also the plugins can not be renamed.

mrbombay wrote:
I am using nopcommerce 2.80 and Nop Ajax Filters 2.81. I've changed the global.asax and the same error keep popping up. I've changed the view - CategoryTemplate.ProductsInGridOrLines -  a little bit. The category-navigation looks like this. Could i be this change?


@section left {

    @*--------------------------------------------------------------------*@
    @*subcategories*@
    @*--------------------------------------------------------------------*@
    @{
        //current category ID
        int currentCategoryId = 0;
        if (Url.RequestContext.RouteData.Values["controller"].ToString().Equals("catalog", StringComparison.InvariantCultureIgnoreCase) &&
            Url.RequestContext.RouteData.Values["action"].ToString().Equals("category", StringComparison.InvariantCultureIgnoreCase))
        {
            currentCategoryId = Convert.ToInt32(Url.RequestContext.RouteData.Values["categoryId"].ToString());
        }

    }

    @Html.Widget("categorydetails_before_subcategories")

    @if (Model.SubCategories.Count > 0)
    {
        <div class="sidebar-block">
            <h5>@T("Categories")</h5>

            <ul class="sidebar-navigation">
                @foreach (var item in Model.SubCategories)
                {
                    <li>
                        <a href="@Url.RouteUrl("Category", new { SeName = item.SeName })">@item.Name</a>
                    </li>

                }
            </ul>
        </div>

    }
    else
    {
        if (Model.ParentCategories.Count > 0)
        {

        <div class="sidebar-block">
            <h5>@T("Categories")</h5>

            <ul class="sidebar-navigation">
                @foreach (var item in Model.ParentCategories)
                {
                    <li>
                        @if (currentCategoryId == item.Id)
                        {
                            <a href="@Url.RouteUrl("Category", new { SeName = item.SeName })" class="active">@item.Name</a>
                        }
                        else
                        {
                            <a href="@Url.RouteUrl("Category", new { SeName = item.SeName })">@item.Name</a>
                        }
                    </li>

                }
            </ul>
        </div>

        }

    }
}



Hi

Can you send us FTP and admin credentials to your website at support (at) nop-templates.com, so that we can investigate your issue.

mrbombay wrote:
Hi Nop-Templates,

I'm trying to configure the latest version of ajax filters on my website, but i get an error on the parent category page. I use the option - Include Products From Subcategories. On a child category it works fine. This is the error i'm getting:

POST http://localhost:60000/Catalog7Spikes/GetFilteredProducts 500 (Internal Server Error)


The parameters dictionary contains a null entry for parameter 'categoryId' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult GetFilteredProducts(Int32, SevenSpikes.Nop.AjaxFilters.Models.PriceRangeFilterSlider.PriceRangeFilterModel7Spikes, SevenSpikes.Nop.AjaxFilters.Models.SpecificationFilter.SpecificationFilterModel7Spikes, SevenSpikes.Nop.AjaxFilters.Models.AttributeFilter.AttributeFilterModel7Spikes, SevenSpikes.Nop.AjaxFilters.Models.ManufacturerFilter.ManufacturerFilterModel7Spikes, Nop.Web.Models.Catalog.CatalogPagingFilteringModel, System.String)' in 'SevenSpikes.Nop.AjaxFilters.Controllers.Catalog7SpikesController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.
Parameternaam: parameters


Hi mrbombay

Thank you for choosing our products.
You can see that this feature of the Nop Ajax Filters plugin works fine on our demo website http://demos.nop-templates.com/computers
Can you tell us what version of nopCommerse you are using? Also can you try and restart the your application by changing the Global.asax file? What version of the Nop Ajax Filters plugin are you using (you can check this in the Description.txt file in the Nop Ajax Filters  folder)?

I will be waiting for your reply.

Ivan Stoyanov