Я стараюсь переопределить метод getSelectionQtyTitlePrice Я создал файлы My_Bundle.xmlкак метод коррекции getSelectionQtyTitlePrice
<?xml version="1.0" ?>
<config>
<modules>
<My_Bundle>
<active>true</active>
<codePool>local</codePool>
</My_Bundle>
</modules>
</config>
в ПА -> Система-> Дополнительно модуль существует и включить в приложении/код/местные/My/Bundle/Block/Каталог/продукта/View/Type/Bundle Option.php
class My_Bundle_Block_Catalog_Product_View_Type_Bundle_Option extends Mage_Bundle_Block_Catalog_Product_View_Type_Bundle_Option
{
public function getSelectionQtyTitlePrice($_selection, $includeContainer = false)
{
$price = $this->getProduct()->getPriceModel()->getSelectionPreFinalPrice($this->getProduct(), $_selection);
$this->setFormatProduct($_selection);
$priceTitle = $_selection->getSelectionQty()*1 . ' x ' . $this->escapeHtml($_selection->getName());
$priceTitle .= ' ' . ($includeContainer ? '<span class="price-notice">' : '')
. '' . $this->formatPriceString($price, $includeContainer)
. ($includeContainer ? '</span>' : '');
return $priceTitle;
}
}
в приложение/код/местные/My/Bundle/и т.д./config.xml
<?xml version="1.0"?>
<config>
<modules>
<My_Bundle>
<version>0.0.1</version>
</My_Bundle>
</modules>
<global>
<blocks>
<bundle>
<rewrite>
<catalog_product_view_type_bundle_option>My_Bundle_Block_Catalog_Product_View_Type_Bundle_Option</catalog_product_view_type_bundle_option>
</rewrite>
</bundle>
</blocks>
</global>
</config>
но это решение не отменяет метод getSelectionQtyTitlePrice. Thx за помощью