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
£7.99 £20.99
Paperback
£26.99
Subscription
Free Trial
Renews at £16.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. £16.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
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

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 a Packt Subscription?

Free for first 7 days. £16.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

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
£16.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
£169.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
£234.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 £ 98.97
Mastering Adobe Commerce Frontend
£26.99
The Definitive Guide to Power Query (M)
£41.99
 Building Full Stack DeFi Applications
£29.99
Total £ 98.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 included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.