guide

/Tag:guide

Attaching PDF file to email on Magento 2

By | June 29th, 2017|Magento 2 Guide|

In Magento 2, The lib/internal/Magento/Framework/Mail/Template/TransportBuilder Class takes responsibility for preparing and sending email, but it's still lacking a method for attaching PDF files. However, since the TransportBuilder Class uses Message class, which inherits from \Zend_Mail, we are now able to add attachments programmatically. Here is how we do it. Step 1: Create TransportBuilder Class Step [...]

How to install Magento 2 running on Zend Server on Ubuntu

By | June 1st, 2017|Magento 2 Guide|

In this blog, I'd like to share with you the step-by-step procedure of how to install Magento 2 running on Zend Server on Ubuntu. Step 1: Install Zend Server First of all, you can go to the following website to download Zend Server package: http://www.zend.com/en/products/server/downloads The package usually will be save in Downloads Then open [...]

How to debug Magento 2 code with Xdebug and PhpStorm (Part 2)

By | May 15th, 2017|Magento 2 Guide|

Introduction In this second part of the series, I’m going to guide you how to start a debugging session, place a breakpoint and track the debugging progress. But before we begin, make sure that you have installed and set up Xdebug with PhpStorm. If you don't know how to do it, please visit our instructions [...]

How to manage Cookie in Magento 2

By | May 10th, 2017|Magento 2 Guide|

Cookie is a small piece of data sent from a website and stored on the user's computer by the user's web browser while the user is browsing. Then, whenever he is back, he can easily get those data. It’s really convinent, isn’t it? In this blog, I would like to introduce you a detailed guide [...]

Create a Widget in Magento 2

By | April 26th, 2017|Magento 2 Guide|

Widget is a manageable component of Magento 2, which allows users to display data anywhere on their own front-end site. So are you looking for the way how to create a widget in Magento 2? You're welcome! In this blog, I would like to share with you the detailed procedure of adding a custom widget [...]

Install new language in Magento 2

By | April 14th, 2017|Magento 2 Guide|

In Magento, the default language is English. So the question now is: Can we add another language for our Magento site? Of course it's a Yes. Just pick the desire language for your site and follow this step-by-step procedure.   Step 1: Installing new language package First, locate your desire language package. Here is some [...]

Magento 2 Cache Guide

By | April 7th, 2017|Magento 2 Guide|

Introduction Caching is an inseparable part in any systems, especially for a complex and data-dependent one like Magento 2. Almost everything in Magento has its own cache: modules, themes, … and improper cache management may turn your developing experience into a living hell. So we will have a quick look on Magento 2 cache directories [...]

How to use Knockout JS on a Magento 2 Frontend Page

By | March 24th, 2017|Magento 2 Guide|

Knockout JS (KO) is a Javascript library which is used on frontend in Magento 2. It implements Model-View-View Model (MVVM) design pattern. You can find Knockout JS Magento 2 on almost every page. Today we will create a simple Front-end page in Magento 2 using Knockout JS. The main usage of Knockout JS is to help you [...]

Power up and beautify your terminal by using Zsh

By | March 17th, 2017|Magento 2 Guide|

  Introduction As a developer, working with terminal is a must. Indeed, we spend a better part of the day working on Terminal: Comparing different commits, making changes through Vim and running scripts. So why don’t we make it looks better, more comfortable and even more powerful than before? Our today blog will introduce to [...]

How to Distinguish Magento 2 Product Types

By | January 27th, 2016|Magento 2 Guide|

I know these Magento 2 product types sound old school for Magento veterans; however it is a frequent asked question for fresh men. To be honest, I myself experienced difficulties to distinguish all this type when I first got used to Magento. Simple product This is the most basic and used type of products and [...]