Magento Tutorial
-
August 24, 2022
Did you know four ways to load data in a Magento 2?
There are different ways to load data from a Database Table in Magento 2. In this video, we want to walk through these different ways and share our experiences with you.
As you know, three main classes are created for each entity if this entity has to be stored in a database.
So these are:
- resource model
- repository class
- collection.
How to work with them? Learn in the tutorial.
-
August 19, 2022
Sometimes, for one reason or another, content managers need to convert a particular product from Simple to Virtual or vice versa and change its set attribute. So on. Most often, this falls on the shoulders of developers.
Magento 2 has a feature to achieve this. Before you get to grips with it (I'll call it "auto conversion"), there are a few things you need to keep in mind to get the right results.
Auto conversion from the user's point of view
Let's look at the admin panel from the point of view of the content manager. You can select the type of new product before you create it.
In Magento 1, this is on the Admin > Catalog > Manage Products > Set attribute and product type selection page after clicking on "Add Product."
-
August 17, 2022
Hello! That is Magento 2 Project Overview for all developers who are new to Magento 2. We’re going to review:
- Project Structure;
- Files and directories;
- Required tools for the development.
Finally, we’ll find out where we can write our Magento 2 Custom Code.
Watch the video here.
-
August 16, 2022
From the Template and Layout Rendering lesson, we've learned how to create a new template and render it on a custom page with the help of a layout. As you've noticed, the template provides HTML markup with static text.
<h1>My First Template</h1> <p>With Layout support</p>
This code might be enough for a static website, but not for Magento 2. In this lesson, we will learn how to pass data from the PHP side, specifically from an Action Controller to the template.
By the end of this lesson, you will know one of the ways how to render dynamic content on a page.
Lesson Overview
-
August 09, 2022
We hope that you are ready for the new tutorial as today we’ll talk about Magento 2 Controllers!
In this video we’re going to:
- understand how to work with frontend controllers;
- define how to create frontend controllers in Magento 2;
- find out how to return different response types from a frontend controller.
Watch the tutorial here.
-
August 04, 2022
Magento 2 is widely known for its extensibility. One of the extensibility concepts which Magento 2 Open Source supports is called Modularity. In this lesson, we will learn what is a Magento 2 Module.
Today we want to share with you:
- What is a Module in Magento 2?
- What does a module name look like?
- Where a Magento 2 module can be located?
- How to create a Magento 2 Module?
- How to register a Module in Magento 2?
What is a Magento 2 Module?
A Module in Magento 2 is an independent component or a set of components that provide business logic and features. Magento 2 Open Source is a modular application and it supports modularity. It means that all functionality is implemented and delivered
-
August 03, 2022
A blog is one of the best marketing tools and using it on your Magento 2 website will help you create a source of traffic and a place to promote your store.
By building a Magento 2 blog extension, you build trust and improve the user experience in your store.
By default, Magento 2 doesn't provide blog functionality. So you need to install it on your Magento to be able to blog without relying on a third-party platform.
Declarative Post Database Table | Magento 2.4 Blog | Part 1. We practice some Magento 2 development techniques and start building a blog model form in Magento 2.
-
July 31, 2022
Let's talk about the basic knowledge of developers, namely algorithms. What algorithms are worth knowing? Here is a selection of six of the most important.
- Binary search algorithm
Binary Search is a searching algorithm for finding an element's position in a sorted array. In this approach, the element is always searched in the middle of a portion of an array.
Binary Search Algorithm can be implemented in two ways which are discussed below.
- Iterative Method
-
July 28, 2022
A page in Magento 2 is a result of an Action Controller execution. Each controller either returns HTML content or redirects to another controller for further processing. In this lesson, we will create a Page, that shows a JSON message in a browser when it has been accessed via a custom route.
Before we begin
For this tutorial, I've created the MageMastery_FirstPagemodule with the registration.php and module.xml files. And the module has been successfully registered with the bin/magento setup:upgrade CLI command.
The registration.php file:
-
July 17, 2022
We continue learning how Magento 2 checkout works. In this tutorial, we’re going to cover the second part of one of the most important data processing features. It’s a feature that is responsible for providing a checkout configuration on a page.
Watch the tutorial here.
Find the first part of the tutorial here.