I am trying to apply filter product collection by price range:

$productsCollection = $this->_productsCollectionFactory->create();
$collection = $productsCollection->addAttributeToSelect('*');
$collection->addFieldToFilter('status', Status::STATUS_ENABLED);
$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.

How to filter product collection by price after tax?

I tried this solution but it's not working.

please help with this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.