EmicoEcommerce / Magento2Tweakwise-archived

Magento 2 module for Tweakwise integration
Other
9 stars 25 forks source link

Not possible to get the active filters #22

Closed JKingma closed 6 years ago

JKingma commented 6 years ago

Issue Brief

What is the purpose of this issue? Explain the background context. For one of the webshops we build, we would like to show a button or link to remove all active filters. This is not possible since the function to get the active filters always returns an empty array.

Environment

Steps to reproduce

  1. Select a configured filter in the frontend and wait for the page to reload.
  2. Look for a button or link to remove all active filters.

Actual result

  1. No active filters are shown
  2. The function $block->getLayer()->getState()->getFilters() in vendor/emico/tweakwise/src/view/frontend/templates/product/navigation/view.phtml always returns an empty array.
  3. data-count therefor is always 0.

Expected result

  1. The function $block->getLayer()->getState()->getFilters() in vendor/emico/tweakwise/src/view/frontend/templates/product/navigation/view.phtml always returns a filled array of active filters.
  2. data-count shows the number of active filters.
  3. All filters can be removed at once using a "remove all filter" button.
JKingma commented 6 years ago

@Fgruntjes Any update on this? Is there anything I can clarify?

Fgruntjes commented 6 years ago

@JKingma

No the information provided is very clear, thank you. This issue is on our roadmap but we did not have the time to fix it yet. For any planning related questions please contact Tweakwise.