How to create order status and state programmatically in Magento 2?

You can create a custom order state and order status programmatically with the help of the class Magento\Sales\Model\Order\Status.

I have just created a new order status called processing_review and assigned the status to the processing state.

You need to create Datapatch to install the new status in Magento 2.
Just create Datapatch in your module setup folder, Continue reading “How to create order status and state programmatically in Magento 2?”

How to update Composer version by docker using PHP-CLI container?

You can update the composer version by Docker with the help of PHP CLI Container.

Let’s start by checking your docker available image with the help of command, docker ps.

You can see a list of available Container IDs with details of each IMAGE, and NAMES section. Continue reading “How to update Composer version by docker using PHP-CLI container?”

How to switch Node.js version using CLI?

You can easily switch the Node.js version when you have downloaded multiple different versions of Node.js.

You can see the available list of Node.js by running the command,

nvm ls

You will see output like, Continue reading “How to switch Node.js version using CLI?”