Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Mastering Adobe Commerce Frontend
Mastering Adobe Commerce Frontend

Mastering Adobe Commerce Frontend: Build optimized, user-centric e-commerce sites with tailored theme design and enhanced interactivity

eBook
$9.99 $27.99
Paperback
$34.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Mastering Adobe Commerce Frontend

Installing the Magento/Adobe Commerce Application

In the previous chapter, we prepared our local forge with all the required tools and services. Now, it’s time to put this preparation to work. Previously, our focus was on setting up your machine for a local development environment. In this chapter, we will apply that knowledge to successfully install Adobe Commerce or its open source alternative, Magento Open Source, as a prerequisite for our frontend development course in subsequent chapters.

In this chapter, we will cover the following topics:

  • Getting to know the platform
  • Getting a copy of Adobe Commerce/Magento Open Source
  • Installing Adobe Commerce/Magento Open Source

Upon completing this chapter, you will possess the vital expertise to set up and operate the platform. So, let’s dive in and examine the steps in depth.

Technical requirements

Before we dive into the installation process for Adobe Commerce or Magento Open Source, it is crucial to ensure that your system meets the necessary technical requirements. I hope you decided to follow the installation process for Warden, as explained in Chapter 1.

You can find this chapter’s code in this book’s GitHub repository: https://github.com/PacktPublishing/Mastering-Adobe-Commerce-Frontend. This repository contains a VirtualBox image with everything already configured, as well as some scripts to help you out with the installation process.

Getting to know the platform

The eCommerce framework Magento was created by Varien Inc. and launched on March 31, 2008. It was made available as a fully open source platform for all to use. Some significant companies, including eBay and PayPal, have been involved with Magento since then. It was offered in two versions:

  • Community Edition: Fully open source version for everyone
  • Enterprise Edition: A paid version of the Magento platform with extra features and some performance improvements that were not part of the open source version

Magento 1 was – and remains – an excellent platform. The development of a new version, simply called Magento 2, was ongoing for several years and was released on November 17, 2015. In my personal opinion, the platform was released too soon, and it took Magento over 2 years to produce something much more stable that could be used on production sites.

In 2018, Adobe acquired Magento. After Magento 2 was released and Adobe...

Getting a copy of Adobe Commerce/Magento Open Source

Is it not that easy to get the Adobe Commerce version for local development, especially if you are a freelancer and you are just staging your journey with Adobe Commerce/Magento frontend development. It is much easier if you work for a larger agency that does have multiple projects on this platform already and they can share a pair of composer keys with you.

Wait… a pair of what? This is where we need to introduce another tool that will be required to run Adobe Commerce/Magento Open Source on your local instance – Composer:

Figure 2.1 – Composer logo

Figure 2.1 – Composer logo

Now, I don’t want to dive into too many details again, so let me explain this in a very simple way. If you know a little about npm for Node.js or Bundler for Ruby, Composer is the same tool for PHP – it is a package manager. Some people say that Composer is the best package manager. Its role is to manage code dependencies...

Installing Adobe Commerce – preparing Docker

We will install the platform from scratch using Warden, so let’s get started! Open your terminal application (we will be using it a lot more from now on) and follow these steps:

Working on Windows WSL

For this book, all coding tasks and operations will be done on a Windows machine to cover all based related to file sync between your local drive and the WSL 2 drive. The next few steps have been done on a Windows machine.

  1. Make sure your Warden environment is working by typing the following:
    warden svc up

    You should see the following output:

Figure 2.10 – Checking whether Warden is running

Figure 2.10 – Checking whether Warden is running

  1. Create a folder for your project. For our purposes, we will name it packt1 by using the mkdir command:
    mkdir packt1

    You can also create a folder by navigating to a proper folder, but you will still have to access it via CLI | terminal.

  2. Enter the folder you created using cd:
    cd packt1
  3. ...

Installing Adobe Commerce using the CLI

This is the moment when things might get a little complicated as we will be working with the CLI a lot and we’ll be running many commands in the next few chapters. To get started, follow these steps:

  1. In your terminal application/CLI, log into your application container by typing the following:
    warden shell

    This will log you into the Docker container that is running the PHP code:

Figure 2.14 – Logging into the Docker container

Figure 2.14 – Logging into the Docker container

Here’s the bad news: Adobe Commerce has no web installer available, so you have to install everything using the CLI. To do this, run all those commands in the Docker container you’ve just logged into.

  1. Next, configure the Magento keys:
    composer global config http-basic.repo.magento.com <username> <password>

    Here, username is a public key and password is a private key.

    When you are taking over a project, it is very important to check magento...

Summary

In this chapter, you learned about some of the history behind AC and Magento. You created the required accounts and learned about the importance of Composer keys. You also learned how to get the platform running in a Dockerized environment from scratch and dipped your toes into CLI commands.

In the next chapter, I’ll guide you through the basic concepts of AC theming and I’ll share much more knowledge about the platform itself – knowledge that, in my opinion, is a must-know for any Adobe Connect/Magento Open Source developer, as well as eCommerce managers.

We will create a new theme and understand the concepts and the role of the Adobe Connect caching system before I describe more areas of the platform itself so that will never run into any issues during development.

You will also learn the basics of the fallback system and how to compile fewer files to produce the CSS files used by Adobe Connect. Simply put, things will finally be more development...

Practical exercises

