Follow the below steps to create a new shipping method in Magento 2 PHPCodez_Easyship
Declare Module – Create module.xml
File : app/code/PHPCode/Easyship/etc/module.xml Continue reading Create Shipping Method Magento 2
Follow the below steps to create a new shipping method in Magento 2 PHPCodez_Easyship
Declare Module – Create module.xml
File : app/code/PHPCode/Easyship/etc/module.xml Continue reading Create Shipping Method Magento 2
Following query will help you to get the active shipping methods in magento 2.
select * from core_config_data where path like '%carr%' and path like '%active%' and value=1;
A Model represents the data of the application and follow the below steps to override a model.
Create di.xml
File : app/code/PHPCodez/First/etc/di.xml Continue reading Magento 2 Override Model
Blocks are used to connect or create a link between layout and templates are called Blocks. As a class, it is a set of methods that handle and controls the Magento UI Blocks.
Follow the below steps to override a block.
Override di.xml File Continue reading Magento 2 Override Block
The cron job will create a command or a script that is appropriate with the task you want to do. Instead of manual working, the cronjob allows running automatically in exact time and date. Due to its automation, the cron jobs is the perfect choice for repeated projects every date or every week.
Follow the below steps to create crojob Continue reading Magento 2 Create Cron Job
API stands for Application Programming Interface to allow you access the data from an application. API can be called as a middleman between a programmer and an application. When the programmer calls for a request via the middleman, if the request is approved, the right data will be turned back.
Follow the below steps to create APIs
Web API configuration
In webapi.xml we are configuring access rights and API Interface that specified method will use.
File : app/code/PHPCodez/First/etc/webapi.xml Continue reading Magento 2 Create API
You can add a new category attribute with the help of InstallData.php.
Create InstallData.php
File : app/code/PHPCodez/First/Setup/InstallData.php Continue reading Magento 2 Add Category Attribute
Here I am creating a module PHPCodez_Customers that will help us to create customers from commandline.
Create folders for the modul app/code/PHPCodez/Customers Continue reading Magento 2 Create Customers Using CLI
Follow the below steps to create CMS page programmatically.
Create UpgradeData.php and define upgrade()
File : app/code/PHPCodez/First/Setup/UpgradeData.php Continue reading Magento 2 create CMS page programmatically
To remove customer attribute programatically, create InstallData.php and and define the method intsall() as follows
File : app/code/PHPCodez/First/Setup/InstallData.php Continue reading Magento 2 Remove Customer Attribute Programmatically