Drop or remove Table from Database using DataPatchInterface Magento 2.

Drop or Remove a database Table in Magento 2 using the Setup folder DataPatchInterface approach.

From Magento 2.3 New Concept Setup Patch  Data was introduced. Continue reading “Drop or remove Table from Database using DataPatchInterface Magento 2.”

Plugin for Subscribe() method of email subscription Magento 2.

Subscribe by Email id in Magento 2 Use Subscribe($email) method to newsletter subscription in native code.

Native Class:
Magento\Newsletter\Model\Subscriber (Magento_Newsletter) Continue reading “Plugin for Subscribe() method of email subscription Magento 2.”

Get list of Inventory Stock in MSI Magento 2.

Inventory Stock in the Multi-Source (MSI) module are used for mapping a sales channel to source locations in Magento 2.

You can see a list of available Stocks from the Stores -> Inventory -> Stocks link. Continue reading “Get list of Inventory Stock in MSI Magento 2.”