Following query will help you to get the active payment methods in magento 2.
select * from core_config_data where path like '%payment%' and path like '%active%' and value=1;
Following query will help you to get the active payment methods in magento 2.
select * from core_config_data where path like '%payment%' and path like '%active%' and value=1;
In this tutorial I will explain how to create product from CLI.
Declare the module
File: app/code/PHPCodez/Product/etc/module.xml Continue reading Create product programmatically Magento 2
MariaDB [magento]> select * from catalog_category_product where product_id=2047 limit 10;
+———–+————-+————+———-+
| entity_id | category_id | product_id | position |
+———–+————-+————+———-+
| 5178 | 3 | 2047 | 0 |
| 5179 | 4 | 2047 | 0 |
+———–+————-+————+———-+
2 rows in set (0.00 sec)
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
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
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