ctrl+E 补充代码
Submitted by superxiin on 2010, July 7, 10:39 PM
ctrl+E 补充代码
附件: zen.coding-notepad++.v0.6.1.zip (74.83 K, 下载次数:1)
附件: zencoding.pdf (518.34 K, 下载次数:0)
Submitted by superxiin on 2010, June 14, 9:02 PM
magento 后台(非admin用户),清除cache时,出现access denied 的解决方法:
app/code/core/Mage/Adminhtml/controllers/CacheController.php
protected function _isAllowed()
{
删除-》 return Mage::getSingleton('admin/session')->isAllowed('cache');
添加-》 return Mage::getSingleton('admin/session')->isAllowed('system/cache');
}
原文链接
http://groups.google.com/group/magento-devel/browse_thread/thread/90c2328fc653737f?fwc=1
Submitted by superxiin on 2010, March 28, 10:39 PM
亚交-光票托收
Submitted by superxiin on 2010, March 24, 11:00 PM
【普洱茶名片】

【葡萄酒名片】

Submitted by superxiin on 2010, March 24, 10:39 PM
Submitted by superxiin on 2009, November 9, 4:58 PM
Submitted by superxiin on 2009, November 2, 12:48 PM
feature products.rarcms:
{{block type="catalog/product_homepage" name="home.catalog.product.homepage" alias="product_homepage" template="catalog/product/homepage.phtml"}}
add attribute:
in order to put products on the homepage based on a custom attribute, you need a block, a template file, and a little bit of css markup. I have attached two files, Homepage.php and homepage.phtml. Homepage.php should be placed in app/code/core/Mage/Catalog/Block/Product/ and homepage.phtml should be placed in app/design/frontend/[your package]/[your theme]/template/catalog/product/. Homepage.php is based off of the new product block but instead of looking for a date period it looks for a custom attribute called home_page_featured? which leads me to the next step: creating the custom attribute. Create an attribute called home_page_featured?of the yes/no variety and add this to your default attribute group. You may choose whatever attribute label you wish. Now when you edit a product there will be a yes/no option for this attribute. Set the products that you want to appear on the homepage as yes.
Submitted by superxiin on 2009, November 2, 12:46 PM
cms:
{{block type="catalog/product_bestsellers" name="home.catalog.product.bestsellers" alias="product_bestsellers" template="catalog/product/bestsellers.phtml"}}
附件: best seller products.rar (2.17 K, 下载次数:0)