cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying total price on category page (based on custom options)

Displaying total price on category page (based on custom options)

I have many products with 4-5 custom options in my store. Sometimes I have to show them in category view with the option which adds the total price (i.e. red colour +10 euros). How can I show the total price on product list (in category)? I set the default custom options:

 

Go to Mage/Catalog/Block/Product/View/Options/Type/Select.php::getValuesHtml()

Comment (in line no 59) the addOption part of

$select->setName('options['.$_option->getid().']');
 ->addOption('', $this->__('-- Please Select --'));
i.e.

/* ->addOption('', $this->__('-- Please Select --')); */

 

and now when I go to product page, the total price is showing correctly. But how can I display it on category page?