developer

/Tag:developer

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 [...]

Six-pack IT developer. Possible or not?

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

  Have you ever looked in the mirror and wondered if you can have a six-pack body despite being an IT developer who must spend hours in front of computer? Congratulations! You just found the right place! Although I am by no means an expert on body fitness, but based on my own experience, I [...]

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 [...]

Magento 2 modes: default, developer and production

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

There are 3 Magento 2 modes of operation that your system will be running on: developer, product and default mode. This setting is configured in your app/etc/env.php file, which is the value of ‘MAGE_MODE’ key. Your current Magento 2 modes can be seen in app/etc/env.php file Now we should know what each of [...]