How to show loader widget in ajax call Magento 2?

You can show/hide Ajax Loader in Magento Request using Built-in Magento Widget while working with ajax related stuff in the browser.

You can start the loader once the ajax request is started and you can stop the loader widget after the response is getting or failed.

Its simple to add loader widget icon for an ajax request. Continue reading “How to show loader widget in ajax call Magento 2?”

Magento 2 Check Email id exist or not at website level.

Magento 2 handles the email address at the Global and Website level.

You can set global or website level for email id from Stores -> Configuration -> Customer -> Customer Configuration -> Account Sharing Options

Choose Share Customer Accounts Global or Website level. Continue reading “Magento 2 Check Email id exist or not at website level.”

How to delete CMS Page by Id programmatically in Magento 2?

You can delete CMS Page by Page id in Magento 2 using PageRepositoryInterface interface.

Magento\Cms\Api\PageRepositoryInterface interface is responsible for delete a CMS page from admin panel.

You just need to inject interface in your constructor to delete CMS page. Continue reading “How to delete CMS Page by Id programmatically in Magento 2?”