I am working on a project and seem to be running into an issue with a combination of Filter, Nest, and Load.
The project is a collection of 100+ products. There are several cms collections that are used for the categorization of the products. One of those collections (sizes) is over 100 items.
The site uses CMS Load to load the products with pagination. It also uses CMS Nest to apply the various muti-reference categories to each product. I have yet to set up CMS Nest to utilize plain-text, however, it may be needed for some of these larger category collections. The site also uses CMS Filter against those Nested collections to filter the products.
In order to utilize one of the cms collections as a filter, since it is over 100+ items, it is loaded using CMS Load. The collection loads and renders, however when selecting an option to filter by it does not filter. The other instances where I use CMS Filter on collections that do not use CMS Load do filter as expected.
Hello @edrock, since you are using 3 instances of attributes, it would be best to initiate the filter attribute after Load and Nest are done executing.
So the scripts will execute in this order: Load => Nest => Filter
Here is how you do it
Add defer fs-attributes-preventload="true" to both nest and filter scripts:
Awesome that it worked. If you wish to include sort, yes, you should also defer it till cms nest is done. So you’ll add the defer to the script and add this line after window.fsAttributes.cmsfilter.init(); line
@Support-Luis I believe I’m having the same issue as above - I have tried the suggested solutions and run the automatic support attribute - am I missing something