/** * Emulate 'compare products list' block with persistent data * * @param Mage_Catalog_Block_Product_Compare_List $block * @return null */ public function emulateCompareProductsListBlock(Mage_Catalog_Block_Product_Compare_List $block) { if (!$this->_isCompareProductsPersist()) { return; } $block->setCustomerId($this->_getCustomerId()); }