Get Product Custom Options Label & Id in magento

, , No Comments
$product = Mage::getModel(“catalog/product”)->load($product_id);
$theoptions = $product->getOptions();
foreach($theoptions as $opkey=> $opval)
{
echo $opval->getOptionId().’|’.$opval->getTitle();
}

0 comments:

Post a Comment