diff --git a/app/code/comunity/Soluvas/MagentoTweaks/Block/Productview.php b/app/code/community/Soluvas/MagentoTweaks/Block/Productview.php similarity index 78% rename from app/code/comunity/Soluvas/MagentoTweaks/Block/Productview.php rename to app/code/community/Soluvas/MagentoTweaks/Block/Productview.php index f682dfd..3e8e70e 100644 --- a/app/code/comunity/Soluvas/MagentoTweaks/Block/Productview.php +++ b/app/code/community/Soluvas/MagentoTweaks/Block/Productview.php @@ -1,6 +1,7 @@ * @see Mage_Catalog_Block_Product_View */ -class Soluvas_MagentoTweaks_Block_Productview extends Mage_Catalog_Block_Product_View +class Soluvas_MagentoTweaks_Block_Productview extends /*Mage_Catalog_Block_Product_View*/ + Yoast_MetaRobots_Block_Catalog_Product_View { /** * Add meta information from product to head block. @@ -34,7 +39,7 @@ class Soluvas_MagentoTweaks_Block_Productview extends Mage_Catalog_Block_Product */ protected function _prepareLayout() { - $this->getLayout()->createBlock('catalog/breadcrumbs'); + $this->getLayout()->createBlock('catalog/breadcrumbs'); $headBlock = $this->getLayout()->getBlock('head'); if ($headBlock) { $product = $this->getProduct(); @@ -55,6 +60,14 @@ protected function _prepareLayout() } else { $headBlock->setDescription($product->getDescription()); } + + $robots = $product->getMetaRobots(); + if ($robots) { + $headBlock->setRobots($robots); + } else { + $headBlock->setRobots($product->getMetaRobots()); + } + if ($this->helper('catalog/product')->canUseCanonicalTag()) { $params = array(/*'_ignore_category'=>true*/); if (Mage::getStoreConfig('magentotweaks/catalog/fullproductpath', $this->getStoreId()) == 0) diff --git a/app/code/comunity/Soluvas/MagentoTweaks/Helper/Data.php b/app/code/community/Soluvas/MagentoTweaks/Helper/Data.php similarity index 100% rename from app/code/comunity/Soluvas/MagentoTweaks/Helper/Data.php rename to app/code/community/Soluvas/MagentoTweaks/Helper/Data.php diff --git a/app/code/comunity/Soluvas/MagentoTweaks/Model/Catalogresourceeavmysql4productcollection.php b/app/code/community/Soluvas/MagentoTweaks/Model/Catalogresourceeavmysql4productcollection.php similarity index 100% rename from app/code/comunity/Soluvas/MagentoTweaks/Model/Catalogresourceeavmysql4productcollection.php rename to app/code/community/Soluvas/MagentoTweaks/Model/Catalogresourceeavmysql4productcollection.php diff --git a/app/code/comunity/Soluvas/MagentoTweaks/Model/Catalogresourceeavmysql4productcompareitemcollection.php b/app/code/community/Soluvas/MagentoTweaks/Model/Catalogresourceeavmysql4productcompareitemcollection.php similarity index 100% rename from app/code/comunity/Soluvas/MagentoTweaks/Model/Catalogresourceeavmysql4productcompareitemcollection.php rename to app/code/community/Soluvas/MagentoTweaks/Model/Catalogresourceeavmysql4productcompareitemcollection.php diff --git a/app/code/comunity/Soluvas/MagentoTweaks/Model/Product.php b/app/code/community/Soluvas/MagentoTweaks/Model/Product.php similarity index 100% rename from app/code/comunity/Soluvas/MagentoTweaks/Model/Product.php rename to app/code/community/Soluvas/MagentoTweaks/Model/Product.php diff --git a/app/code/comunity/Soluvas/MagentoTweaks/Model/Producturl.php b/app/code/community/Soluvas/MagentoTweaks/Model/Producturl.php similarity index 100% rename from app/code/comunity/Soluvas/MagentoTweaks/Model/Producturl.php rename to app/code/community/Soluvas/MagentoTweaks/Model/Producturl.php diff --git a/app/code/comunity/Soluvas/MagentoTweaks/Model/Reportsmysql4productindexcomparedcollection.php b/app/code/community/Soluvas/MagentoTweaks/Model/Reportsmysql4productindexcomparedcollection.php similarity index 100% rename from app/code/comunity/Soluvas/MagentoTweaks/Model/Reportsmysql4productindexcomparedcollection.php rename to app/code/community/Soluvas/MagentoTweaks/Model/Reportsmysql4productindexcomparedcollection.php diff --git a/app/code/comunity/Soluvas/MagentoTweaks/Model/Reportsmysql4productindexviewedcollection.php b/app/code/community/Soluvas/MagentoTweaks/Model/Reportsmysql4productindexviewedcollection.php similarity index 100% rename from app/code/comunity/Soluvas/MagentoTweaks/Model/Reportsmysql4productindexviewedcollection.php rename to app/code/community/Soluvas/MagentoTweaks/Model/Reportsmysql4productindexviewedcollection.php diff --git a/app/code/comunity/Soluvas/MagentoTweaks/Model/Sitemap.php b/app/code/community/Soluvas/MagentoTweaks/Model/Sitemap.php similarity index 100% rename from app/code/comunity/Soluvas/MagentoTweaks/Model/Sitemap.php rename to app/code/community/Soluvas/MagentoTweaks/Model/Sitemap.php diff --git a/app/code/comunity/Soluvas/MagentoTweaks/Sales/Quote.php b/app/code/community/Soluvas/MagentoTweaks/Sales/Quote.php similarity index 100% rename from app/code/comunity/Soluvas/MagentoTweaks/Sales/Quote.php rename to app/code/community/Soluvas/MagentoTweaks/Sales/Quote.php diff --git a/app/code/comunity/Soluvas/MagentoTweaks/controllers/CatalogproductController.php b/app/code/community/Soluvas/MagentoTweaks/controllers/CatalogproductController.php similarity index 100% rename from app/code/comunity/Soluvas/MagentoTweaks/controllers/CatalogproductController.php rename to app/code/community/Soluvas/MagentoTweaks/controllers/CatalogproductController.php diff --git a/app/code/comunity/Soluvas/MagentoTweaks/controllers/CmspageController.php b/app/code/community/Soluvas/MagentoTweaks/controllers/CmspageController.php similarity index 100% rename from app/code/comunity/Soluvas/MagentoTweaks/controllers/CmspageController.php rename to app/code/community/Soluvas/MagentoTweaks/controllers/CmspageController.php diff --git a/app/code/comunity/Soluvas/MagentoTweaks/etc/adminhtml.xml b/app/code/community/Soluvas/MagentoTweaks/etc/adminhtml.xml similarity index 100% rename from app/code/comunity/Soluvas/MagentoTweaks/etc/adminhtml.xml rename to app/code/community/Soluvas/MagentoTweaks/etc/adminhtml.xml diff --git a/app/code/comunity/Soluvas/MagentoTweaks/etc/config.xml b/app/code/community/Soluvas/MagentoTweaks/etc/config.xml similarity index 100% rename from app/code/comunity/Soluvas/MagentoTweaks/etc/config.xml rename to app/code/community/Soluvas/MagentoTweaks/etc/config.xml diff --git a/app/code/comunity/Soluvas/MagentoTweaks/etc/system.xml b/app/code/community/Soluvas/MagentoTweaks/etc/system.xml similarity index 100% rename from app/code/comunity/Soluvas/MagentoTweaks/etc/system.xml rename to app/code/community/Soluvas/MagentoTweaks/etc/system.xml diff --git a/app/etc/modules/Soluvas_MagentoTweaks.xml b/app/etc/modules/Soluvas_MagentoTweaks.xml index aa8e8dc..57182ef 100644 --- a/app/etc/modules/Soluvas_MagentoTweaks.xml +++ b/app/etc/modules/Soluvas_MagentoTweaks.xml @@ -21,6 +21,10 @@ true community + + + +