Created
August 19, 2013 22:48
-
-
Save ryaan-anthony/6275116 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class MB_Dynamicconfigurable_Block_Catalog_Product_View extends Mage_Catalog_Block_Product_View | |
| { | |
| function __construct() | |
| { | |
| parent::getTemplate(); | |
| $product = $this->getProduct(); | |
| if (("product.info" == $this->getNameInLayout()) && $product->isConfigurable() && $product->getIsDynamic()) | |
| { | |
| echo "Set template dynamicconfigurable/catalog/product/view.phtml<br />"; | |
| $this->setTemplate("dynamicconfigurable/catalog/product/view.phtml"); | |
| $this->setChild('editor', $this->getLayout()->createBlock('dynamicconfigurable/catalog_product_view_editor', 'dynamicconfigurable.editor')); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment