Skip to content

Magento: Get Product Custom Options Label & Id

this is made me crazy, fortunaley i found it after loooong hours, here we go

 

$product = Mage::getModel(“catalog/product”)->load(173);
$theoptions = $product->getOptions();

foreach($theoptions as $opkey=> $opval)
{

echo $opval->getOptionId().’|’.$opval->getTitle().'<br>’;

}

Share

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.