分层导航过滤器是在中创建的
app/design/frontend/base/theme/template/catalog/layer/filter.phtml
Run Code Online (Sandbox Code Playgroud)
如何从此文件中检索当前产品集合中最高产品价格的值?
我已经尝试过我认为显而易见的选择$this->getMaxPriceInt(),Mage_Catalog_Model_Layer_Filter_Price但这似乎不适用于filter.phtml.
假设$ collection是'catalog/product'的集合,这应该可以解决问题:
$product = $collection->setOrder('price', 'DESC')->getFirstItem();
Run Code Online (Sandbox Code Playgroud)