Thursday 10 December 2015

How to get custom option values in Magento?

If you want custom options value in magento. Then

You can try following code.




<?php
             
          $customoptions = $item->getProductOptions();
                 
           foreach($customoptions ['options'] as $key=>$valuecb)
             {

               echo $valuecb['label'];

              echo $valuecb['option_value'];

  }
}


?> 

5 comments:

  1. Really good to know about the custom options values in magento. Its really impressive post. Really appreciated and keep updating your post.
    Buy vedic gemstone online 

    ReplyDelete
  2. It is the way to present a post in a proper way, this post is so well maintained and very informative, thanks for sharing this post and keep updating your post.
    omega 3 fatty acids tablets

    ReplyDelete
  3. This post is really nice, thanks for it and keep updating.
    Needlescopic surgery

    ReplyDelete