Skip to content

Commit

Permalink
Fix 'store' email template variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinai committed Jul 3, 2013
1 parent 28c6bea commit a721576
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -112,7 +112,11 @@ protected function _sendNotificationEmail($to, $customer, $templateConfigPath, $
'customer' => $customer, 'customer' => $customer,
'shipping' => $customer->getPrimaryShippingAddress(), 'shipping' => $customer->getPrimaryShippingAddress(),
'billing' => $customer->getPrimaryBillingAddress(), '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)
),
) )
); );
} }
Expand Down

0 comments on commit a721576

Please sign in to comment.