public function getAddToCartUrl($product, $additional = array()) { if ($product->getWeb2printDocumentId() == '') { return parent::getAddToCartUrl($product, $additional); } else { return $this->helper('web2print')->getEditorUrl($product->getId()); } }
/** * Get tags array for saving cache * * @return array */ public function getCacheTags() { /* get Magento's standard cache key info */ $cacheTags = parent::getCacheTags(); return array_unique($this->_getDispatcherHelper()->dispatchEvent('catalog_product_widget_new_get_cache_tags', $cacheTags, 'cache_tags')); }