Magento 2 Cookbook

Over 50 practical recipes that will help you realize the full potential of Magento in order to build a professional online store

Magento 2 Cookbook

This ebook is included in a Mapt subscription
Ray Bogman, Vladimir Kerkhoff

2 customer reviews
Over 50 practical recipes that will help you realize the full potential of Magento in order to build a professional online store
$0.00
$35.99
$44.99
$29.99p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781785887062
Paperback342 pages

Book Description

Magento 2 is an open source e-commerce platform that has all the functionality to function from small to large online stores. It is preferred by developers and merchants due to its new architecture, which makes it possible to extend the functionalities with plugins, a lot of which are now created by the community.

This merchant and developer guide is packed with recipes that cover all aspects of Magento 2. The recipes start with simple how-to’s then delve into more advanced topics as the book progresses.

We start with the basics of setting up a Magento 2 project on Apache or Nginx. Next, you will learn about basics including system tools and caching to get your Magento 2 system ready for the real work. We move on to simple tasks such as managing your store and catalog configuration. When you are familiar with this, we cover more complex features such as module and extension development. Then we will jump to the final part: advanced Magento 2 extensions.

By the end of this book, you’ll be competent with all the development phases of Magento 2 and its most common elements.

Table of Contents

Chapter 1: Installing Magento 2 on Apache and NGINX
Introduction
Installing Apache
Installing NGINX
Installing PHP-FPM
Installing HHVM
Installing MySQL
Installing Magento 2
Installing Magento 2 on Hypernode
Managing Magento 2 on Docker
Chapter 2: Magento 2 System Tools
Introduction
Installing Magento 2 sample data via GUI
Installing Magento 2 sample data via the command line
Managing Magento 2 indexes via the command line
Managing Magento 2 cache via the command line
Managing Magento 2 backup via the command line
Managing Magento 2 set mode (MAGE_MODE)
Transferring your Magento 1 database to Magento 2
Chapter 3: Enabling Performance in Magento 2
Introduction
Configuring Redis for backend cache
Configuring Memcached for session caching
Configuring Varnish as the Full Page Cache
Configuring Magento 2 with CloudFlare
Configuring optimized images in Magento 2
Configuring Magento 2 with HTTP/2
Configuring Magento 2 performance testing
Chapter 4: Creating Catalogs and Categories
Introduction
Create a Root Catalog
Create subcategories
Manage attribute sets
Create products
Manage products in a catalog grid
Chapter 5: Managing Your Store
Introduction
Creating shipping and tax rules
Managing customer groups
Configuring inventories
Configuring currency rates
Managing advanced pricing
Chapter 6: Creating a Magento 2 Theme
Introduction
Creating a new theme
Changing a layout XML of a Magento 2 module
Adding CSS/JS to pages
Using Grunt for CSS changes
Adding static blocks to pages through layout XML
Adding static blocks to pages through widgets
Using a dynamic serving theme based on the client browser
Creating theme-specific translations
Chapter 7: Creating Magento 2 Extensions – the Basics
Introduction
Initializing extension basics
Working with database models
Creating tables using setup scripts
Creating a web route and controller to display data
Creating system configuration fields
Creating a backend data grid
Creating a backend form to add/edit data
Chapter 8: Creating Magento 2 Extensions – Advanced
Introduction
Using dependency injection to pass classes to your own class
Modifying functions with the use of plugins – Interception
Creating your own XML module configuration file
Creating your own product type
Working with service layers/contracts
Creating a Magento CLI command option

What You Will Learn

  • Set up a Magento 2 project on Apache or Nginx.
  • Transfer your Magento 1 database to Magento 2 using the Magento 2 system tools.
  • Boost the performance of Magento 2 by enabling different types of caching.
  • Build a Magento 2 multi-store by creating a root catalog, subdirectories, and products.
  • Create and manage pages, blocks, and front-end apps.
  • Manage your Magento store by setting up the correct TAX rules.
  • Design custom themes within the Magento 2 framework.
  • Create basic and advanced extensions using Magento 2.

Authors

Table of Contents

Chapter 1: Installing Magento 2 on Apache and NGINX
Introduction
Installing Apache
Installing NGINX
Installing PHP-FPM
Installing HHVM
Installing MySQL
Installing Magento 2
Installing Magento 2 on Hypernode
Managing Magento 2 on Docker
Chapter 2: Magento 2 System Tools
Introduction
Installing Magento 2 sample data via GUI
Installing Magento 2 sample data via the command line
Managing Magento 2 indexes via the command line
Managing Magento 2 cache via the command line
Managing Magento 2 backup via the command line
Managing Magento 2 set mode (MAGE_MODE)
Transferring your Magento 1 database to Magento 2
Chapter 3: Enabling Performance in Magento 2
Introduction
Configuring Redis for backend cache
Configuring Memcached for session caching
Configuring Varnish as the Full Page Cache
Configuring Magento 2 with CloudFlare
Configuring optimized images in Magento 2
Configuring Magento 2 with HTTP/2
Configuring Magento 2 performance testing
Chapter 4: Creating Catalogs and Categories
Introduction
Create a Root Catalog
Create subcategories
Manage attribute sets
Create products
Manage products in a catalog grid
Chapter 5: Managing Your Store
Introduction
Creating shipping and tax rules
Managing customer groups
Configuring inventories
Configuring currency rates
Managing advanced pricing
Chapter 6: Creating a Magento 2 Theme
Introduction
Creating a new theme
Changing a layout XML of a Magento 2 module
Adding CSS/JS to pages
Using Grunt for CSS changes
Adding static blocks to pages through layout XML
Adding static blocks to pages through widgets
Using a dynamic serving theme based on the client browser
Creating theme-specific translations
Chapter 7: Creating Magento 2 Extensions – the Basics
Introduction
Initializing extension basics
Working with database models
Creating tables using setup scripts
Creating a web route and controller to display data
Creating system configuration fields
Creating a backend data grid
Creating a backend form to add/edit data
Chapter 8: Creating Magento 2 Extensions – Advanced
Introduction
Using dependency injection to pass classes to your own class
Modifying functions with the use of plugins – Interception
Creating your own XML module configuration file
Creating your own product type
Working with service layers/contracts
Creating a Magento CLI command option

Book Details

ISBN 139781785887062
Paperback342 pages
Read More
From 2 reviews

Read More Reviews