获得magento simple product的custom option信息
$product= Mage::getModel('catalog/product')->load(174);
$i= 1;
echo"<pre>";
foreach($product->getOptions()as$o) {
echo"<strong>Custom Option:" . $i. "</strong><br/>";
echo"Custom Option TYPE: " . $o->getType() . "<br/>";
echo"Custom Option TITLE: " . $o->getTitle() . "<br/>";
echo"Custom Option Values: <br/>";
// Getting Values if it has option values, case of select,dropdown,radio,multiselect
$values= $o->getValues();
foreach($valuesas $v) {
print_r($v->getData());
}
$i++;
echo"----------------------------------<br/>";
}