Time of Update: 2018-12-03
對於菜單,如果想顯示菜單,下面是直接改動原始碼的方式實現的,當然在系統升級的時候有可能代碼麻煩,完美方式當然是重寫這個類,下面介紹的直接改動系統代碼: 1由page.xml得出<block type="core/text_list" name="top.menu" as="topMenu"/>type="core/text_list"得出,這個只是一個容器,類似於left,content等。2有catelog.xml得出 <reference
Time of Update: 2018-12-03
在menu做好的基礎上!!!!1app/etc/modules2app/code/community/AQ/Gao/etc/config.xml<?xml version="1.0"?><config> <modules> <AQ_Gao> <version>0.1.21</version> </AQ_Gao> </modules>
Time of Update: 2018-12-03
資料庫--產品資料庫表結構分析product1資料庫實體表:catalog_product_entity。屬性:entity_id,entity_type_id,attribute_set_id,type_id,sku,has_options,required_options,created_at,updated_at.2next層-->屬性類型表join(entity_id),通過entity_id和catalog_product_entity關聯。catalog_product_en
Time of Update: 2018-12-03
1訪問後台路徑/../index/bao轉向下面的方法2class AQ_Gao_IndexController extends Mage_Adminhtml_Controller_Action{public function baoAction(){ $this->loadLayout(); $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
Time of Update: 2018-12-03
建造多網域名稱網站例子:http://www.luxuryjewelryonline.com/tiffany/http://www.luxuryjewelryonline.com/cartier/就和這種:步驟:1在後台添加分類做catelogtiffany ------cartier
Time of Update: 2018-12-03
1.controllerpublic function editAction(){ $id = $this->getRequest()->getParam('id');$model = Mage::getModel('blog/blog')->load($id);if($model->getId() || $id ==0){$data = Mage::getSingleton('adminhtml/session')->getFormData(true);if(
Time of Update: 2018-12-03
Magento Events Explained and a few Gotchas avoided!NextPreviousJanuary 23, 20107 CommentsCategoriesGoogle CheckoutMagentoPHPTagseventsGoogle CheckoutjavaMagentoobserversShareOn TwitterOn FacebookThis post is about the Magento Event system – a full
Time of Update: 2018-12-03
1block $this->setChild('add_root_button', $this->getLayout()->createBlock('adminhtml/widget_button') ->setData(array( 'label' => Mage::helper('catalog')->__('Add Root
Time of Update: 2018-12-03
1 首先寫controllerpublic function kunAction(){$this->loadLayout();$this->_addContent($this->getLayout()->createBlock('gao/manage_gao')); $this->renderLayout(); }2編寫blockapp/code/community/AQ/Gao/Block/Manage/Gao.phpapp/code/community/AQ/
Time of Update: 2018-12-03
Customizing Magento using Event-Observer MethodLast modified by naitsirch on Mon, September 6, 2010 10:57Edit this page|Old Revisions TABLE OF CONTENTSCustomizing Magento using Event-Observer MethodNOTICE:Make sure the compiler is turned
Time of Update: 2018-12-03
點擊左邊框,然後點擊delete,刪除grid中的記錄 1在grid中寫入函數 protected function _prepareMassaction() { $this->setMassactionIdField('post_id'); $this->getMassactionBlock()->setFormFieldName('gao');
Time of Update: 2018-12-03
public function saveAction() {if ($data = $this->getRequest()->getPost()) {//var_dump($data);exit; $model =
Time of Update: 2018-12-03
<?php class MyCompany_Catalog_Block_Product_Featured extends Mage_Catalog_Block_Product_Abstract { public function getFeaturedProducts(){ $ids = $this->_getFeaturedProductsIds(); $collection =
Time of Update: 2018-12-03
在grid裡面實現這個方法: protected function _prepareMassaction() { $this->setMassactionIdField('post_id'); $this->getMassactionBlock()->setFormFieldName('blog'); $this->getMassactionBlock()->addItem('delete', array(
Time of Update: 2018-12-03
用Magento的Email模板機制發郵件 文章分類:PHP編程Magento的Mage::getModel('core/email_template')模型可用來發信。 步驟I. 在你的模組(其實任意Module都可以)的etc/config.xml的根標籤<config>下添加代碼 Xml代碼 <default> <{限定名1}> <{限定名n}> <enabled>1<
Time of Update: 2018-12-03
Main aims:* Add the category tree of current viewing in left navigation sidebar instead of the “Browse by” box on top* Remove the popup menuThere are 3 files that you need to change, including one hardcode file (navigation.php). Therefore, you
Time of Update: 2018-12-03
過程中注意事項:當安裝一個表的時候,就會在core_resource中加入一條資料,來記錄改資料表的版本情況。在安裝過程中,如果mysql4-install-0.1.0.php有錯誤,該表不能建立,但是在core_resource表中還是加入了該<setup>的資訊,故下次調試的時候記住,到表core_resource中刪除對用的那條資料,否則,安裝不上~!!!!2.1app/ect/modules/2.2app/code/community/AQ/Gao/etc/config.x
Time of Update: 2018-12-03
http://www.crucialwebhost.com/blog/how-to-setup-multiple-magento-stores/#addon-domain-method地址來源 How To Setup Multiple Magento Storesby Kyle on December 28, 2008 · Posted in Howto, Magento · 78 CommentsThere are numerous ways to setup multiple
Time of Update: 2018-12-03
magento刪除訂單,本身沒有這個功能,好像涉及到法律的問題,所以magento,沒有這個功能,但是我們測試的訂單,刪除也費盡,有一個外掛程式,http://www.magentocommerce.com/magento-connect/EMThemes.com/extension/4562/em_deleteorder/reviews,key:magento-community/EM_DeleteOrder,1.4.2不好用,看評論,1,4,1和1,。5沒有問題!!但是我的版本是1.4.2,
Time of Update: 2018-12-03
明天就過年了,哈哈! 1 如何獲得配置資料Mage::getStoreConfig('段',Store_id),譬如:Mage::getStoreConfig('helloworld_options/message/hello_message',1);可以得到sysytem.xml檔案中配置後,然後再後台system-config裡面設定的值。2如何配置資料。2.1首先在config.xml中要指明helpers,譬如:<global><helpers><hello