Category Archives: Magento

How to override a core controller in the magento

How to Override a core controoler in magento ?? Magento controller class override is something different then others classes. Controller override is not same as model, helper, block override. I found lot of thread on magento forum , but not … Continue reading

Posted in Magento | Tagged , , | 7 Comments

在NetBeans给magento添加提示方法功能

在 magento中,如果你用getModel得到一个对象时,默认没有方法提示的,可以通过添加一个注释来实现

$quote = Mage::getModel(‘sales/quote’) ->setStoreId(Mage::app()->getStore()->getId()); /* @var $quote Mage_Sales_Model_Quote */

通过var的定义,就可以有自动的方法提示了。

Posted in Magento | Tagged | Leave a comment

How to call your hlper class in magento

在magento中,如果你在local下面有自己的模块,并且有自己的空间(象是公司名等),如果你想引用一个 helper的时候,默认magento不能找到你的类,需要在config.xml里定义你的helper类

Posted in Magento | Tagged , | 1 Comment

how to display menu bar in magento

by default install  , the menu bar doesn’t display on the top area, when you change  main category for a default store,then it’s ok .

Posted in Magento | Tagged , | Leave a comment