Struggling to get value of the selected option for product.
Example:Product require assembly so created attribute dropdown
Below few methods I've tried
echo $data = $_product->getAssembly();
echo $label = $_product->getAttributeText('Assembly');
$_attribute = $_product->getResource()->getAttribute('assembly');
$attribute_label = $_attribute->getStoreLabel(Mage::app()->getStore()->getName());
echo 'Label: '.$attribute_label;//empty
$attributeModel = Mage::getModel('eav/entity_attribute')->loadByCode('catalog_product','assembly');
$attributeModel->getData('label');
echo 'Model: '.$attributeModel;// empty
$atributeCode = 'assembly';
$attribute = Mage::getModel('eav/config')->getAttribute('catalog_product',$atributeCode);
$options = $attribute->getSource()->getAllOptions();
var_dump
is displaying only an array of all options.
How can I get it ?