When price filter is shown as a slider and you filter by price you get a GET param in your url something lik https://www.urlofyourshop.com/category/?price%5B0%5D=212-999. In the state block above the filters you will see two links to delete the price, one for 212 and one for 999. But the clear URL isn't made correctly. \Emico\Tweakwise\Model\Catalog\Layer\Url\QueryParameters::getAttributeRemoveUrl is not handeling the values correctly. It's handeling price as a multi select, trying to remove 212 or 999 from the options. But it's checking $index = array_search($value, $values);$values is an array [0 => '212-999'], and $value is 212 or 999, so array search doesn't return a $key and then the remove URL is incorrect.
Environment
PHP Version: 7.0
Magento Version: Magento 2.2.3
Tweakwise Version: 1.9.0
Tweakwise Export Version: 1.1.2
Magento Deploy Mode: production and development
Steps to reproduce
Filter on price
Notice that there are two price remove links
Try to remove price filter by clicking on one of the links
Actual result
Price filter isn't removed
Expected result
[ ] One state link for price
[ ] Price filter will be removed when clicking on the state link
When price filter is shown as a slider and you filter by price you get a GET param in your url something lik
https://www.urlofyourshop.com/category/?price%5B0%5D=212-999
. In the state block above the filters you will see two links to delete the price, one for 212 and one for 999. But the clear URL isn't made correctly.\Emico\Tweakwise\Model\Catalog\Layer\Url\QueryParameters::getAttributeRemoveUrl
is not handeling the values correctly. It's handeling price as a multi select, trying to remove 212 or 999 from the options. But it's checking$index = array_search($value, $values);
$values
is an array[0 => '212-999']
, and$value
is212
or999
, so array search doesn't return a $key and then the remove URL is incorrect.Environment
Steps to reproduce
Actual result
Expected result