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 Answer 1

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');
2
  • thanks but where condition not worked Commented May 25, 2017 at 9:03
  • try $collection->getSelect()->where('price_index.tier_price IS NOT NULL');
    – Priyank
    Commented May 25, 2017 at 9:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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