Skip to content

Instantly share code, notes, and snippets.

@ho-nl
Created September 8, 2010 16:34
Show Gist options
  • Save ho-nl/570381 to your computer and use it in GitHub Desktop.
Save ho-nl/570381 to your computer and use it in GitHub Desktop.
$rate = Mage::app()->getStore()->getCurrentCurrencyRate();
$to = 1 / $rate / 1.19;
$this->_productCollection->addAttributeToFilter('price', array('to' => $to));
$this->_productCollection = $layer->getProductCollection();
class Mage_Catalog_Block_Product_Bargains extends Mage_Catalog_Block_Product_Abstract
<reference name="left">
<block type="catalog/layer_view" name="catalog.leftnav" before="-" template="catalog/layer/view.phtml"/>
</reference>
<reference name="content">
<block type="catalog/product_bargains" name="product_list" template="catalog/product/list.phtml">
<action method="setCategoryId"><categoryId>2</categoryId></action>
<action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
<block type="page/html_pager" name="product_list_toolbar_pager"/>
</block>
</block>
</reference>
class Mage_Catalog_Block_Product_List extends Mage_Catalog_Block_Product_Abstract
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment