In our case, our plugin overrides the default category method because we are using a customized catalog class, with new properties.
When enable your plugin, filters are displayed correctly, but same error above when selecting any filter option, we added the code below and error is fixed, but when any filter selected, we always got "No Products Found message", even when clearing filters. Can you help?
Can you check the Network tab in your browser console and inspect the Request Payload for the getFilteredProducts request?
Make sure it contains the appropriate ids of the selected filter options. For example, if you select some specification the specificationFiltersModel7Spikes.SpecificationFilterGroups should have some of the items with FilterItemState selected.
Can you check the Network tab in your browser console and inspect the Request Payload for the getFilteredProducts request?
Make sure it contains the appropriate ids of the selected filter options. For example, if you select some specification the specificationFiltersModel7Spikes.SpecificationFilterGroups should have some of the items with FilterItemState selected.
Hi!
This is the payload when select atribute color: black (Preto) in our language!
I have found a bug in ajax filter while testing in base nopCommerce with deafult clean theme. I have unchecked _Show Ajax Filters on Category Page_ option from admin panel.
Then I go to category pages of public store. While I have changed the sort option, the sort order actually doesn't change. You can verify in the images by seeing the _order by_ parameter in the url and the sort option.
I have found a bug in ajax filter while testing in base nopCommerce with deafult clean theme. I have unchecked _Show Ajax Filters on Category Page_ option from admin panel.
Then I go to category pages of public store. While I have changed the sort option, the sort order actually doesn't change.
Hi mkzaman,
That is actually not a bug but expected behavior. Since the Ajax Filters are not integrated on the category pages then the code that sets the Default Sort Order never gets executed. Please note that the setting of the Default Sort Order works only in the context of the Ajax Filters plugin so without the Ajax Filters it will not work. Unfortunately nopCommerce does not have a setting to specify the default sort order and without the Ajax Filters plugin the sort order will be the first one (this is how nopCommerce works). If you want to have such a setting with/without the Ajax Filters plugin then you need to suggest this to the nopCommerce team and have them implement it as a general setting for nopCommerce. There is a similar work item here but you can also suggest your idea in the nopCommerce forum.