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
| <depends> | |
| <dependent_field_name>value_we_are_looking_for</dependent_field_name> | |
| </depends> |
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
| Packaging.prototype.sendCreateLabelRequest = Packaging.prototype.sendCreateLabelRequest.wrap(function(parentMethod){ | |
| //replace the original method here with your own stuff | |
| console.log('we have overridden their function'); | |
| parentMethod(); | |
| }); |
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
| $request = Mage::app()->getRequest(); | |
| $action = $request->getActionName(); | |
| Mage::app()->getFrontController()->getAction()->setFlag($action, Mage_Core_Controller_Varien_Action::FLAG_NO_DISPATCH, true); |
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
| public function yourMethod($observer) | |
| { | |
| if ($condition) { | |
| $request = Mage::app()->getRequest(); | |
| $request->initForward() | |
| ->setControllerName('controllername') | |
| ->setModuleName('modulename') | |
| ->setActionName('actionname') | |
| ->setDispatched(false); |
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
| private function get_callstack() { | |
| $dt = debug_backtrace(); | |
| $cs = array(); | |
| foreach ($dt as $t) { | |
| $cs[] = $t['file'] . ' line ' . $t['line'] . ' calls ' . $t['function'] . "()" ; | |
| } | |
| return $cs; | |
| } | |
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
| https://github.com/schmengler/AclReload/blob/master/src/app/code/community/SSE/AclReload/controllers/Adminhtml/Permissions/AclReloadController.php | |
| $session = Mage::getSingleton('admin/session'); | |
| $session->setAcl(Mage::getResourceModel('admin/acl')->loadAcl()); |
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 -f bin/magento module:enable --clear-static-content Module_Name | |
| php -f bin/magento setup:upgrade |
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
| To change the url open the file env.php in the path app/etc | |
| array ( | |
| 'frontName' => 'admin', // Default name which we was given at the time of installation. | |
| ), |
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
| Delete contents of var/generation and refresh |
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
| Follow instructions here to generate keys | |
| http://devdocs.magento.com/guides/v2.0/install-gde/prereq/connect-auth.html | |
| When using composer install command, enter public key and private key as username and password, if prompted | |
| If not prompted and get authentication error | |
| Add public and private key as username and password in your auth.json file found in a hidden .composer folder in the ~/User/{Home Directory}/ directory. |
OlderNewer