I am trying to apply filter product collection by price range:
$productsCollection = $this->_productsCollectionFactory->create(); $collection = $productsCollection->addAttributeToSelect('*'); $collection->addFieldToFilter('status', Status::STATUS_ENABLED); $collection->addMinimalPrice(); $select = $collection->getSelect(); $select->where('price_index.min_price '.$condType. $filter['value']);
but above code works for only product actual price and min or max price. I want to apply filter price including tax.
I tried this solution but it's not working.
please help with this.