Shopware 6 Administration: Reading listFilterOptions() of SwProductList from Custom Plugin Component
P粉615829742
P粉615829742 2023-09-18 18:36:26
0
1
439

Version Shopware 6.4.20

My custom plugin imports a component by overriding SwProductDetail. Imported components require the filterOptions of SwProductList.

How to read the list of SwProductList in the above component?

P粉615829742
P粉615829742

reply all(1)
P粉005105443
// myComponent.js

...
const fnFilterOptions = Shopware.Component.getComponentRegistry().get('sw-product-list').computed.listFilterOptions;
const filters = fnFilterOptions.call(this)
...
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template