1

It is possible to get in only one collection the list of products from all stores (with different translations of the products attributes)?

Thanks for help

1

Yes it is possible you can simply get all those by going loops

Load all of the stores and then load categories on those stores -> and then load all of the products in those stores.

Let me know if you need further code as well?

  • Why do you need to get the categories? – benmarks Jun 26 '13 at 12:59
  • Because you can not simply get all products by store id – Kuldeep Jul 4 '13 at 5:09
1

You can do it even easier:

$collection = Mage::getResourceModel('reports/product_collection')->addAttributeToSelect('*');
  • This collects all store views' data as well? – benmarks Jun 25 '13 at 20:55
  • Unless you apply addStoreFilter(). – user487772 Jun 25 '13 at 20:56
  • 1
    I don't see how this could work as OP intends - the collection item data will be fetched with admin store scope. Have you tested? – benmarks Jun 26 '13 at 11:12
  • But each product in admin scope belongs to at least one store. Right? – user487772 Jun 26 '13 at 12:00
  • I think OP wants each product attribute with all translations from one collection. – benmarks Jun 26 '13 at 12:02

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.