To solidify your understanding of this chapter, please try out the following practical exercises:

  1. Create a new project called packt2 from scratch and install Adobe Commerce/Magento Open Source with sample data.
  2. Move one of your existing Adobe Commerce/Magento Open Source projects to Warden.

    Note that this might require at least three key elements:

    1. Repository access.
    2. Media files package.
    3. Latest database dump.
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Learn techniques for customizing templates and layouts for an optimal user experience
  • Use the command-line interface for efficient and streamlined theme development and deployment
  • Implement best practices for using JavaScript and frontend optimization techniques for improved performance and customer satisfaction
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

Navigating the frontend realm of the Adobe Commerce platform can often feel like a labyrinth, given its multifaceted systems and intricate layering. This book demystifies Adobe Commerce frontend development, guiding you through its paths with clarity and precision. You'll learn how to set up your local environment, paving the way for a smooth development experience and navigate the platform's theming ecosystem, exploring layout XML systems and the power of templates. As you progress through the book, you'll leverage an array of JavaScript libraries and frameworks that Adobe Commerce boasts of, with special emphasis on RequireJS, jQuery, Knockout.JS, and UI Components. Additionally, you'll gain an understanding of the intricacies of Adobe Commerce CMS, explore frontend-related configurations in the admin panel, and unlock the secrets of frontend optimization. Practical exercises provided in the book will enable you to create top-notch Adobe Commerce sites that are functional, optimized, user-centric, and a step ahead in the ever-evolving frontend landscape.

Who is this book for?

The book is ideal for storefront developers proficient in frontend technologies such as HTML, CSS, and JavaScript, aiming to broaden their knowledge of Adobe Commerce and Magento Open Source applications. If you've encountered challenges with frontend development for Adobe Commerce and struggled to find solutions online, this book is tailored to assist you.

What you will learn

  • Set up your own Dockerized environment in the Adobe Commerce platform
  • Customize page structure using Layout XML, templates, and a fallback system
  • Build and personalize system emails to match website themes
  • Work with various JavaScript frameworks and libraries in the project
  • Create and manage content using the Adobe Commerce CMS system
  • Validate your solutions with the practical examples provided
Estimated delivery fee Deliver to South Africa

Standard delivery 10 - 13 business days

$12.95

Premium delivery 3 - 6 business days

$34.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Mar 29, 2024
Length: 402 pages
Edition : 1st
Language : English
ISBN-13 : 9781837637072
Vendor :
Adobe
Languages :
Concepts :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to South Africa

Standard delivery 10 - 13 business days

$12.95

Premium delivery 3 - 6 business days

$34.95
(Includes tracking information)

Product Details

Publication date : Mar 29, 2024
Length: 402 pages
Edition : 1st
Language : English
ISBN-13 : 9781837637072
Vendor :
Adobe
Languages :
Concepts :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 129.97
Mastering Adobe Commerce Frontend
$34.99
The Definitive Guide to Power Query (M)
$54.99
 Building Full Stack DeFi Applications
$39.99
Total $ 129.97 Stars icon
Banner background image

Table of Contents

17 Chapters
Chapter 1: Setting Up the Local Environment Chevron down icon Chevron up icon
Chapter 2: Installing the Magento/Adobe Commerce Application Chevron down icon Chevron up icon
Chapter 3: Introduction to Adobe Commerce Theming Chevron down icon Chevron up icon
Chapter 4: The Layout System Chevron down icon Chevron up icon
Chapter 5: Working with Templates Chevron down icon Chevron up icon
Chapter 6: Styling an Adobe Commerce Theme Chevron down icon Chevron up icon
Chapter 7: Customizing Emails Chevron down icon Chevron up icon
Chapter 8: Introduction to JavaScript Libraries and Frameworks Chevron down icon Chevron up icon
Chapter 9: RequireJS and jQuery Chevron down icon Chevron up icon
Chapter 10: Knockout.js and UI Components Chevron down icon Chevron up icon
Chapter 11: Commonly Used Libraries Bundled with Adobe Commerce Chevron down icon Chevron up icon
Chapter 12: Storefront-Related Configuration in the Admin Panel Chevron down icon Chevron up icon
Chapter 13: Working with Magento CMS Chevron down icon Chevron up icon
Chapter 14: Frontend Optimization Techniques Chevron down icon Chevron up icon
Chapter 15: Common Tools that Help with Local Development Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.9
(10 Ratings)
5 star 90%
4 star 10%
3 star 0%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Luke Collymore Oct 22, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Great book that does well to cover a wealth of information about Magento development, from an optimized local development setup to tools that help in all aspects of development.
Amazon Verified review Amazon
Soda Pop Tops, LLC Apr 29, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is written really well, and very succinctly and clearly explains some of the topics which normally trip up new Magento developers. Jakub does a great job coming up with practical explanations to these complexities, and does so in a way which makes sense to those new to the platform. I highly recommend this book for anyone starting off in Magento development or looking to digest these topics in written form.
Amazon Verified review Amazon
mark313 May 07, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is written really well, and very succinctly and clearly explains some of the topics which normally trip up new Magento developers. Jakub does a great job coming up with practical explanations to these complexities, and does so in a way which makes sense to those new to the platform. I highly recommend this book for anyone starting off in Magento development or looking to digest these topics in written form.
Amazon Verified review Amazon
dspirito Apr 24, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I have been developing Magento sites for 15 years. This book is an excellent primer on the latest updates to the platform and focuses on theming but gives an overview of the platform as a whole. It is comprehensive and also very well written and easy to digest. If you have never touched Magento or if you are well-versed this book has something for you. I highly recommend this book.
Amazon Verified review Amazon
Rahul Chhlotre Mar 30, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
An awesome book! My knowledge has increased after reading it. It provides good examples and easy explanations for each Magento frontend topic.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela