Skip to main content

Integrated Universal compact view in my magento2 site.

I have a metaproperty called Magento_Asset with two options: “Yes” and “No.”. My requirement is to only display assets where Magento_Asset = "Yes" in compact view.

I attempted to use predefinedMetapropertiesOptions, which successfully applies the filter when the Compact View loads. However, users are still able to remove this filter manually — which I want to prevent.

Is there a supported way to enforce a filter on the Compact View so that only images with Magento_Asset = "Yes" are shown, and the user cannot remove or modify this filter?

 

Be the first to reply!

Reply