Close
Avatar

User posts

Did anything ever come of this? We are experiencing the same thing. Specifically with the Prisma theme. On the infinite scroll, looks like there's 4 separate ajax calls that sometimes just hang:
1. getFilteredProducts
2. RetrieveProductRibbons
3. GetAjaxCartButtonsAjax
4. getquickviewbutton

I should add we're using version 4.2.575.31113 of Nop Ajax Filters for nop 4.20.

Boyko wrote:
We do check for categoryid in the route data so if you don't have it then the Filters will not be shown.


Hm, categoryId seems to be in the route data in this case. This is what my route looks like...
routeBuilder.MapLocalizedRoute("myroute", "my-route",
                new { controller = "Catalog", action = "Category", categoryId = 26 });

Thoughts?

Is there logic inside the widget component to only render if the slug matches a category slug? We have a custom route like "/my-route" that is configured to go to the Category action in the Catalog controller, but with some extra route values as well. When this page is rendered, the filters don't show up, but they work fine on regular category pages. Just wondering if it's because the widget doesn't recognize that it's on a category page. Any ideas to make that work?

5 years ago

On step 2 of the plugin docs, it says to install that package on your salesforce account, but when I click that link, I get this message:

"This app can't be installed.
There are problems that prevent this package from being installed.
Package Not Found  The requested package doesn't yet exist or has been deleted. If this is a recently created package version, please try again in a few minutes or contact the package publisher."

I'm using a developer salesforce account for testing.

6 years ago

SDobrev wrote:
Hi,

The price filter is not available on the search page and this is by plugin design.


Ok, I did eventually notice the spec attribute filter appear, so I guess everything is working as expected for me. Thanks!

6 years ago

Also, for more info, I do see the <div class="nopAjaxFilters7Spikes"> placeholder but it is empty

6 years ago

I'm having the same issue, wouldn't the price filter at least be there if it works on the category pages? Also, I'm using the trial version if that matters.

For other people, to get the categoryId after the ajax is called, I used this...

@{
var filterData = System.Web.Helpers.Json.Decode(Model.SpecificationFilterModel7SpikesJson);
product.CategoryId = filterData.CategoryId;
}

I added this block to the plugin's CategoryTemplate view, right before the call to the _ProductBox partial.  This was the only way I could find to get the categoryId after the ajax call is made. Then the _ProductBox partial calls a child action that takes the productId and categoryId and just returns the PictureModel.

Boyko wrote:
Forgot to answer your question.

You can get the category id from the route data in the view like this:

Url.RequestContext.RouteData.Values["categoryId"]


But I am not sure if the category id will be available in the route data when the ajax requests are made.
You can give it a try and let me know.


Unfortunately, the categoryId is not available when the ajax requests are made.
Is there a category id in this model? SevenSpikes.Nop.Plugins.AjaxFilters.Models.ProductsModel