Some time we need to display custom option of product on category list page
to achive this task we only need to paste the code given below in your list.phtml file
$productSku = $_product->getSku();
$product = Mage::getModel('catalog/product');
$productId = $product->getIdBySku( $productSku );
$product = Mage::getModel("catalog/product")->load($productId);
$attVal = $product->getOptions();
$optStr = "";
// loop through the options
foreach($attVal as $optionKey => $optionVal) {
//$optStr .= "<br/>";
//$optStr .= $optionVal->getTitle().": ";
$optStr .= "<select style='display:block; clear:both;' name='options[".$optionVal->getId()."]'>";
foreach($optionVal->getValues() as $valuesKey => $valuesVal) {
$optStr .= "<option value='".$valuesVal->getId()."'>".$valuesVal->getTitle()."</option>";
}
$optStr .= "</select>";
}
echo($optStr );

3 comments
sachin says:
December 6, 2011 at 5:02 pm (UTC 5.5)
Thanks it very useful for development… thanks again
shani says:
January 9, 2012 at 1:07 pm (UTC 5.5)
Thanks man it works like a charm
Boris says:
May 4, 2012 at 2:15 am (UTC 5.5)
Great work. Can you include the custom options price also i cannot get the customs options price working on the list.phtml file.