mstuart wrote:Ok... I figured out the second issue.... sort of. This is more an issue with the
~/Views/Catalog/CategoryTemplate.ProductsInGridOrLines.cshtml
It only show products and the container <div> (product-list, product-grid) when there are products assigned to that category. So I need to make some adjustments.
Is there any documentation on the javascript processes?
Specifically, I'm looking for how it populates the divs (product-list, product-grid).
I want to hide the sub-category-grid <div> when the filter returns results and show it again when all filters are cleared.
No sure which js include file and function(s) to look for.
Thanks again for all your help and patience.
Hi mstuart,
Sure you can do whatever changes you need in the Filters but please refer to the
documentation and especially the various selectors as they need to match your Html structure (if you make any changes to it).
About the subcategories and the Filters - there are two settings a nopCommerce one and one for the Ajax Filters. The nopCommerce one has nothing to do with the Filters and it basically says whether to show the products from the subcategories along with images of the subcategories themselve, which are always shown by default. If you enable this setting you will probably want to enable the same setting in the Ajax Filters, so that they can filter on the same set of products. But there is one important thing to note: The Ajax Filters will operate only on the products in the immediate subcategories and not in the next levels under them.
You can hook to the Ajax Filter filtration completed event. Here is a sample code:
<script type="text/javascript">
$(document).on("nopAjaxFiltersFiltrationCompleteEvent", function () {
Add you logic here
});
</script>
Hope this helps!