Category: Magento 2

Create custom module Magento2

Find the below steps to Create custom module Magento2 Create Module Directory Structure app/code/VendorName/CustomModule Create the module.xml File app/code/etc/module.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Module/etc/module.xsd”> <module name=”VendorName_CustomModule” setup_version=”1.0.0″/> </config>   Create Registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, ‘YourVendorName_CustomModule’, __DIR__ );   Create a Controller app/code/VendorName/CustomModule/Controller/Index/Index.php <?php namespace VendorName\CustomModule\Controller\Index; use Magento\Framework\App\Action\Action; use Magento\Framework\App\Action\Context; use Magento\Framework\View\Result\PageFactory; class Index extends Action […]

Read More

EAV Database design pattern Magento 2

Magento 2 basically uses the Entity-Attribute-Value (EAV) database design framework to store and manage product data. The EAV structure model is a simple way to create complex and highly scalable data structures, such as the elements in e-commerce systems such as Magento. EAV Database design pattern Magento 2 In the case of Magento 2: Entity: […]

Read More

Type of cache in Magento2

Magento 2 has several types of caches that can be used to increase the performance and speed of the platform. This savings helps reduce the load on the server and improves response time for clients. Here are the main types of cache in Magento 2 . Type of cache in Magento2 Full Page Collection (FPC): […]

Read More

Type of session in Magento 2

Sessions refer to the mechanism used to manage and store user-specific information during their visit to an online store. Magento 2 uses sessions to store data such as shopping cart contents, customer login information and other user related data. There are several types of sessions in Magento 2: Type of session in Magento 2 File […]

Read More