Создал свой модуль с помощью modulecreator. Сделал все как по инструкии, но ничего не происходит. Помогите пожплуйста.
Вот мой config.xml
<?xml version="1.0"?>
<config>
<modules>
<My_Toplinks>
<version>0.1.0</version>
</My_Toplinks>
</modules>
<global>
<block>
<Checkout>
<rewrite>
<links>My_Toplinks_Block_Links</links>
</rewrite>
</Checkout>
</block>
</global>
</config>
Вот собственно сам links.php из My/Toplinks/Block
<?php
class My_Toplinks_Block_Links extends Mage_Checkout_Block_Links
{
public function addCheckoutLink()
{
if (!$this->helper('checkout')->canOnepageCheckout() || Mage::helper('checkout/cart')->getItemsCount() < 1) {
return $this;
}
$parentBlock = $this->getParentBlock();
if ($parentBlock && Mage::helper('core')->isModuleOutputEnabled('Mage_Checkout')) {
$text = $this->__('Checkout');
$parentBlock->addLink($text, 'checkout', $text, true, array(), 60, null, 'class="top-link-checkout"');
}
return $this;
}
}

Вход
Регистрация
Помощь

