Book Image

Magento 2 Development Essentials

By : Fernando J Miguel
Book Image

Magento 2 Development Essentials

By: Fernando J Miguel

Overview of this book

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.
Table of Contents (16 chapters)
Magento 2 Development Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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:

  • XAMPP

  • Browser (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 , 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:

  1. Log in or register to our website using your e-mail address and password.

  2. Hover the mouse pointer on the SUPPORT tab at the top.

  3. Click on Code Downloads & Errata.

  4. Enter the name of the book in the Search box.

  5. Select the book for which you're looking to download the code files.

  6. Choose from the drop-down menu where you purchased this book from.

  7. 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 Windows

  • Zipeg / iZip / UnRarX for Mac

  • 7-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

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at , and we will do our best to address the problem.