1

I want to get all product list who have tier price.

How to filter by tier price?

$collection = Mage::getResourceModel('catalog/product_collection');

I have tried :

$collection->addAttributeToFilter('tier_price', 'notnull');

But it now worked.

1

You can try this

$collection = Mage::getResourceModel('catalog/product_collection');

If you are not getting tier price data add it.

$collection->addTierPriceData();

You can then filter

$collection->getSelect()->where('tier_price IS NOT NULL');
  • thanks but where condition not worked – Nikunj Vadariya May 25 '17 at 9:03
  • try $collection->getSelect()->where('price_index.tier_price IS NOT NULL'); – Priyank May 25 '17 at 9:10

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.