- 浏览: 73430 次
- 性别:
- 来自: 上海
最新评论
Before install:
1. Go to app/etc/modules, edit Mage_All.xml, only set the following modules active.
Mage_Core
Mage_Eav
Mage_Page
Mage_Install
Mage_Admin
Mage_Adminhtml
Mage_Cron
Mage_Directory (need by customer module and system country option)
Mage_Customer
Mage_Log
Mage_Backup
Mage_Poll
Mage_Rating
Mage_Cms
Mage_Newsletter
Mage_GoogleAnalytics
Mage_Media
Mage_Contacts
Mage_Dataflow (need by customer)
2.Only keep the following modules (set others as inactive)
Mage_Api.xml
Mage_Compile.xml
Mage_Connect.xml
Mage_PageCache.xml
Mage_Widget.xml
3. Install Magento as normal, if success, there will be 110 tables...(less)
4.Go to Magento backend, will throw errors because admin dashboard uses some features of sales (order, product, etc).
Rewrite Mage_Adminhtml_Block_Dashboard
rewrite the construct and _prepareLayout
public function __construct()
{
parent::__construct();
//set to different template
$this->setTemplate('cmsdashboard/index.phtml');
}
protected function _prepareLayout()
{
//nothing
}
5.Widget not work, need rewrite.
In Mage/Widget/Model/Widget/Instance.php,remove or comment the following code:
76-79
/*foreach (Mage_Catalog_Model_Product_Type::getTypes() as $typeId => $type) {
$this->_layoutHandles[$typeId.'_products'] = str_replace('{{TYPE}}', $typeId, self::PRODUCT_TYPE_LAYOUT_HANDLE) ;
$this->_specificEntitiesLayoutHandles[$typeId.'_products'] = self::SINGLE_PRODUCT_LAYOUT_HANLDE;
In Mage/Widget/Block/Adminhtml/Widget/Instance/Edit/Tab/Main/Layout.php
comment or remove 155-181
/*$options[] = array(
'label' => Mage::helper('widget')->__('Categories'),
'value' => array(
array(
'value' => 'anchor_categories',
'label' => Mage::helper('widget')->__('Anchor Categories')
),
array(
'value' => 'notanchor_categories',
'label' => Mage::helper('widget')->__('Non-Anchor Categories')
)
)
);
foreach (Mage_Catalog_Model_Product_Type::getTypes() as $typeId => $type) {
$productsOptions[] = array(
'value' => $typeId.'_products',
'label' => $type['label']
);
}
array_unshift($productsOptions, array(
'value' => 'all_products',
'label' => Mage::helper('widget')->__('All Product Types')
));
$options[] = array(
'label' => Mage::helper('widget')->__('Products'),
'value' => $productsOptions
);*/
}*/
Done! Enjoy!
1. Go to app/etc/modules, edit Mage_All.xml, only set the following modules active.
Mage_Core
Mage_Eav
Mage_Page
Mage_Install
Mage_Admin
Mage_Adminhtml
Mage_Cron
Mage_Directory (need by customer module and system country option)
Mage_Customer
Mage_Log
Mage_Backup
Mage_Poll
Mage_Rating
Mage_Cms
Mage_Newsletter
Mage_GoogleAnalytics
Mage_Media
Mage_Contacts
Mage_Dataflow (need by customer)
2.Only keep the following modules (set others as inactive)
Mage_Api.xml
Mage_Compile.xml
Mage_Connect.xml
Mage_PageCache.xml
Mage_Widget.xml
3. Install Magento as normal, if success, there will be 110 tables...(less)
4.Go to Magento backend, will throw errors because admin dashboard uses some features of sales (order, product, etc).
Rewrite Mage_Adminhtml_Block_Dashboard
rewrite the construct and _prepareLayout
public function __construct()
{
parent::__construct();
//set to different template
$this->setTemplate('cmsdashboard/index.phtml');
}
protected function _prepareLayout()
{
//nothing
}
5.Widget not work, need rewrite.
In Mage/Widget/Model/Widget/Instance.php,remove or comment the following code:
76-79
/*foreach (Mage_Catalog_Model_Product_Type::getTypes() as $typeId => $type) {
$this->_layoutHandles[$typeId.'_products'] = str_replace('{{TYPE}}', $typeId, self::PRODUCT_TYPE_LAYOUT_HANDLE) ;
$this->_specificEntitiesLayoutHandles[$typeId.'_products'] = self::SINGLE_PRODUCT_LAYOUT_HANLDE;
In Mage/Widget/Block/Adminhtml/Widget/Instance/Edit/Tab/Main/Layout.php
comment or remove 155-181
/*$options[] = array(
'label' => Mage::helper('widget')->__('Categories'),
'value' => array(
array(
'value' => 'anchor_categories',
'label' => Mage::helper('widget')->__('Anchor Categories')
),
array(
'value' => 'notanchor_categories',
'label' => Mage::helper('widget')->__('Non-Anchor Categories')
)
)
);
foreach (Mage_Catalog_Model_Product_Type::getTypes() as $typeId => $type) {
$productsOptions[] = array(
'value' => $typeId.'_products',
'label' => $type['label']
);
}
array_unshift($productsOptions, array(
'value' => 'all_products',
'label' => Mage::helper('widget')->__('All Product Types')
));
$options[] = array(
'label' => Mage::helper('widget')->__('Products'),
'value' => $productsOptions
);*/
}*/
Done! Enjoy!
发表评论
-
Magento随机生成sales rule的coupon code
2013-01-02 22:09 2268在Magento中可以使用SalesRule模块下的Mage_ ... -
Magento 后台配置中实现日期选择 (Date picker)
2012-12-28 15:07 2507首先,创建一个新的Form Field 类: <?p ... -
获得指定customer 购买的产品数据
2011-12-10 20:54 1370获得指定customer 购买的产品信息,如果是configu ... -
将缺货产品放在产品列表后面
2011-12-10 20:50 1400Rewrite Mage_Catalog_Model_Laye ... -
Mac Lion上安装配置Nginx PHP PHP-FPM
2011-12-10 16:01 8033<!--?xml version="1.0&q ... -
How to redirect to another url in block or template
2011-02-25 13:47 1131In Block class: public funct ... -
Use call back function to proccess Magento large collection
2011-01-19 12:58 945$orders = Mage::getModel('sal ... -
How to remove unnecessary columns in Magento collection
2011-01-19 12:56 1137$orders = Mage::getModel('sal ... -
How to calculate currency according to reward points rate in Magento
2011-01-13 18:03 1334$rate = Mage::getModel('enter ... -
Magento二次开发的利器:Rewrite
2010-12-08 17:15 2739Magento是一个十分优秀的电子商务系统,但是有时候我们需要 ... -
增加Magento后台管理功能三:在后台设置(System/Configuration)中加入自定义设置
2010-11-30 16:17 1978在模块的etc目录下新建system.xml配置文件,内容如下 ... -
增加Magento后台管理功能二:开发后台Controller
2010-11-30 16:02 2711在模块的controllers目录下创建Adminhtml目录 ... -
增加Magento后台管理功能一:在后台管理界面加入菜单
2010-11-30 15:47 4539在模块的etc目录下增加adminhtml.xml配置文件,用 ... -
Magento在CMS Page中增加用户信息变量
2010-11-26 10:14 2832Magento的cms页面和static block页面中可以 ... -
Magento根据不同的浏览器自动切换package或 theme
2010-11-26 10:05 2069在后台设置中: System > Configurat ... -
Magento让后台数据列表中的action列链接在新窗口打开
2010-11-08 16:56 1161'actions' => array( ... -
Maegen获得后台当前用户的信息
2010-11-08 16:53 917$admin = Mage::getSingleton(' ... -
Magento中用子类替换Block
2010-10-15 10:47 1857Step 1:创建一个新的Module Step 2: 编辑模 ... -
Magento中添加带有选项的属性
2010-10-14 14:49 1455下面的代码为Customer实体添加了性别属性,有两个可选值 ... -
Magento为后台用户保存操作日志(企业版)
2010-09-19 17:00 2765protected function _logAdm ...
相关推荐
How to customize your shell prompt. How to be efficient at the command line by using aliases, tab completion, and your shell history. How to schedule and automate jobs using cron. How to switch ...
PLM ENOVIA-Development开发手册-2
You will learn about the basic plots, how to customize them, and combine them to make sophisticated figures. Along with basic plots, you will also learn to make professional scientific plots.
VCL Layout Control - How to Create and Customize a Simple Layout [720p]
This book is for developers who are interested in learning what resources are available as part of the Windows Embedded CE tool chains and how to use them. A basic understanding of Visual C++, C#, or ...
Chapter 6, A Particle System and Sound, explains how to add visual and sound effects to your level. Chapter 7, Terrain and Cinematics, shows you how to add the final touches to your level using ...
You will learn how to build your site and see the different ways in which you can customize your code to fit your needs. With this book in hand, you can easily set up users and groups, create ...
We have a section dedicated to NavMesh, one of the most important aspects of pathfinding, that will show you how to customize the mesh generation to handle different use cases for different ...
DataCamp上面Introduction to Matplotlib课程的讲义,介绍如下: ... You will learn how to create visualizations for different kinds of data and how to customize, automate, and share these visualizations.
We have a section dedicated to NavMesh, one of the most important aspects of pathfinding, that will show you how to customize the mesh generation to handle different use cases for different ...
You’ll also find a tutorial on building streaming applications using akka-stream and akka-http. Finally, you’ll get practical advice on how to customize and extend your Akka system.
Learn how to use Gradle's powerful dependency management through extensive code samples, and discover how to define, customize, and deploy dependencies About This Book Be in total control of your ...
customize reports as they are run. The system allows the user to easily select many different parameters to be used to create a report without changing a single line of the SAS code in each report. ...
This book concentrates on basic tasks such as how to set up and configure Moodle and how to perform day-to-day administration activities, and progresses on to more advanced topics that show you how to...
Chapter 6, Adapting Bootstrap JavaScript Plugins, shows you how to customize and extend Bootstrap JavaScript plugins to do more. Chapter 7, Custom Grids, teaches you how to customize the grid in ...
About This Book, Create custom Gradle tasks and plugins ... By the end of this book, you will be able to customize the entire build process, and create your own tasks and plugins for your Gradle builds.
Learn how to manage clusters, read system logs, and customize with cloud-config. You will set up the deployment to production using Docker builder and a private Docker registry. You will also see how...
This book walks you through a use case project that will teach you how to customize and create your own Docker image, allowing you to run any platform you want. The project evolves throughout the book...