
Magento 2 Beginners Guide
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
Key Features
Set up and manage your very first online store with a friendly and engaging approach using Magento 2
Create your own shipping rates matrix and connect to shippers such as UPS, FedEx, and USPS
Create reports to track store sales, customer activity, and statistics
Book DescriptionDo you have a good product to sell but need your start-up to sell it to your potential customers the right way? Were you unhappy with what Magento 1 had to offer and are looking forward to trying out what Magento 2 provides? If either of these questions ring a bell, then this book is for you! You'll start by getting a general understanding of what Magento is, why and how you should use it, and whether it is possible and feasible to migrate from an old web store to Magento 2. We'll introduce you to the main e-commerce concepts and basic features and let you play with them, so you can get a taste of how catalog and content management works. Following on from that, we'll show you how to tune your store up. You will learn how to get web store offers up and running, how to offer various discounts in the catalog, how to let the customers reduce the total price in the shopping cart by combining different products, and how to generate coupon codes that customers can use. Finally, we'll get serious and turn your plaything into a real web store, teaching you how to run it for real.What you will learn
Build your first web store in Magento 2
Migrate your development environment to a live store
Configure your Magento 2 web store the right way, so that your taxes are handled properly
Create pages with arbitrary content
Create and manage customer contacts and accounts
Who this book is forThis book is for e-commerce merchants, e-commerce managers, and store administrators who are looking to migrate existing e-commerce stores to Magento 2. Magento administrators wishing to learn the benefits of Magento 2 will also find this book helpful. E-commerce professionals looking to build an online store will also get benefited from this book.
All prices
More details
Other editions
Additional editions

