Customer reset password Error, We received too many requests for password resets. Please wait and try again later Magento 2.

When you forgot your password for the Magento customer account and try to reset your password, Many times you can see the error message like,

“We received too many requests for password resets. Please wait and try again later or contact hello@example.com.”

Continue reading “Customer reset password Error, We received too many requests for password resets. Please wait and try again later Magento 2.”

Get Current store locale/language programmatically in Magento 2.

Magento 2 with multi-store functionality, Different store view contains different locale.

You can set Different locale from admin panel using Stores -> Configuration -> General Tab.
Click on Locale Options, Continue reading “Get Current store locale/language programmatically in Magento 2.”

Get store code value from current store programmatically in Magento 2.

You can get the current store’s, store code value in Magento 2.

You need to use Magento\Store\Model\StoreManagerInterface interface for fetching current store locale.

I have given a demo using Block Class, Continue reading “Get store code value from current store programmatically in Magento 2.”