Magento – Show custom option on product list page

Tech Bandhu

Its good to show all the product options on list page also, This would be more comfortable to customer for product selection when all options are available product list page, instead togo on product detail page.

magento-show-custom-option

Just add bellow code to template/catalog/product/list.phtml, to show custom options on product list page

After product collection loop, foreach ($_productCollection as $_product):

load($_product->getId());
	$prodAtts   = $product->getOptions();
?>

Before add to cart button, that would be near about

 $optionVal)
	{
		$optStr .= "getId()."]'>";
		foreach($optionVal->getValues() as $valuesKey => $valuesVal)
		{
			$optStr .= "getId()."'>".$valuesVal->getTitle()."";
		}
		$optStr .= "";
	}
	echo($optStr);
?>

View original post

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s