i'm working on a productlisting with filterable on Minimum Selling Quantaty (min_sale_qty).

As i can see, the problem is, that this field isn't an normal Product Attribute, but an Stockitem Attribute.

Thus the normal way with $_productCollection->addAttributeToFilter('min_sale_qty', ...) or similar does not work. Can anybody help?

1 Answer 1


Example code is:

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

    $filter_qty = 3;

    /* filter code */
          '{{table}}.min_sale_qty = ' . (int)$filter_qty,
    //* filter code */

    echo $_productCollection->count();

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.