Skip to content
Browse files

Fix 'store' email template variable

  • Loading branch information...
1 parent 28c6bea commit a721576610343e842eac08cc19bfa9d1a3848b63 @Vinai committed Jul 3, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 app/code/community/Netzarbeiter/CustomerActivation/Helper/Data.php
View
6 app/code/community/Netzarbeiter/CustomerActivation/Helper/Data.php
@@ -112,7 +112,11 @@ protected function _sendNotificationEmail($to, $customer, $templateConfigPath, $
'customer' => $customer,
'shipping' => $customer->getPrimaryShippingAddress(),
'billing' => $customer->getPrimaryBillingAddress(),
- 'store' => $this->getCustomerStoreId($customer),
+ 'store' => Mage::app()->getStore(
+ // In case of admin store emails, $storeId is set to 0.
+ // We want 'store' to always be set to the customers store.
+ $this->getCustomerStoreId($customer)
+ ),
)
);
}

0 comments on commit a721576

Please sign in to comment.
Something went wrong with that request. Please try again.