Magento 2 Development Essentials - Fernando J. Miguel - E-Book

Magento 2 Development Essentials E-Book

Fernando J Miguel

0,0
26,39 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

Get up and running with Magento 2 to create custom solutions, themes, and extensions effectively

About This Book

  • Create unique solutions for Magento 2 by developing and implementing solutions, themes, and extensions
  • Be proficient in the main functionalities, resources, and system structure of Magento 2
  • Get to grips with this practical and hands-on guide to raise your web development skills to the next level

Who This Book Is For

If you are a PHP developer who wants to improve your skills in e-commerce development by creating themes and extensions for Magento 2, then this book is for you.

What You Will Learn

  • Install and set up the Magento Ecosystem
  • Choose the best options for Magento's Sell System features
  • Work with Search Engine Optimization in Magento
  • Create and customize themes for Magento
  • Develop extensions for new Magento functionalities
  • Package extensions to publish in the Magento Connect network
  • Create Magento solutions for mobile devices
  • Carry out performance adjustments to speed up your Magento system

In Detail

Magento is the e-commerce software and platform trusted by the world's leading brands. Used by thousands of merchants for their transactions worth billions, it provides the flexibility to customize the content and functionality of your website. By strengthening your fundamentals in Magento development, you can develop the best solutions and take advantage of the growing market.

This fast-paced tutorial will provide you with skills you need to successfully create themes, extensions, and solutions to Magento 2 projects.

This book begins by setting up Magento 2 before gradually moving onto setting the basic options of the Sell System. You will take advantage of Search Engine Optimization aspects, create design and customize theme layout, develop new extensions, and adjust the Magento System to achieve great performance. By sequentially working through the steps in each chapter, you will quickly explore all the features of Magento 2 to create a great solution.

With ample examples and a practical approach, this book will ensure your success with this astonishing e-commerce management system.

Style and approach

This book would be a fast-paced tutorial guide that uses hands-on examples to developing new solutions for Magento e-commerce system. Each topic is explained sequentially in the process of creating a Magento solution, along with detailed explanations of the basic and advanced features of Magento 2.

Sie lesen das E-Book in den Legimi-Apps auf:

Android
iOS
von Legimi
zertifizierten E-Readern

Seitenzahl: 130

Veröffentlichungsjahr: 2016

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Table of Contents

Magento 2 Development Essentials
Credits
About the Author
About the Reviewers
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
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
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
Index

Magento 2 Development Essentials

Magento 2 Development Essentials

Copyright © 2016 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: February 2016

Production reference: 1220216

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-78528-989-7

www.packtpub.com

Credits

Author

Fernando J. Miguel

Reviewers

Michel Arteta

Miguel I. Balparda

Clive Walkden

Commissioning Editor

Veena Pagare

Acquisition Editor

Larissa Pinto

Content Development Editor

Sanjeet Rao

Technical Editor

Anushree Arun Tendulkar

Copy Editor

Shruti Iyer

Project Coordinator

Judie Jose

Proofreader

Safis Editing

Indexer

Tejal Soni Daruwale

Graphics

Jason Monteiro

Production Coordinator

Manu Joseph

Cover Work

Manu Joseph

About the Author

Fernando J. Miguel is a certified professional scrum master at the Scrum Alliance, with experience in analysis and web application development since 2003. He has been working in project development using design patterns, MVC, object-oriented programming, and Agile. He also has experience with content management systems (CMS), WordPress, Joomla, Magento 2, PHP, Java, Node.js, Android, SQL, NoSQL, and cloud computing.

Fernando has a bachelor's degree in information systems from Centro Universitário Módulo, Brazil. He specializes in project management / PMI-PMBOK from Universidade Cruzeiro do Sul, Brazil. He also specializes in health informatics from Universidade Federal de São Paulo, Brazil, and he is currently pursuing a master's degree in electronic engineering and computer informatics from Instituto de Tecnologia e Aeronáutica (ITA), one of the best technology institutes in Brazil.

I'd like to thank my great professors, masters, and references Adilson Marques da Cunha, Flávio Marques Azevedo, and Renato Vercesi Mader for the valuable teachings and professional experience contribution, which enabled the building of this project.

About the Reviewers

Michel Arteta is a Magento-certified frontend developer, currently working as a frontend developer at Dow Jones (Innovation Department, Web and Mobile Development), New York. With more than 5 years of experience in web development, Michel has a strong background in modern web application development. He currently lives in New York and can be contacted on Twitter at @michelarteta.

Previously, he has worked for Faro Group, Founder (Magento Development) and Nano Web Group (Magento Development) in New York.

I would love to thank to my father, mother, and the woman I love, for her unconditional love and support.

Miguel I. Balparda is a Magento developer, speaker, Linux aficionado, and full-time traveler.

Clive Walkden is a PHP developer with a passion for learning, constantly looking at open source frameworks to improve his knowledge of coding. His favorite frameworks currently are Magento and Laravel.

