Magento 2 Get all the Enable (Active) module list programmatically.

You can get the list of all Enable module in Magento 2.  You can manually check your all the enable module list from app/etc/config.php file module name with status set to 1.

‘Magento_Store’ => 1 Store Module is Enable.

‘MSP_ReCaptcha’ => 0 Recaptcha Module is disable. Continue reading “Magento 2 Get all the Enable (Active) module list programmatically.”

How to create Guest Empty Cart quote programmatically in Magento 2?

Magento 2, You can create Guest or anonymous customer empty quote programmatically using Magento\Quote\Api\GuestCartManagementInterface class.

You can create quote entry using GuestCartManagementInterface interface, Interface mapped to GuestCartManagement.php class. Continue reading “How to create Guest Empty Cart quote programmatically in Magento 2?”

How to add indexer dependencies in indexer.xml file?

You can manage the sortOrder of Indexer index id to call when indexer commands run. If you want to set custom sortOrder for an indexer id when indexer run you can set it using <dependencies> node with indexer id.

You can add below XML code to an indexer.xml file for set custom sortOrder of indexer while indexer commands run, Continue reading “How to add indexer dependencies in indexer.xml file?”