- Não irá aplicar caso o módulo de origem for atualizado e tiver alguma diferença de quando foi criado.
- Não é necessário fazer reescrita de classe, deixando o processo de build mais complexo.
- Caso o o módulo de origem passe a ter a correção/funcionalidade que foi criado com o patch, basta apenas ignorar ele.
- Aplicamos N patch`s e conseguimos setar a ordem deles.
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
| git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch example.js' |
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
| \!h Magento samples | |
| https://github.com/magento/magento2-samples | |
| \!h Simple controller | |
| https://inchoo.net/magento-2/how-to-create-a-basic-module-in-magento-2/ | |
| https://edmondscommerce.github.io/magento-2-controller-output-types/ | |
| https://edmondscommerce.github.io/magento-2-controller-output-types/ | |
| \!h Payment method |
These set of scripts are for Magento 2. For Magento 1, see this Gist.
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 | |
| function sign($method, $url, $data, $consumerSecret, $tokenSecret) | |
| { | |
| $url = urlEncodeAsZend($url); | |
| $data = urlEncodeAsZend(http_build_query($data, '', '&')); | |
| $data = implode('&', [$method, $url, $data]); | |
| $secret = implode('&', [$consumerSecret, $tokenSecret]); | |
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 | |
| // Created by Rafael Corrêa Gomes | |
| // Reference http://devdocs.magento.com/guides/m1x/api/rest/introduction.html#RESTAPIIntroduction-RESTResources | |
| // Custom Resource | |
| $apiResources = "products?limit=2"; | |
| // Custom Values | |
| $isAdminUser = true; | |
| $adminUrl = "admin"; |
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 | |
| /** | |
| USAGE: | |
| Paste this code inside any file called by Magento, like the app/design/frontend/package/theme/page/html/head.phtml and just acess your store. The code will run and after that it must be removed or commented. Be aware that not removing or commenting it will add these attributes to the database everytime code runs. | |
| USO: | |
| Cole este código dentro de qualquer arquivo chamado pelo Magento, como o app/design/frontend/package/theme/page/html/head.phtml e acesse sua loja. O código será executado e depois disso ele deve ser removido ou comentado. Esteja ciente de que não remover ou comentar o código irá adicionar estes atributos ao banco cada vez que for executado. |