Description
The marktplaats price filters aren't working.
The solution is quite simple. The minimum and maximum have to be put into the URL in the attributeRanges[] instead of direct attributes. When both are empty, you don't need the attributeRanges. When one of them is left empty, the other one needs to be null.
With minimum 100 cents and no maximum, the URL would be like this: "https://www.marktplaats.nl/lrp/api/search?attributeRanges[]=PriceCents%3A100%3Anull&query=..."
To fix it, remove line 125 to 130, and change line 142 to this:
$url = 'https://www.marktplaats.nl/lrp/api/search?' . ((!is_null($this->getInput('f')) || !is_null($this->getInput('t'))) ? 'attributeRanges[]=PriceCents%3A' . $this->getInput('f') ?? 'null' . '%3A' . $this->getInput('t') ?? 'null' . '&' : '') . 'query= . urlencode($this->getInput('q')) . $query;
Not the cleanest code, but it works 😛