打开MAGENTO_INSTALLED_DIR/app/design/frontend/default/default/layout/page.xml 找到名字为'root'的block定义更改为">template处指定你定制的layout模板文件
分类:
其他好文 时间:
2014-08-18 09:11:53
阅读次数:
235
magento自定义选项Custom Options Replicator,是用于在后台产品操作中,将某一个产品的自定义选项复制到指定的产品中.? 那要怎么用呢? 选中需要被复制的产品 3.右上角选择“copy sustom options” 4.填入范本产...
分类:
其他好文 时间:
2014-08-17 18:42:12
阅读次数:
193
1.首先现在magento后台创建一个新的分类,记下这个分类的 ID 号码。使用这个新建的分类来管理你的首页产品,这个分类设置为前台不可见。这样就不会显示在你的分类菜单中了,但使用代码调用的时候却会显示出来。2.在cms–>manage page–>home 适当位置添加如下代码(例如代码的最后){...
分类:
其他好文 时间:
2014-08-16 11:03:50
阅读次数:
187
magento 在reindex的时候遇到Cannot initialize the indexer process错误,发现Catalog URL Rewrites 一项不能reindex解决方法:1.删除var/locks 目录下的所有文件 2.清空catalog_category_pr...
分类:
其他好文 时间:
2014-08-15 12:05:58
阅读次数:
218
$sqlCondition="IFNULL(_table_name.value,_table_name_default.value)REGEXP'^[^a-zA-Z]'" $collection->getSelect()->where($sqlCondition)
分类:
其他好文 时间:
2014-08-14 23:40:06
阅读次数:
222
在Centos / RHEL 系安装需要以下 packagesautoconfautomakejemalloc-devellibedit-devellibtoolncurses-develpcre-develpkgconfigpython-docutilspython-sphinx 没有pyt...
分类:
其他好文 时间:
2014-08-13 18:13:46
阅读次数:
265
在模板页面不显示getMessage的解决方案是,在对应的控制器里加上如下代码:$this->_initLayoutMessages('customer/session'); 如果加入后出现如下图的bug则再加入如下代码$this->_initLayoutMessages('catalog/sess...
分类:
Web程序 时间:
2014-08-12 16:15:04
阅读次数:
219
$thumb_path = Mage::getModel('catalog/product_media_config')->getMediaUrl($product->getThumbnail()); $small_path...
分类:
其他好文 时间:
2014-08-11 20:35:32
阅读次数:
312
1 $_product->getResource()->getAttribute('my_attribute_name')->getFrontend()->getValue($_product);注:在列表页获得的产品可能信息不全,需要获得产品id之后,使用 1 $_product = Mage:....
分类:
其他好文 时间:
2014-08-11 14:55:12
阅读次数:
205
找了家外贸公司,网站架在magento 1.6.2.为了迎合公司需要,在本地安装一份供学习使用。在安装环节一直报错说Innodb没有安装。因为本地环境使用很久了,可以很确定支持Innodb。那肯定是magento版本的问题,打了了一个php5.4的patch(我的是php5.5),不行又Google...
分类:
数据库 时间:
2014-08-10 15:33:40
阅读次数:
219