售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Magento 2 Cookbook
Table of Contents
Magento 2 Cookbook
Credits
Foreword
About the Authors
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why Subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Installing Magento 2 on Apache and NGINX
Introduction
Installing Apache
Getting ready
How to do it...
How it works…
There's more…
Installing NGINX
Getting ready
How to do it...
How it works…
There's more…
Installing PHP-FPM
Getting ready
How to do it...
How it works…
There's more…
Installing HHVM
Getting ready
How to do it...
How it works…
There's more…
Installing MySQL
Getting ready
How to do it...
How it works…
There's more…
Installing Magento 2
Getting ready
How to do it...
How it works…
There's more…
Installing Magento 2 on Hypernode
Getting ready
How to do it...
How it works…
There's more…
Managing Magento 2 on Docker
Getting ready
How to do it…
How it works…
There's more…
2. Magento 2 System Tools
Introduction
Installing Magento 2 sample data via GUI
Getting ready
How to do it...
How it works…
There's more…
Installing Magento 2 sample data via the command line
Getting ready
How to do it...
How it works…
There's more…
Managing Magento 2 indexes via the command line
Getting ready
How to do it...
How it works…
There's more…
Managing Magento 2 cache via the command line
Getting ready
How to do it...
How it works…
There's more…
Managing Magento 2 backup via the command line
Getting ready
How to do it...
How it works…
There's more…
Managing Magento 2 set mode (MAGE_MODE)
Getting ready
How to do it...
How it works…
There's more…
Transferring your Magento 1 database to Magento 2
Getting ready
How to do it...
How it works…
There's more…
3. Enabling Performance in Magento 2
Introduction
Configuring Redis for backend cache
Getting ready
How to do it…
How it works…
There's more…
Configuring Memcached for session caching
Getting ready
How to do it…
How it works…
There's more…
Configuring Varnish as the Full Page Cache
Getting ready
How to do it…
How it works…
There's more…
Configuring Magento 2 with CloudFlare
Getting ready
How to do it…
How it works…
There's more…
Configuring optimized images in Magento 2
Getting ready
How to do it…
How it works…
There's more…
Configuring Magento 2 with HTTP/2
Getting ready
How to do it…
How it works…
There's more…
Configuring Magento 2 performance testing
Getting ready
How to do it…
How it works…
There's more…
4. Creating Catalogs and Categories
Introduction
Create a Root Catalog
Getting ready
How to do it...
How it works…
There's more…
Create subcategories
Getting ready
How to do it...
How it works…
There's more…
Manage attribute sets
Getting ready
How to do it...
How it works…
There's more…
Create products
Getting ready
How to do it...
How it works…
There's more…
Manage products in a catalog grid
Getting ready
How to do it...
How it works…
There's more…
5. Managing Your Store
Introduction
Creating shipping and tax rules
Getting ready
How to do it…
How it works…
There's more…
Managing customer groups
Getting ready
How to do it…
How it works…
There's more…
Configuring inventories
Getting ready
How to do it…
How it works…
There's more…
Configuring currency rates
Getting ready
How to do it…
How it works…
There's more…
Managing advanced pricing
Getting ready
How to do it…
How it works…
6. Creating a Magento 2 Theme
Introduction
Creating a new theme
Getting ready
How to do it…
How it works…
Adding theme variants
Layout files
Template files
Magento UI library
Changing a layout XML of a Magento 2 module
Getting ready
How to do it…
How it works…
<container>
referenceContainer/referenceBlock
move
remove
update
Overriding template files
Adding CSS/JS to pages
Getting ready
How to do it…
How it works…
External files
JavaScript files
CSS files
Removing a file in the header
Using Grunt for CSS changes
Getting ready
How to do it…
How it works…
LiveReload
Adding static blocks to pages through layout XML
Getting ready
How to do it…
How it works…
Adding a block to a single page
Adding static blocks to pages through widgets
How to do it…
How it works…
Available widgets
CMS Page Link
CMS Static Block
Catalog Category Link
Catalog New Products List
Catalog Product Link
Catalog Product List
Orders and Returns
Recently Compared Products
Recently Viewed Products
Using a dynamic serving theme based on the client browser
Getting ready
How to do it…
How it works…
Creating theme-specific translations
Getting ready
How to do it…
How it works…
Generating a translation file
7. Creating Magento 2 Extensions – the Basics
Introduction
Initializing extension basics
Getting ready
How to do it…
How it works…
There's more…
Working with database models
Getting ready
How to do it…
How it works…
Creating tables using setup scripts
Getting ready
How to do it…
How it works…
There's more…
Data installation
Creating a web route and controller to display data
How to do it…
How it works…
Creating system configuration fields
Getting ready
How to do it…
How it works…
Creating a new tab
Creating a new section
Creating a new group
Creating a new field
There's more…
Creating a backend data grid
How to do it…
How it works…
The uiComponent configuration
Data source
Mass actions for grid
See also
Creating a backend form to add/edit data
Getting ready
How to do it…
How it works…
Building the form
Adding a form field
Loading the data
Saving the data
8. Creating Magento 2 Extensions – Advanced
Introduction
Using dependency injection to pass classes to your own class
Getting ready
How to do it…
How it works…
Modifying functions with the use of plugins – Interception
Getting ready
How to do it…
How it works…
Creating your own XML module configuration file
Getting ready
How to do it…
How it works…
Creating your own product type
Getting ready
How to do it…
How it works…
Working with service layers/contracts
How to do it…
How it works…
DemoRepositoryInterface
DemoInterface
See also
Creating a Magento CLI command option
Getting ready
How to do it…
How it works…
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