Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 14891

Questions related to Magento collections

1 vote
Accepted

Loading variable amount of products based on multiple attributes

The loadByAttribute function uses a collection to search for the matched product, but the problem with this would be that you have no order control over the returned product. … So I think one way you could do this would be by using a product collection and some filters for the attributes: $collection = Mage::getModel('catalog/product')->getCollection() ->addAttributeToFilter …
  • 1,241
8 votes
Accepted

Filters on custom product listing page not working

I think the problem with the filters not being applied is caused by how you initialize the product collection in the brand helper getProductCollection function. … = $layer->getProductCollection() ->addAttributeToFilter('supplier_code', $brand->getBrandCode()); return $collection; } …
  • 1,241