高级应用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 ......
magento date
15天前 $locale ->date() ->sub("15", Zend_Date::DAY) ->toString('YYYY-MM-dd HH:mm:ss')) ) ......
英语口语
i need to get fit 我需要减肥 my dad has a real sweet tooth 我爸特别喜欢吃甜食 a minute on the lips, forever on the hips 贪得一刻嘴馋,平添一身赘肉 time to hit the gym i'm on a diet 我正在减肥 let's go for a jog 我们去慢跑吧 i go to power walking every morning 我每天早上都进行快走锻炼 cut back on the fat 戒掉一切脂肪类的食物 ......
- Page:24/146 1460 Blogs
周日 | 周一 | 周二 | 周三 | 周四 | 周五 | 周六 |
文章分类
- 默认(760)
- 日志(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)