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
Author: Karlston D'Emanuele
PHPCI to Jenkins Plugin
Continuous Integration (CI) has become an essential part of development environments. PHP Developers can make use of PHPCI and/or Jenkins for their CI. PHPCI is a great tool by Block8, https://www.phptesting.org/. PHPCI provides a very intuitive interface for developers to understand where the solution broke. Especially for code analysis PHPCI is able to link to … Continue reading PHPCI to Jenkins Plugin
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