Category: Magento Tutorials

Import magento 2 products programmatically

This tutorial explains how to import magento 2 products programmatically. This tutorial shows how to initialise the import script, read data from CSV, import magento 2 products, set main and default image programmatically.

The following code created the simple products programmatically. Please also refer the tutorial which explains how to import configurable products programmatically.

Delete magento 2 products programmatically

This tutorial explains how to delete magento 2 products programmatically. If you want delete all the products in magento 2 at one go use the following code.Here it gives the step by step explanation of how to create the file, connect to magento database externally and delete the products programmatically.

Please click here to refer the tutorial that explains how to create attribute options programmatically and other magento tutorials.

Mass delete magento 2 categories programmatically

This tutorial explains how to mass delete magento 2 categories programmatically. If you want to delete all the categories of magento 2 programmatically use the following script.Please also refer the tutorial which explains how to import magento 2 categories programmatically.

The following tutorial gives the step by step explanation of how to create the file, connect to magento database externally and delete the categories programmatically.