How Magento Send Customer Welcome email after registration in Magento 2?

Every eCommerce platform contains native functionality for sending a welcome email after creating an account and Magento is also doing the same for sending Welcome email.

When you click on Create an Account button from frontend or create an account from Admin panel.

Both the events send mail to a customer after successfully create an account.
Magento 2 send Welcome email from the Magento/Customer/Model/EmailNotification file.

public function newAccount(), a function is responsible for sending Welcome email after a successful registration. Continue reading “How Magento Send Customer Welcome email after registration in Magento 2?”

Get list of payment methods by store id in Magento 2.

You can get all the payment method list using Magento 2 by PaymentMethodListInterface interface getList() method.

You can fetch the list of all enable/disable payment method with the specific store, Payment code, and name.

You just need to pass current store id in the getAList() method of above PaymentMethodListInterface interface. You can get the Store Specific Payment list by below way, Continue reading “Get list of payment methods by store id in Magento 2.”

Get all active payment method list by store id Magento 2.

You can get all the active payment method list using Magento 2 by PaymentMethodListInterface interface.

You can fetch the list of all active payment method only with the specific store by Payment title/code and name.

You just need to pass current store id in the getActiveList() method of above interface. Continue reading “Get all active payment method list by store id Magento 2.”