似水年华

憧憧往来 朋从尔思 , 吾将何去何从,何处是归途

magento自定义按价格浏览范围

If you look in filter.phtml, you will see that it is using the blockMage_Catalog_Block_Layer_Filter_xxx where xxx is the attribute type. Which in turn leads you to the model: Mage_Catalog_Model_Layer_Filter_Price.

Inside app/code/core/Mage/Catalog/Model/Layer/Filter/Price.php, you will see the methodgetPriceRange() which calculates the price breaks.

You can override that model by copying it intoapp/code/local/Mage/Catalog/Model/Layer/Filter and adjusting that method so that it calculates the ranges per your requirements.

阅读更多
文章标签: magento filter layer
个人分类: Magento
上一篇Magento常用插件
下一篇magento修改产品图片尺寸
想对作者说点什么? 我来说一句

magento批量修改价格

didashui2000 didashui2000

2017-05-12 14:35:12

阅读数:227

没有更多推荐了,返回首页

关闭
关闭