Posts

Adding Magento 2 Module Layout Updates

A common task within Magento is to add layout updates to a custom module. These layout updates extend existing Magento layout configuration and can add additional template files to your storefront. This article will demonstrate adding Magento 2 module layout updates.
To start with, register a custom module that will hold your layout updates.
Create ...

Setting up Magento Multiple Sites via cPanel

One of Magento’s greatest features is the ability to add multiple websites and store views which can share the same code base and admin area, making management a lot easier. This article will run through setting up Magento multiple sites via cPanel.
Magento gives the user the ability to perform the initial steps to setup ...

Add Custom JS in Magento 2

After creating a custom theme, developers will look at how to add custom JS in Magento 2.
Within Magento 1, in your custom theme you could specify a local.xml layout file that contained all of layout updates.
Within this file, you could add JS files using the following code snippet.
The code above assumes ...

Add Custom CSS in Magento 2

One of the most common tasks a frontend developer will look to undertake is how to add custom CSS in Magento 2.
Like earlier versions of Magento, CSS files are added via layout XML. Within Magento 1, in your custom theme you could specify a local.xml layout file that contained all of layout updates.

Get started with Expressjs

This article will demonstrate how to get started with Expressjs, an easy to use Node.js web application framework.
To start with, you’ll need to ensure you have downloaded Node.js which comes with the npm (Node Package Manager)
If you’ve installed Node correctly, you should be able to see the current version installed by running the ...

Add an SSL Certificate in cPanel

cPanel provides the user with several useful interfaces to upload an SSL certificate to use on their website. This method can be used for users not proficient in using commands via command line.
To start with, if you haven’t already purchased an SSL certificate, a Certificate Signing Request (CSR) needs to be generated for the ...

Add Variables to the Magento Emails

This article will demonstrate how to add variables to the Magento emails.
The example below will focus on adding the customer group into the order email for registered users template.
To start with, let’s take a look where Magento sends out the order email. This happens within the Mage_Sales_Model_Order class within the queueNewOrderEmail() method.
As ...

Add a Custom Email Template in Magento

Within Magento there are a variety of different email templates ready for the merchant to use to send out order and account related emails to the customer. Occasionally, you’ll want to add a custom email template in Magento.
Email templates are stored within the locale/en_US/template/email directory with the sales related emails located within the sales ...

Magento Add Checkout Step

Adding a custom checkout step to Magento’s Onepage checkout is no easy task. It’s important to understand the templates and block classes involved, as well as the JavaScript used to show and hide the relevant steps.
Let’s take a look at the RWD checkout and outline what is already defined.
Firstly, we have six checkout ...

Magento 2 Plugins

Magento 2 plugins are classes that can modify the behaviour of public class functions by running code before, after, or around that function call.
This means that any method’s behaviour can be modified within the application without the need to explicitly dispatch an event and create an observer like in Magento 1.
There is ...