Shell scripts are a good way to quickly run maintenance commands in Magento. In Magento2 shell scripts are executed through the command php bin/magento <command name> <command parameters> Background The Magento CLI is defined in class Magento\Framework\Console\Cli which is a Symphony Application. The application starts running from the run command defined in Symphony application that … Continue reading Creating shell script for Magento2
Category: Magento
Using Git Repository for Composer
Magento 2 uses composer for downloading and installing external dependencies. However one can easily install extensions using composer. This article highlights the steps required to deploy your module directly from git. Adding composer instructions to module In the root folder of the extension add a composer.json file with the following basic information. { "name": "<vendor … Continue reading Using Git Repository for Composer
Magento 2 Customer Attributes
Complete code was updated on 15 June 2016 to an issue with an undefined method Every business captures different information about their business. Magento gives businesses the ability to define which customer information is to be gathered and stored in Magento. The customer information customisation is done through customer attributes. The last few versions of … Continue reading Magento 2 Customer Attributes
A very basic Magento 2 module with parameterized template
Last time, we experimented and learned how to create a simple module to display some text in Magento’s UI. In this article we use the same code and extends it to use a template page and a block in Magento 2. Creating a new controller action For the purpose of this article we will create … Continue reading A very basic Magento 2 module with parameterized template
A very basic Magento 2 module
Magento 2 is not just a version upgrade to Magento 1.X but a complete platform restructure which introduce new programming paradigms and best practices. This article attempts to highlight the steps required to create a basic Magento 2 extension, as of Magento 2 0.74.0-beta7. For the purpose of this introductory article a simple module will … Continue reading A very basic Magento 2 module