Author: admin

How to create custom layout page magento 2

How to create custom layout page magento 2 Magento 2 have great feature to create many custom layout pages Creating layouts.xml and define page_layout Magento default layouts: -Empty -1 column -2 columns with left bar -2 columns with right bar -3 columns Steps to create new layout page. USING MODULE 1 – Create Namespace/Module/view/frontend/layouts.xml USING […]

Read More

Custom API for Magento 2

Custom API for Magento 2 API stands for Application Programming Interface which allow you access the data from an application. Two kinds of the web APIs: REST (Representational State Transfer) SOAP (Simple Object Access Protocol). How to create custom API Module: Magento 2. To generate access token inside for your Magento 2 store navigate to […]

Read More

Magento 2 Registry & Register

Magento 2 Registry & Register Magento 2 registry is the next topic of Latestblog Registry is generally used to communicate between blocks and controllers We will go new page we will not sea registry set variable whereas session will persist and remains on new pages. We can get current Product, Category, CMS Page by using […]

Read More

Magento 2 Create Events – Observer in Magento 2

Create Events – Observer in Magento 2 ,Event observers consist of two main components: Event: An event is a trigger point within the Magento codebase where developers can hook in their custom logic. These events are typically defined using XML files in Magento modules. Observer: An observer is a PHP class that contains the logic […]

Read More

What are the different deploy modes in Magento 2?

What are the different deploy modes in Magento 2? Magento 2 Modes Overview Default mode: When you initially launch a Magento 2 site it is typically in Default mode Through this mode, you can deploy Magento applications on a single server. This mode is not optimized for production.In Default mode errors are logged at the […]

Read More

What is dependency injection in Magento 2?

What is dependency injection in Magento 2? Dependency Injection Dependency Injection means to remove the direct dependency of the objects with class and use a third class to create objects for that class which is ObjectManager in Magento2. ================================================================================ class CustomInfo { private $custom; public function __construct($customdataone, $customdatatwo) { $this->customer = new Custom($customdataone, $customdatatwo); } […]

Read More