Heim  >  Fragen und Antworten  >  Hauptteil

Shopware 6 Administration: listFilterOptions() von SwProductList aus Custom Plugin Component lesen

Version Shopware 6.4.20

Mein benutzerdefiniertes Plugin per Override SwProductDetail 导入了一个组件。导入的组件需要 SwProductListfilterOptions.

Wie lese ich die Liste von SwProductList in der obigen Komponente?

P粉615829742P粉615829742375 Tage vor395

Antworte allen(1)Ich werde antworten

  • P粉005105443

    P粉0051054432023-09-19 17:59:45

    // myComponent.js
    
    ...
    const fnFilterOptions = Shopware.Component.getComponentRegistry().get('sw-product-list').computed.listFilterOptions;
    const filters = fnFilterOptions.call(this)
    ...

    Antwort
    0
  • StornierenAntwort