随笔分类 -  Magento

摘要:1.去js\prototype 打开 “validation.js”.2.注释掉此行验证 [’validate-url’, ‘Please enter a valid URL. Protocol is required (http://, https:// or ftp://)’, function (v) {return Validation.get(’IsEmpty’).test(v) || /^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i.test(v)}] 3.成功安 阅读全文
posted @ 2011-12-22 17:54 jack_段 阅读(1131) 评论(0) 推荐(0)
摘要:我们将用 Zend_Feed_RSS 库去分析RSS feed1.创建一个新的文件叫做tweets.phtml在app\design\frontend\base\default\template\callouts目录下2.粘贴下面代码到tweets.phtml<?php/*** @var String $twitterUsername* change $twitterUsername with your desired username*/$twitterUsername = 'packtpub';/*** @var String $twitterFeedUrl* cha 阅读全文
posted @ 2011-12-01 10:10 jack_段 阅读(193) 评论(0) 推荐(0)
摘要:1.找到和打开Mage_All.xml文件在 app\etc\modules\2.在41行。你将看到一个代码块像这样 <Mage_Page> <active>true</active> <codePool>core</codePool> <depends> <Mage_Core/> </depends> </Mage_Page> 替换为: <Mage_Page> <active>true</active> <codePool>local&l 阅读全文
posted @ 2011-11-30 18:14 jack_段 阅读(139) 评论(0) 推荐(0)
摘要:1.登录到Magento Admin Panel 选择CSM|Pages2.打开名为 404 not found 的页面4.从左边的导航菜单,点击 Content。内容将显示在编辑器中5.单击 Show/Hide Editor按钮6.编辑Content中的内容如下 页面不存在。。。。。。。。。。。。。7.保存之后,运行一个不存在的页面就可以看到如下页面 阅读全文
posted @ 2011-11-30 16:17 jack_段 阅读(97) 评论(0) 推荐(0)