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.


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):

	$prodAtts   = $product->getOptions();

Before add to cart button, that would be near about

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

View original post


Leave a Reply

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

You are commenting using your 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