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
| ... | |
| <frontend> | |
| <events> | |
| <controller_action_predispatch> | |
| <observers><log><type>disabled</type></log></observers> | |
| </controller_action_predispatch> | |
| <controller_action_postdispatch> | |
| <observers><log><type>disabled</type></log></observers> | |
| </controller_action_postdispatch> | |
| <customer_login> |
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 Ip_Viewas_Model_Resource_Setup extends Mage_Eav_Model_Entity_Setup | |
| { | |
| /** | |
| * @return array | |
| */ | |
| public function getDefaultEntities() | |
| { | |
| return array( |
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
| $form = new Varien_Data_Form(array( | |
| 'id' => 'edit_form', | |
| 'action' => $this->getUrl('*/*/save', array('registration_id' => $this->getRequest()->getParam('registration_id'))), | |
| 'method' => 'post', | |
| 'enctype' => 'multipart/form-data', | |
| )); |
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
| pecl install zip | |
| downloading zip-1.10.2.tgz ... | |
| Starting to download zip-1.10.2.tgz (236,912 bytes) | |
| .................................................done: 236,912 bytes | |
| 61 source files, building | |
| running: phpize | |
| Configuring for: | |
| PHP Api Version: 20100412 | |
| Zend Module Api No: 20100525 | |
| Zend Extension Api No: 220100525 |
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()) |
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 _prepareLayout() | |
| { | |
| parent::_prepareLayout(); | |
| $product = $this->getProduct(); | |
| if (("product.info" == $this->getNameInLayout()) && $product->isConfigurable() && $product->getIsDynamic()) |
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 Ip_Global_Model_Backend_Newoption extends Mage_Eav_Model_Entity_Attribute_Backend_Abstract | |
| { | |
| /** | |
| * Save EAV attribute option value if doesn't exist | |
| * | |
| * @param Varien_Object $object | |
| * @return Ip_Global_Model_Backend_Newoption | |
| */ |
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
| delimiter ;; | |
| drop procedure if exists build_catalog;; | |
| create procedure build_catalog(IN categories INT, IN products INT) | |
| begin | |
| SET @category_count = 1; | |
| SET @CATNAMEPREFIX = "Category "; | |
| SET @CATURLKEYPREFIX = "cat-"; | |
| SET @CATURLPATHPREFIX = "catpath-"; | |
| SET @ROOTCATEGORY = 2; | |
| SET @INCLUDEINMENU = 1; |
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
| delimiter ;; | |
| drop procedure if exists wtfman;; | |
| create procedure wtfman() | |
| begin | |
| SET @count = 0; | |
| WHILE @count < 10 DO | |
| SELECT @var := id FROM source ORDER BY RAND() LIMIT 1; | |
| INSERT INTO test VALUES (@var); | |
| SET @count = @count + 1; | |
| END WHILE; |
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
| <block type="core/text_list" name="top.menu" as="topMenu" translate="label"> | |
| <label>Navigation Bar</label> | |
| <block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"> | |
| <block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/> | |
| </block> | |
| </block> |