I got Option ID from single attribut in category page by:

$request = $this->getRequest()->getParams();

Of course i parse it and i receive attribute name and attribute option ID.

I want description for this single attribute ID.

I receive Title by Attribute Option ID but i don't have any idea how to get description (details) of product. Can someone give me some information about that? My code to get Title:

$attributeDetails = Mage::getSingleton("eav/config")->getAttribute("catalog_product", $main_key);
echo $optionValue = $attributeDetails->getSource()->getOptionText($attribues_id[0]);

Thank you!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.