Person
Gabriel Guarino has been working with Magento since 2009. As a Magento specialist he has achieved all the Magento certifications. He is an active member of the community and has been recognized as a Magento Master for 2017. He is the Chief Operating Officer of Wagento, a full-service Magento Solution Partner with offices in USA, Mexico, Bolivia, India, and Argentina. He is also a moderator in Magento forums, and he is a frequent speaker at Magento events.
Content
Introduction to Magento 2
Installation
Migration
Creating Your First Product. Images, Inventory and Prices
Attribute Sets and CustomAttributes
Product Types
Categories
CMS Pages, Blocks and Widgets
Managing Scope and Locale Settings
System Configuration
Working with customers
Admin Users and Roles
Taxes
Catalog and Shopping Cart Price Rules
Processing Payments
Configuring Shipping
Fulfilling Orders
Transactional Emails and Newsletter
Reports
Customizing your Magento Store
Store maintenance
Installing Magento in Amazon EC2
In this section, we will set up a server in Amazon from scratch. The server will be ready for Magento with all the requirements and dependencies installed, so you can manage your first Magento development server.
Setting up the Amazon AWS account
The first step is setting up your Amazon AWS account to create the server instance in Amazon EC2.
In order to do this, you should follow these steps:
- Go to the Amazon AWS homepage at https://aws.amazon.com/. It will look something like this:
- Click on Create an AWS Account.
- Add your e-mail or phone number and select I am a new user.:
- Click on Sign in using our secure server.
- Complete the form with your personal information and click on Create account:
Creating the Amazon EC2 instance
After verifying the Amazon AWS account, you can create your first Amazon EC2 instance. Instances are virtual servers that can run web applications. Let's go through the steps to create the Amazon EC2 instance:
- Go to the Amazon EC2 landing page, that is, https://aws.amazon.com/ec2/, which will look something like this:
- Click on My Account in the top-right of the screen, then click on AWS Management Console and, finally, sign in using your Amazon account.
- On the AWS Management Console, search for
ec2in the AWS services search box: - You will be redirected to the EC2 dashboard. This will be the place to control and monitor your Amazon instances. Next, you click on Launch Instance in the middle of the page:
Choose an Instance Type: On this page, you can see the different instance types that you can choose depending on the size of the Magento store. For now, we will choose the t2.micro Free tier eligible instance type:
- Instance Setup Wizard:
- Choose an Amazon Machine Image (AMI): In this step, you can choose the software configuration for the Amazon instance. For this guide, we will choose Ubuntu Server:
- Choose an Instance Type: On this page, you can see the different instance types that you can choose depending on the size of the Magento store. For now, we will choose the t2.micro Free tier eligible instance type:
- Configure Instance: You can set advanced options for your instance in this step. We will keep the configuration by default in this step to proceed to step 4 of the Setup Wizard.
- Add Storage: In this step, you can specify the storage for your instance. Since the size of the Magento 2 code base with sample data is 530 MB, we will keep the default size for the volume (8 GB).
- Add Tags: This step is helpful when you have multiple Amazon instances since you can add tags to categorize the resources in your Amazon account.
- Configure Security Group: The security group is a set of rules that controls the traffic of the Amazon instance. The default rule port is SSH, which allows the user to access the instance from the terminal. In order to allow Internet traffic for the Magento store, you should enable the HTTP and HTTPS ports. You can add these ports by clicking on Add Rule and then selecting HTTP and HTTPS from the Custom TCP Rule dropdown.
- Review: In this step, you can review the configuration for your Amazon instance. Click on Launch at the bottom-right of the screen:
This is a really important part of the process. You can access the Amazon instance by using a private key file.
The only way to access the new instance is using the key pair, which is a combination of the public key that AWS stores and your private key file.
Choose Create a new key pair and then set the key pair name and click on Download Key Pair. Never lose the private key file since that is the master key to access your Amazon instance.
Finally, click on Launch Instance to finish the Setup Wizard.
Preparing the Amazon instance for Magento 2
Now that you created the Amazon instance, we are ready to install all the packages and dependencies to prepare the instance for Magento 2.
The first step is to log in to the server using the private key file that you downloaded from the Setup Wizard.
To log in, you need to know the public DNS or the public IP for the instance. You can get those values from the AWS EC2 Management Console:
- Go to the
https://console.aws.amazon.com/ec2/AWS EC2 Management Console. - You will see the instance that we just created in the list. Scroll to the right in the table to find the Public DNS and the Public IP for the instance:
- Before logging in to the server, we should give the right permissions to the private key file. Locate the file in the Terminal and run the following command: chmod 400 ~/Key Pairs/sample.pem
Now we are ready to log in to the AWS instance using the following command:
ssh -i ~/sample.pem ubuntu@107.20.106.201We can alternatively use this command:
ssh -i ~/sample.pem ubuntu@ec2-107-20-106-201.compute-1.amazonaws.comOnce you log in to the development server, you should get sudo privileges to proceed with the installation of all the dependencies without problems:
Now, it is time to set up all the dependencies for Magento 2:
- Update all the existing packages in the server: apt-get update
- We will install Apache, PHP, and the required PHP modules and composer using the following commands: apt-get install sudo apt-get install apache2 sudo apt-get install php7.0 sudo apt-get install libapache2-mod-php sudo apt-get install php7.0-simplexml sudo apt-get install php7.0-curl sudo apt-get install php7.0-intl sudo apt-get install php7.0-xsl sudo apt-get install php7.0-zip sudo apt-get install php7.0-xml sudo apt-get install php7.0-curl sudo apt-get install php7.0-gd sudo apt-get install php7.0-mcrypt sudo apt-get install php7.0-dom sudo apt-get install php7.0-mbstring sudo apt-get install composer
Tip
You can run the installation for all the dependencies in one command, like this:
sudo apt-get install apache2 php7.0 libapache2-mod-php php7.0-dom php7.0-simplexml php7.0-curl php7.0-intl php7.0-xsl php-mbstring php7.0-zip php7.0-xml php7.0-curl php7.0-gd php7.0-mcrypt php7.0-dom php7.0-mbstring composer - Next, we will install MySQL. Note that the installer will ask you to set the password for the root user: sudo apt-get install mysql-server sudo apt-get install php-mysql
- Secure the MySQL installation. To do this, run the following command: mysql_secure_installation
It will ask for the MySQL password you configured previously:
- Remove anonymous users: Yes
- Disallow login remotely: Yes
- Remove test database and access to it: Yes
- Reload privilege tables now?: Yes
- Open the
apache2.conffile and setAllowOverride allto grant the right permissions to the document root. - Find the following block of code: <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride none Require all granted </Directory>
Replace it with the following code:
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride all Require all granted </Directory> - Restart the Apache server to apply the changes: sudo service apache2 restart
- Create a sample
phpinfo.phpfile in the document root: cd /var/www/html ...
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.
File format: ePUB
Copy protection: without DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Use a reader that can handle the file format ePUB, such as Adobe Digital Editions or FBReader – both free (see eBook Help).
- Tablet/Smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePUB works well for novels and non-fiction books – i.e., 'flowing' text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook does not use copy protection or Digital Rights Management
For more information, see our eBook Help page.