added helper function to get magento product compare list url 'public function getCompareListUrl'