I have a problem with sending the Welcome Mail after confirmation. It is the translated standard welcome mail we have created in transactional emails (backend) and then configured on store view scope.
It´s always send in german (
store_id=1) which is our default storeview.
I have already debugged it and ran into
code/core/Mage/Adminhtml/controllers/CustomerController.php l.351 where the welcome mail gets send and the
getSendemailStoreId() seems to be the code where it always returns
store_id=1, as it seems to be
null first and then loading the default/first element of the store-id array that gets loaded somehow.
I tried to get the correct
store_id based on customer, but it seems that
getData() on customer-object are not containing the correct ID and the only place where I could find the correct one was in
$customer-> _data['store_id'] (not in "data" !), but i could not get it out there !
I hope someone can help me to fix this strange behaviour. Thank you !