In a client's website, the sales emails is seemingly randomly (so far we've notice it for the order_new and the shipment_new) sent in another language that the language set for the store view the order was placed in.

I have put some logs in the email sending process to try to see at which point the storeId is changed, but so far the issue hasn't arise (or it did but my log don't reveal it).

What could, in your opinion, provoke Magento to use another storeId than the one store in the db?

Edit: Magento version, no email related custom development or 3rd party modules

  • Magento version? Any custom email extensions? Jan 31, 2013 at 18:29
  • @Ivan Chepurnyi I've added the info you asked for
    – OSdave
    Jan 31, 2013 at 18:36
  • Is there a chance you're running a mobile version of the site and that these orders going through are coming from mobile devices? Is it possible you match the IP address in the orders with user agents in the log_ tables or Apache / Nginx logs? Feb 2, 2013 at 9:47
  • No, there's no mobile version, neither any kind of geoip script. Glad you like it, it's nice to know some people out there are using it :-)
    – OSdave
    Feb 2, 2013 at 16:13
  • 1
    I'm guessing that the email is not being sent with a store view set. If I remember correctly, you will need to grab the order's store ID and use this to set the store ID prior to sending the email.
    – pspahn
    Feb 5, 2013 at 17:43

2 Answers 2


This is an issue that was patched in EE 1.13:

The locale used to send a new order confirmation e-mail now first checks to see if the customer's locale is the same as the store's locale before attempting to localize the e-mail.

Source: http://www.magentocommerce.com/knowledge-base/entry/ee113-later-release-notes

  • thanks man, I don't work on this project anymore but I passed the info to the guys in charge now. I don't think they will consider upgrade to 1.13, but maybe they'll try to patch it
    – OSdave
    Jul 4, 2013 at 8:49
  • Contact Magento and see if you can get just this patch. Aug 2, 2013 at 22:07

In the Magento Admin under system--> Configuration have you set the correct email settings for the different Configuration Scope?

Scope Configuration

  • Yes, all store views are correctly configured
    – OSdave
    Feb 2, 2013 at 16:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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