Thursday 10 December 2015

How to get Custom Options Programmatically any where in Magento?

How to get Custom Options Programmatically any where in Magento?

You can get custom options by following code. 


$product = Mage::getModel("catalog/product")->load($_product->getId());


$custom = $product->getOptions();


foreach($
custom as $customoptionKey => $customoptionVal){


    foreach($
customoptionVal->getValues() as $valuesKey => $valuesVal){


        echo $
customoptionVal->getId();


    }

}

4 comments:

  1. Its a really nice blog and pretty well maintained. Good to know about the custom options.Thanks for posting, and keep updating the post.
    buy burma ruby gemstone online

    ReplyDelete
  2. There are various kinds of custom options, This post is so informative and in a well mannered. Thanks for sharing and keep updating.
    omega 3 fatty acids supplement

    ReplyDelete
  3. This post is really very amazing, thanks for this kind of posts, really appreciated.
    laparoscopic colon cancer surgery

    ReplyDelete