Digging Deeper Into Magento’s Layout XML – Part 2
Digging Deeper Into Magento’s Layout XML – Part 2 By Paryank Kansara on November 30, 2010 / 14 Comments In the first part of this series, we discussed the basics of Layout XML elements and gave an overview of the rendering process. In part 2, we are going to discuss both in some more detail and present some techniques to perform more advanced layout actions out of the box. First, let’s explain a few terms that are frequently used in this article: MVC Action: MVC action is nothing but a method defined in a controller class and mapped with the requested URL. For exam......
Magento Knowledge
Magento Knowledge by Aland Hou 一,Magento 模块初始化 1,magento apache服务器安装及配置 (1)apache,php,mysql的安装 sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install php5-curl /sudo apt-get install php-curl(php7) sudo apt-get install phpmyadmin sudo apt-get install mysql-server sudo apt-get install mysql-client sudo apt-get install subversion sudo apt-get install flashplugin-nonfree (2)配置host sudo gedit /etc/hosts 将以下代码加入hosts里,也可以将其他域名加入 ......
高级应用Magento-订单创建流程及程序代码
老规矩,直接看代码吧。下面的代码是如何通过程序创建一个完美订单。 <?php require_once 'app/Mage.php'; Mage::app('default');//初始化程序,设置当前店铺 $store = Mage::app()->getStore('default'); //通过电子邮件获取用户,当然也可以不获取,创建guest订单 $customer = Mage::getModel('customer/customer'); $customer->setStore($store); $customer->loadByEmail('email_address@gmail.com'); //初始化Quote,Magento的订单是通过Quote来转化过去的 $quote =......
Magento2
文章前面我要说明,Magento2.0和1.X是完全不同的两个版本.简单来说,magento2.0完全是重构的.完全的不同,彻底的不同.记住哦,这是magento贰 git获得magento2源码:https://github.com/magento/magento2 magento2官方wiki页面:http://mage2.magentocommerce.com/wiki 以下介绍来自Magento俄罗斯开发大会的PDF资料(俄文和英文)和其他相关blog. 一.完全不同的文件结构 简化了Magento的文件结构,pub下面把可访问文件都包含了进去.增强了安全性.文件结构也更加的简介. 二.Only jquer......
How to overload a controller,magento controller rewrite,重写
How to overload a controller Last modified by demonkoryu on Tue, January 10, 2012 08:43 Source|Old Revisions Table of Contents How to overload a controller 1. Create your module folders and files 2. Edit /etc/config.xml 3. Edit ''controllers/Checkout/CartController.php'' 4. Edit ''app/etc/modules/MyNameSpace_All.xml'' ......
magento 性能优化
公司的magento网站实在是太慢了,想了好多办法,参考了好多资料,做了很多测试,总结一下大概的步骤如下: 1.压缩js,css代码,如果有必要把所有的css,js分别综合到一个文件中,并压缩缓存. 2.清除magento模板中不必要的注释,为所使用到的图片瘦身. 3.优化magento代码,这个步骤工作量大,但可能是效果显著的步骤,不过前提是你非常熟悉magento,彻底删除不用的模块,关闭没用的 block, 清除无效,无用的xml(解析xml非常昂贵的),在一个页面中尽量不要大量调用magento的image ......
Magento Database Repair Tool
Magento Database Repair Tool Last modified by mediashort on Mon, March 14, 2011 23:43 Edit this page|Old Revisions Table of Contents Magento Database Repair Tool Usage Instructions Crash-course for the impatient Test it before running on a Production Environment! Step-by step The Database Repair ......
Magento Knowledge
Magento Knowledge by Aland Hou 一,Magento 模块初始化 1,magento apache服务器安装及配置 (1)apache,php,mysql的安装 sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install php5-curl sudo apt-get install phpmyadmin sudo apt-get install mysql-server sudo apt-get install mysql-client sudo apt-get install subversion sudo apt-get install flashplugin-nonfree (2)配置host sudo gedit /etc/hosts 将以下代码加入hosts里,也可以将其他域名加入 127.0.0.1 ......
Apache VirtualHost
报错信息1: Starting httpd: [Fri May 19 11:49:42 2011] [warn] VirtualHost 127.0.0.1:80 overl aps with VirtualHost 127.0.0.1:80, the first has precedence, perhaps you need a NameVirtualHost directive 这个说明虚拟主机的NAME没开,NameVirtualHost 就是他没开,如下就可以了 #加上这里就好了~~,之后就可加任意多的virtual host了 NameVirtualHost 192.168.8.37:80 # # NOTE: NameVirtualHost cannot be used without a port specifier # (e.g. :80) if mod_ssl is being used, due to the nature of the # SSL protocol. # # # VirtualHost example: # Almo......
LINUX 文件权限
linux快速修改文件夹及文件下所有文件与文件夹权限,而且以后新增加的文件要自动继承上一文件夹权限,该怎么指令? 我来帮他解答 2010-2-24 00:23 满意回答 chmod 777 * -R ......
- Page:23/145 1448 Blogs
周日 | 周一 | 周二 | 周三 | 周四 | 周五 | 周六 |
文章分类
- 默认(748)
- 日志(47)
- 感悟(15)
- testIT(4)
- PHP_XML(5)
- PHP(78)
- 明星(1)
- 笑话(31)
- 毕业论文(2)
- 生活(60)
- HTML(11)
- CSS(6)
- 考研(3)
- JS(21)
- 简历(6)
- svn(3)
- 音乐(1)
- 学习(7)
- jQuery(9)
- 英语口语(9)
- 书籍(2)
- magento(258)
- apache(12)
- 创意(4)
- 设计(4)
- 休闲(1)
- IT咨询(11)
- 工作(23)
- ubuntu(21)
- bysoft(1)
- zend(1)
- web(2)
- software(1)
- sql(5)
- 娱乐(5)
- photoshop(3)
- zend framework(2)
- nginx(3)
- 小说(1)
- 名言(1)
- 牛人(1)
- Mysql(6)
- vim(2)
- wordpress(8)
- drupal(1)