MODULE TO CREATE A NEW PRODUCT TYPE IN MAGENTO

Firstly you need to follow the basic steps that are used for starting a module: Step1: Create a vendor folder inside app/code (app is the core folder of Magento) Folder:- app/code/Pravams (Vendor's name could be any) Step2: Create a module folder inside app/code/Pravams Folder:-app/code/Pravams/Booking Step3: Now inside Booking create a registration.php file. File:-app/code/Pravams/Booking/registration.php <?php \Magento\Framework\ComponentRegistrar::register( … Continue reading MODULE TO CREATE A NEW PRODUCT TYPE IN MAGENTO

Steps to Create Model, Resource Model, and Collection in Magento 2

Hello Everyone! Here in this blog we will learn how to create Model, Resource Model and Collection in Magento. Before moving towards Models firstly we have to create a table in database. For that we need to create db_schema.xml file inside etc folder. Step 1: Create a vendor folder inside app/code and inside Vendor's folder … Continue reading Steps to Create Model, Resource Model, and Collection in Magento 2

STEPS TO CREATE SIMPLE HELLOWORLD MODULE IN MAGENTO2

This Helloworld module will create a Controller that will open a page with content from a phtml file Step1: Create a vendor folder inside app/code (app is the core folder in magento) Folder :-app/code/Pravams (Vendor's name could be any) Step 2: Create a module folder inside app/code/Pravams Folder:- app/code/Pravams/Helloworld Step 3: Now inside Helloworld create … Continue reading STEPS TO CREATE SIMPLE HELLOWORLD MODULE IN MAGENTO2