Magento Forum

How do i retrieve categories from products ? 
 
kalote
Jr. Member
 
Total Posts:  13
Joined:  2007-12-04
 

HI,
I have some issues concerning the retrievement of the category. Explanation :
i have an array with my products :

$request=Mage::getResourceModel('catalog/product_collection')
    ->
addAttributeToSelect('*')
    ->
load();
$vars=$request->exportToArray();
from that, i want to know from which category my product is, but i haven’t find any collection or helper for that.

At the end, it must be not the category from the products, but with a category (the name, not the id), i must find all the products from it.

Help please smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
kalote
Jr. Member
 
Total Posts:  13
Joined:  2007-12-04
 

It’s just me, or the support community for magento is a little bit ... useless ?? I try to ask severals question and i still don’t know how to proceed to make a catalog on my own, and retrieve categories from product ...!!!
I’m not yelling on magento or the community, because you helped me, but, as far as i know, the community purpose is to provide advices and help for those who discover magento.
Anyway, i need help, please, and i will be very happy if somebody give me an answer or a track to follow ....
Thanks smile

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top