How do I make Magento use two MySQL Servers
I setup a replicated mysql server in magento.. following this blog post: http://www.magentocommerce.com/blog/comments/performance-is-key-notes-on-magentos-performance/ I added this into my /app/etc/local.xml <default_setup> <connection> <......
Connect different database from Magento
Some of you might have worked on Magento. I am listing here points for connecting another database from Magento. 1) Suppose your database for Magento Project is named ‘magento’. 2) There is one other database named ‘wp’. 3) For using this database inside Magento, you need to setup connection in ‘config.xml’ file which resides in ‘urmagentodirectory/app/etc’ 4) In ‘config.xml’ there is a tag ‘’ inside which default connection is setup, you need to write this code under this. ? ......
How does URL rewriting works?
Createa category Diagram1-1 Wejust input the category's name, and set "is active" to Yes,and then click Save Category Diagram1-2 Wecan see that the URL key is automaticly generated. The value is"nikon-camera". Whena category is created, in database table core_url_rewriting,there is a new record created at the&nbs......
magento blog and tutorials
Magento Tutorials, Tips and Extensions - For Developers by Developers http://magebase.com/category/magento-tutorials/ ......
Demystifying Magento’s Layout XML – Part 1
Demystifying Magento’s Layout XML – Part 1 By Paryank Kansara on September 28, 2010 / 32 Comments The ‘View’ of Magento’s MVC pattern implementation is divided in two parts: Layout and Template. The template represents a HTML block while layout defines the location of the block on a web page. Magento provides ultimate flexibility and re-usability of design by layouts defined in XML. Layout XML Layout XML files can be found in app/design/frontend/[package]/[theme]/layout. Each Magento module may define its own layout XML file in the config.xml file.......
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-订单创建流程及程序代码
老规矩,直接看代码吧。下面的代码是如何通过程序创建一个完美订单。 <?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 ......
- Page:3/26 258 Blogs
周日 | 周一 | 周二 | 周三 | 周四 | 周五 | 周六 |
文章分类
- 默认(751)
- 日志(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)