1

I have create two custom field like language & currency while register customer has to enter that field.

After, login customer have to get pages in what language and currency he had entered in registration.

Thanks in advance

1 Answer 1

0

Create an event observer for customer_login and get the post values of your registration form there.

Set these values for CurrencyCode

$this->_storeManager->getStore()->setCurrentCurrencyCode('EUR');

and for the Language in your observer.

$this->_store->setLocaleCode('de_DE');
1
  • Hi thank you, I am not able setLcalecode() in magento 2.2.2
    – karthik
    Apr 5, 2018 at 13:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.