I want to show custom product comparison with standard products on the product page but the attributes that are used to compare the products may be different than magento comparision.
So I followed https://gielberkers.com/add-custom-properties-magento this blog to add the custom property to every attribute, depending on the value of this newly added property I want to show the attribute in comparison. then i have created another attribute from admin panel for product and will store the similar standard products id's in that.
After that i have registered a module created a block, fetched the current product and using the attribute which i have created from admin panel, fetched the id's of similar standard products and created collection of then, they can be 2 or 3 products
$collection=Mage::getModel('catalog/product') ->getCollection() ->addAttributeToSelect('*') ->addFieldToFilter('entity_id', array('in' => array($productIds)));
This is how collection is created
Now i have to fetch ALL the attributes of products in collection and check if the newly added property(which is added to every attribute it's type is text and i'm giving value yes if i want to show that attribute) of each attribute, if it is yes then i have to show the attribute, how to do this ? Am i going in a right direction,
Thanks in advance