diff --git a/app/code/community/Tadic/AVP/Block/Adminhtml/Catalog/Product/Edit.php b/app/code/community/Tadic/AVP/Block/Adminhtml/Catalog/Product/Edit.php index cb30eb2..489e113 100644 --- a/app/code/community/Tadic/AVP/Block/Adminhtml/Catalog/Product/Edit.php +++ b/app/code/community/Tadic/AVP/Block/Adminhtml/Catalog/Product/Edit.php @@ -14,14 +14,15 @@ public function getHeader() return $header; } - // Do not add view/preview link at the default scope - if ( ! Mage::app()->isSingleStoreMode() && $this->getProduct()->getStore()->isAdmin()) { - return $header; - } - - // Do not add view/preview link if the product is not assigned to the current store - if ( ! in_array($this->getProduct()->getStoreId(), $this->getProduct()->getStoreIds())) { - return $header; + if ( ! Mage::app()->isSingleStoreMode()) { + // Do not add view/preview link at the default scope + if ($this->getProduct()->getStore()->isAdmin()) { + return $header; + } + // Do not add view/preview link if the product is not assigned to the current store + if ( ! in_array($this->getProduct()->getStoreId(), $this->getProduct()->getStoreIds())) { + return $header; + } } // Add preview link only if the product is available on frontend