Clive has over 15 years of programming experience. For the last 5 years, he has been the lead developer at SOZO Design, an agency in Cheltenham, UK, that focuses on PHP/SQL websites of all sizes from brochures to international e-commerce websites.

I'd like to thank the author for taking the time to write a book on how to get started building a website using Magento. It's not an easy task, and this book accomplishes this very well. Packt, for their confidence in my knowledge and experience to approach me as a technical reviewer. I would finally also like to thank my family and friends for their support and encouragement.

www.PacktPub.com

eBooks, discount offers, and more

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

https://www2.packtpub.com/books/subscription/packtlib

Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.

Why subscribe?

Fully searchable across every book published by PacktCopy and paste, print, and bookmark contentOn demand and accessible via a web browser

To my grandmother, Mildes, and my mother, Edneia, wherever they are, I'm sure they are very happy with my work. To my beloved wife, Elizabete, for the countless hours of patience with my work. Love you.

Preface

Digital buyers are improving economies around the world, and information technology (IT) provides the necessary subsides to allow customers to buy services and products over the Internet. According to the research conducted by Statista (http://goo.gl/BSCiuO), in 2016, 1.12 billion people worldwide are expected to buy goods and services online.

Since the launch of Amazon.com, the first commercial-free 24-hour e-commerce website, the universe of software development techniques has evolved, and new approaches are emerging, such as cloud computing—previously no more than an embryonic idea, today a concrete application.

The Magento Commerce company, recognized as the leading e-commerce platform in the 2015 Internet Retailer Top 1000, B2B 300, and Hot 100 lists, is in constant evolution since the first Magento Community Edition (CE) system version in 2008. Launched recently, Magento CE 2.0 has great features and takes advantage of the newest client-server techniques providing a mature e-commerce system and a promising professional area to explore.

Magento, used by thousands of merchants for their transactions worth billions, provides the flexibility to customize the content and functionality of your website. By strengthening your fundamentals in Magento development, you can develop the best solutions and take advantage of the growing market.

This fast-paced tutorial will provide you with skills you need to successfully create themes, extensions, and solutions to Magento 2 projects.

This book begins by showing you how to set up Magento 2 before gradually moving onto setting the basic options of the Sell System. You will take advantage of Search Engine Optimization aspects, create design and customize theme layout, develop new extensions, and adjust the Magento System to achieve great performance. By the end of the book, you will have quickly explored all the features of Magento 2 to create a great solution.

With ample examples and a practical approach, this book will ensure your success with this astonishing e-commerce management system.

Enjoy the read.

What this book covers

Chapter 1, Magento Fundamentals, teaches you how to create a basic environment, install Magento 2.0, and study some Magento concepts.

Chapter 2, Magento 2.0 Features, helps you discover the features of Magento 2.0 and configure some basic Magento options.

Chapter 3, Working with Search Engine Optimization, provides you with some configuration tips to tweak the Magento options for SEO purposes.

Chapter 4, Magento 2.0 Theme Development – the Developers' Holy Grail, gives you an overview of theme development and techniques of customizing Magento 2.0.

Chapter 5, Creating a Responsive Magento 2.0 Theme, implements a practical project to create your custom theme.

Chapter 6, Write Magento 2.0 Extensions – a Great Place to Go, provides you with development techniques by implementing a practical project to create your own Magento extension.

Chapter 7, Go Mobile with Magento 2.0!, covers techniques of working with Magento on mobile devices.

Chapter 8, Speeding up Your Magento 2.0, explains good practices to fine-tune your Magento system and environment to gain performance.

Chapter 9, Improving Your Magento Skills, explores the tools and ways to improve your skills in the Magento universe.

What you need for this book

You need the following for the projects in this book:

Operating Systems:

Linux, OSX or Windows (7, 8 or 10);

Software:

XAMPPBrowser (Google Chrome or Firefox)Code editor (Sublime Text, Notepad++ or Atom.io)

Who this book is for

If you are a PHP developer who wants to improve your skills in e-commerce development by creating themes and extensions for Magento 2, then this book is for you.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "In order to start XAMPP for Windows, you can execute xampp-control.exe."

A block of code is set as follows:

<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd"> <title>Magento Luma</title> <parent>Magento/blank</parent> <media> <preview_image>media/preview.jpg</preview_image> </media> </theme>

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

<Magento root directory>/app/design/frontend/Packt

Any command-line input or output is written as follows:

<Magento root directory>/app/design/frontend/Packt/basic

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Complete the installation by pressing the Finish button."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail <[email protected]>, and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for this book from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

You can download the code files by following these steps:

Log in or register to our website using your e-mail address and password.Hover the mouse pointer on the SUPPORT tab at the top.Click on Code Downloads & Errata.Enter the name of the book in the Search box.Select the book for which you're looking to download the code files.Choose from the drop-down menu where you purchased this book from.Click on Code Download.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

WinRAR / 7-Zip for WindowsZipeg / iZip / UnRarX for Mac7-Zip / PeaZip for Linux

Downloading the color images of this book

We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from http://www.packtpub.com/sites/default/files/downloads/Magento_Development_By_Example_ColoredImages.pdf.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy