Table of Contents for
Magento 2 - Build World-Class online stores
Close
Version ebook
/
Retour
Magento 2 - Build World-Class online stores
by Jonathan Bownds
Published by Packt Publishing, 2017
Cover
Table of Contents
Magento 2 - Build World-Class online stores
Magento 2 - Build World-Class online stores
Credits
Preface
1. Module 1
1. Magento Fundamentals
XAMPP installation
Magento
Summary
2. Magento 2.0 Features
An introduction to the Magento order management system
Magento 2.0 command-line configuration
The command-line utility
Summary
3. Working with Search Engine Optimization
Store configuration
SEO and searching
SEO catalog configuration
Google Analytics tracking code
Optimizing Magento pages
Summary
4. Magento 2.0 Theme Development – the Developers' Holy Grail
Magento 2.0 theme structure
The Magento Luma theme
Magento theme inheritance
CMS blocks and pages
Custom variables
Creating a basic Magento 2.0 theme
Summary
5. Creating a Responsive Magento 2.0 Theme
Composer – the PHP dependency manager
Building the CompStore theme
CSS preprocessing with LESS
Applying new CSS to the CompStore theme
Creating the CompStore logo
Applying the theme
Creating CompStore content
Customizing Magento 2.0 templates
Summary
6. Write Magento 2.0 Extensions – a Great Place to Go
Using the Zend framework
Magento 2.0 extension structure
Developing your first Magento extension
The Twitter REST API
The TweetsAbout module structure
Using TwitterOAuth to authenticate our extension
Developing the module
Summary
7. Go Mobile with Magento 2.0!
Adjusting the CompStore theme for mobile devices
The Magento 2.0 responsive design
The Magento UI
Implementing a new CSS mixin media query
Adjusting tweets about extensions for mobile devices
Summary
8. Speeding up Your Magento 2.0
Indexing and caching Magento
Indexing and re-indexing data
The Magento cron job
Caching
Fine-tuning the Magento hosting server
Selecting the right Magento hosting service
Apache web server deflation
Enabling the expires header
Minifying scripts
Summary
9. Improving Your Magento Skills
Magento knowledge center
Improving your Magento skills
Summary
2. Module 2
1. Magento 2 System Tools
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
2. Enabling Performance in Magento 2
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
3. Creating Catalogs and Categories
Create a Root Catalog
Create subcategories
Manage attribute sets
Create products
Manage products in a catalog grid
4. Managing Your Store
Creating shipping and tax rules
Managing customer groups
Configuring inventories
Configuring currency rates
Managing advanced pricing
5. Creating Magento 2 Extensions – the Basics
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
6. Creating Magento 2 Extensions – Advanced
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
3. Module 3
1. Planning for Magento
Technical considerations
Global-Website-Store methodology
Planning for multiple stores
Summary
2. Managing Products
Managing products the customer focused way
Creating products
Managing inventory
Pricing tools
Autosettings
Related products, up-sells, and cross-sells
Importing products
Summary
3. Designs and Themes
The concept of theme inheritance
Default installation of design packages and themes
Installing third-party themes
Inline translations
Working with theme variants
Customizing themes
Customizing layouts
Summary
4. Configuring to Sell
Payment methods
Shipping methods
Managing taxes
Transactional e-mails
Summary
5. Managing Non-Product Content
Summary
6. Marketing Tools
Promotions
Newsletters
Using sitemaps
Optimizing for search engines
Summary
7. Extending Magento
The new Magento module architecture
Extending Magento functionality with Magento plugins
Building your own extensions
Summary
8. Optimizing Magento
Indexing and caching
Caching in Magento 2 – not just FPC
Tuning your server for speed
Summary
9. Advanced Techniques
Version control
Magento cron
Backing up your database
Upgrading Magento
Summary
10. Pre-Launch Checklist
System configurations
Design configurations
Search engine optimization
Sales configurations
Product configurations
Maintenance configurations
Summary
Index
Prev
Previous Chapter
Cover
Next
Next Chapter
Magento 2 - Build World-Class online stores
Table of Contents
Magento 2 - Build World-Class online stores
Credits
Preface
What this learning path covers
What you need for this learning path
Who this learning path is for
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Module 1
1. Magento Fundamentals
XAMPP PHP development environment
XAMPP installation
XAMPP for Windows installation
XAMPP for Linux installation
XAMPP for OS X installation
Magento
Magento installation
Magento MVC architecture
Summary
2. Magento 2.0 Features
The revolution of Magento 2.0
An introduction to the Magento order management system
Sales operations
A simplified checkout process
Orders
Payments
Promotions
Magento 2.0 command-line configuration
The command-line utility
Summary
3. Working with Search Engine Optimization
Magento SEO management
Store configuration
SEO and searching
SEO catalog configuration
XML sitemap manager
Google Analytics tracking code
Optimizing Magento pages
CMS pages
Product pages
Category pages
Summary
4. Magento 2.0 Theme Development – the Developers' Holy Grail
The basic concepts of Magento themes
Magento 2.0 theme structure
The Magento Luma theme
Magento theme inheritance
CMS blocks and pages
Custom variables
Creating a basic Magento 2.0 theme
Creating and declaring a theme
Simple product image configuration
Creating static files' directories
Creating a theme logo
Applying the theme
Summary
5. Creating a Responsive Magento 2.0 Theme
The CompStore theme
Composer – the PHP dependency manager
Installing Composer on Unix-like operating systems
Installing Composer on Windows
Building the CompStore theme
CSS preprocessing with LESS
Applying new CSS to the CompStore theme
Creating the CompStore logo
Applying the theme
Creating CompStore content
Customizing Magento 2.0 templates
Summary
6. Write Magento 2.0 Extensions – a Great Place to Go
Magento development overview
Using the Zend framework
Magento 2.0 extension structure
Developing your first Magento extension
The Twitter REST API
The TweetsAbout module structure
Using TwitterOAuth to authenticate our extension
Developing the module
Controllers
Blocks
Observer
Views
CSS
Deploying the module
Magento Connect
Packaging and publishing your module
Summary
7. Go Mobile with Magento 2.0!
Testing the website on different devices
The Google Chrome DevTools device mode
Changing the device preset
Network connectivity
Inspecting media queries
Viewing CSS
Adding custom devices
Responsive Web Designer tester
Adjusting the CompStore theme for mobile devices
The Magento 2.0 responsive design
The Magento UI
Implementing a new CSS mixin media query
Adjusting tweets about extensions for mobile devices
Summary
8. Speeding up Your Magento 2.0
Magento Entity-Attribute-Value
Indexing and caching Magento
Indexing and re-indexing data
The Magento cron job
Caching
Fine-tuning the Magento hosting server
Selecting the right Magento hosting service
Apache web server deflation
Enabling the expires header
PHP memory configuration
Optimizing the MySQL server
Minifying scripts
CDN for Magento
Summary
9. Improving Your Magento Skills
Magento Connect extensions
Installing a Magento extension
Debugging styles with the Grunt task runner
Magento knowledge center
Improving your Magento skills
Summary
2. Module 2
1. 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…
2. 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…
3. 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…
4. 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…
5. 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
6. 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…
3. Module 3
1. Planning for Magento
Defining your scope
Project requirements
Requirements checklist
Planning for users
Staff
Customers
Assessing technical resources
Technical considerations
Hosting provider
In-house hosting
Servers
The best of both worlds
Setting up a local test installation
Global-Website-Store methodology
Global
Website
Store
Planning for multiple stores
Using multiple domains for effective market segmentation
Using multiple businesses to keep finances separate
Using multiple languages to sell globally
Summary
2. Managing Products
Catalogs and categories
Creating categories
General information tab
Display Settings tab
Custom Design tab
Category Products tab
Re-ordering categories
Special categories
Managing products the customer focused way
The simple product type
The complex product types
Configurable product type
Grouped product type
Bundle product type
Virtual product type
Downloadable product type
Attributes and attribute sets
Attribute types
Selecting an attribute type
Creating an attribute
Attribute properties
Manage options
Manage Swatch
Advanced attribute properties
Managing labels
Storefront properties
Creating attribute sets
Creating products
The new product screen
Creating a simple product
Creating a configurable product
Creating a grouped product
Creating bundled products
Creating a downloadable product
Creating a virtual product
Managing inventory
Low stock notifications
Product reports
Pricing tools
Pricing by customer group
Quantity-based pricing
Autosettings
Related products, up-sells, and cross-sells
Related products
Upsell products
Cross-sell products
Importing products
The shortcut to importing products
Summary
3. Designs and Themes
The Magento theme structure
Theme files and directories
The concept of theme inheritance
Configuring a parent theme in theme.xml
Overriding static files
Overriding theme files
Default installation of design packages and themes
Installing third-party themes
Inline translations
Working with theme variants
Assigning themes
Applying theme variants
Scheduling a theme variant
Customizing themes
Customizing layouts
Expertly controlling layouts
Using the reference tag to relocate blocks
Customizing the default layout file
Summary
4. Configuring to Sell
The sales process
The Magento sales process
Managing backend orders
Convert orders to invoices
Creating shipments
Payment methods
PCI compliance
Classes of payment systems
Off-site payment systems
Pros
Cons
On-site payment systems
Pros
Cons
PayPal
PayPal all-in-one payment solutions
PayPal payment gateways
PayPal Express
Braintree
Check/money order
Bank transfer payment
Cash on delivery payment
Zero subtotal checkout
Purchase order
Authorize.net direct post
Shipping methods
Origin
Handling fee
Allowed countries
Method not available
Free shipping
Flat rate
Table rates
Quantity- and price-based rates
Save your rate table
Table rate settings
Upload rate table
Carrier methods
Managing taxes
How Magento manages taxes
Creating tax rules
Importing tax rates
Value added tax configurations
Setup VAT taxes
Transactional e-mails
Create a new header template
Assign e-mail header and footer
Create new e-mail template
Summary
5. Managing Non-Product Content
The Magento content management system
Pages
Customizing a CMS page
Modifying the Home Page layout
The Content screen
Creating a CMS page
Using blocks and widgets
Adding a page link
Using WYSIWYG
Using HTML
Using a widget
Using variables
Creating your own variables
Using widgets to insert content onto site pages
Summary
6. Marketing Tools
Customer groups
Creating a customer group
Promotions
Creating a catalog price rule
Creating cart price rules
Adding the new rule
Defining the rule's conditions
Defining the rule's actions
Modifying the rule's labels
Generating coupon codes
Testing the rule
Newsletters
Subscribing customers
Creating newsletter templates
Scheduling your newsletter
Checking for problems
Managing your subscribers
Using sitemaps
Adding a sitemap
Optimizing for search engines
Using meta fields for search engine visibility
Meta fields in Magento
SEO checklist
Summary
7. Extending Magento
Magento Connect
Searching Magento Connect
Why developers create free extensions
The new Magento module architecture
Extending Magento functionality with Magento plugins
Building your own extensions
Whether others have gone before
Your extension files
Step one
Step two
Step three
Step four
Step five
Step six
Summary
8. Optimizing Magento
Exploring the EAV
Entity
Attribute
Value
Putting it all together
The good and bad of EAV
Making it flat
Indexing and caching
Indexing
Flat or no flat
Reindexing
Caching
Core caching
Full page cache
The impact of caching
Managing caching
Caching in Magento 2 – not just FPC
Tuning your server for speed
Deflation
Enabling expires
Increasing PHP memory
Increasing the MySQL cache
Using the Nginx server
Using Varnish cache
Using a CDN
Summary
9. Advanced Techniques
Setting up a staging environment
A simple approach
The basic staging setup
Don't be tempted to skip
Version control
Magento cron
Magento cron jobs
Triggering cron jobs
Tuning Magento's schedules
Setting your frequency
Creating compatible settings
Backing up your database
The built-in back-up
Using MySQLDump
Setting a cron for back-up
Upgrading Magento
Obtaining Magento Marketplace keys
Upgrading your Magento installation
Summary
10. Pre-Launch Checklist
A word about scope
System configurations
SSL
Base URLs
Administrative base URL
Reducing file download time
Merging JavaScript files
Merging CSS files
Caching
Cron jobs
Users and roles
Design configurations
Transactional emails
Invoices and packing slips
Favicon
Placeholder images
404 and error pages
Search engine optimization
Meta tags
Analytics
Sitemap
Sales configurations
Company information
Store e-mail addresses
Contacts
Currency
General sales settings
Customers
Sales emails
Tax rates and rules
Shipping
Payment methods
Newsletters
Terms and conditions
Checkout
Product configurations
Catalog
Storefront panel
Product reviews
Product alerts
Product alerts run settings
Product image placeholders
Recently viewed/compared products
Price
Layered navigation
Category top navigation
Search engine optimizations
Catalog search
RSS feeds
Maintenance configurations
Backups
Summary
Index
Prev
Previous Chapter
Cover
Next
Next Chapter
Magento 2 - Build World-Class online stores