Magento
cindy1988_ming
这个作者很懒,什么都没留下…
展开
-
zend 的render()
通常我们利用ZF实现PHP的mvc时,最关键的地方是Controller类的各种action方法,在action方法中,我们确定及输出内容,在类abstract class Zend_Controller_Action中的dispatch方法你可以发现这一行$this->action(); 那么如何确定及输出内容呢,就是进行render了,不过这个rend转载 2010-01-16 16:29:00 · 2913 阅读 · 0 评论 -
Magento Rewrite Block
<br />When develop a site base on Magento. Everyone have to rewrite some block to customize the information which will display on template page. <br /> <br />Before start to make a sample, Some magento term will be introduce:<br />Namespace: The name of fo原创 2010-08-21 18:25:00 · 1008 阅读 · 0 评论 -
Change the magento theme:
<br />The magento theme include two parts:<br /> 1. Template file: layout, template. (default path: /app/design/frontend/default(package name)/default(theme name)/)<br /> 2. Style: Css, Js, Image(default path: /skin/frontend/default(package name)/defau原创 2010-08-21 18:27:00 · 521 阅读 · 0 评论 -
Magento更改主题:
<br />Magento 主题主要包含两部分:<br /> 1. 模板页面:布局,模板(默认路径: app/design/frontend/default(package name)/default(theme name)/)<br /> 2. 样式:css, js, image(默认路径: /skin/frontend/default(package name)/default(theme name))<br /><br />更改主题有两种不同的形式:<br /> 1. 建一个新的主题包含原原创 2010-08-21 18:28:00 · 2197 阅读 · 0 评论 -
Understanding layout.xml syntax in Magento
<br /><br />I write this article about my understanding of layout.xml up to now. I use it to show youHow to add buttons in order/invoice/shipment/creditmemo without override Block class?How to define an array as a parameter in layout.xml using <action meth转载 2010-08-27 17:10:00 · 504 阅读 · 0 评论 -
Understanding layout.xml syntax in Magento
<br /><br />I write this article about my understanding of layout.xml up to now. I use it to show youHow to add buttons in order/invoice/shipment/creditmemo without override Block class?How to define an array as a parameter in layout.xml using <action meth转载 2010-08-27 17:10:00 · 445 阅读 · 0 评论 -
Magento: The Time of report base on configuration Timezone
<br />Question:<br /> Default: <br /> Magento store all times in UTC.<br /> So the time on the report isn't correctly. if you are in other place.<br /><br /><br />Solution:<br /><br /> <br /># db-time to local time<br />echo Mage::getModel('core/da原创 2010-10-14 20:29:00 · 725 阅读 · 0 评论 -
Easy way to implement Asynchronized Product Filtering(Layered Navigation) in Magento
Background As a jewelry Ecommerce website, the user experience is a very important, so we always try to enhanceJewelsBoutique.com little by little to improve this part.With the powerful backend and infrastructure from Magento, our site could be up quickly转载 2011-03-15 10:48:00 · 926 阅读 · 0 评论 -
Magento collection filters
<br /> <br />Collection是magento中很重要的功能之一,怎麼自定義對這些collection進行過濾"from"=>$fromValue, "to"=>$toValue"like"=>$likeValue"neq"=>$notEqualValue"in"=>array($inValues)"nin"=>array($notInValues)"eq"=>$equal"nlike"=>$notlike"is"=>$is"gt"=>$greaterthan"lt"=>$lessthan"原创 2011-03-19 17:56:00 · 796 阅读 · 0 评论 -
Format the column display info of Grid ---- Magento
When develop a E-Commerce site base on magento, you will find mostly all information you can get on the magento admin panel display as a Grid. Some situation we have to customize the displaying information of the column.There are two solution can do that:1原创 2010-08-21 19:25:00 · 936 阅读 · 0 评论 -
Magento can't checkout and add product to cart in IE and Chrome
<br />In order to test the checkout style of the new project, I have to check it work correctly in IE, Chrome, FF.<br />But on my local environment, I can't add product to cart. It's always will go to the no-route page when I add product with IE and Chrome原创 2010-08-18 16:38:00 · 1496 阅读 · 0 评论 -
magento后台用户
在magento中你也可以设置不同的管理员用户进去后台之后能够修改的东西: promission->roles用来规定属于这个规则的用户的权限范围。 ->users用来定义后台登陆用户以及规定此用户的规则 然后用不同的用户名进入后台之后呈现给你的页面也将是不同的。你仅仅能操作在roles里面给你定义了东西。原创 2010-01-11 21:01:00 · 692 阅读 · 0 评论 -
The method of getChildHtml
The php method getChildHtml(’right’) does not refer in any way toright.phtml. “right” is simply an identifier in order for templates andthe layout file to interact with each other in order to stru转载 2010-01-21 09:45:00 · 630 阅读 · 0 评论 -
获取order的详细信息
先获取$order = Mage::getModel(sales/order)->loadByIncrementId($orderNumber);$order = Mage::getModel(sales/order)->load($orderId); 获取信息:如果这些信息是magento自己本来就有的属性: $billing =原创 2010-02-28 12:43:00 · 857 阅读 · 0 评论 -
magento getChildHtml() 与getChildChildHtml()
function getChildHtml($name);function getChildChildHtml($name, $childName = , $useCache = true, $sorted = false)原创 2010-02-27 15:14:00 · 1996 阅读 · 2 评论 -
Tha path in Magento: Magento 默认路径变量
如果你的默认magento访问路径是www.magento.com 那么: 在magento中它有几个自己的内置路径对象: skin :http://www.magento.com/skin/frontend/default/default/ media:http://www.magento.com/media原创 2010-01-10 19:54:00 · 690 阅读 · 0 评论 -
Writing a custom module in Magento
I wrote a newer article on how to write a module, one with more details. Check it out here. Time to move on to some more serious stuff concerning Magento. Mylast few posts were about unders转载 2010-01-08 21:20:00 · 622 阅读 · 0 评论 -
Url Function : 关于在magento中常常用到的调用url的方法
url的function: $this->getBaseUrl()----return the base url of your store 相当于$this->getUrl()一样 $this->getSkinUrl()----return the url of the folder containing your csss im翻译 2010-01-10 20:00:00 · 827 阅读 · 0 评论 -
magento url 解析 以及响应流程
你可以在magento后台管理页面查看关于前台各个页面跳转实际的url路径,在前台我们能够看见的仅仅是一些html路径,而不是具体的响应的路径 你可以在magento/admin—>Catalog—>Url Rewrite Management 中根据你在页面上看见的html路径查找这里对应的是 Request Path 点击进入你原创 2010-01-10 21:53:00 · 1733 阅读 · 0 评论 -
提升magento速度
一、Magento Compiler可以提高 25% 到 50% 速度Magento的性能一直是大家比较关心的焦点,现在Magento最新的版本 1.3.2.2 增加了 Magento Compiler 模块,根据官方的资料,该模块可以提高 25% 到 50% 的性能.我也在测试网站上激活该模块,感觉效果还是不错,目前还是beta版本,不过还是推荐使用Mag转载 2010-01-11 20:42:00 · 4553 阅读 · 0 评论 -
Magento - Place order, control inventory
<br />Just a few day befor, one friend ask me some question about the product inventory, when will substrat the qty when place the order. <br /> <br /><br />1.4 and above<br /> <br /><br /> <checkout_submit_all_after><br /> <obse原创 2011-03-24 16:45:00 · 679 阅读 · 0 评论