Replace company_name and contact_email by store_name & store_email

This commit is contained in:
touffies
2013-11-22 17:40:04 +01:00
parent 29ae2d26fe
commit 85d9c112d3
8 changed files with 25 additions and 25 deletions

View File

@@ -288,8 +288,8 @@ class Order extends BaseAction implements EventSubscriberInterface
*/
public function sendOrderEmail(OrderEvent $event)
{
$contact_email = ConfigQuery::read('contact_email');
if($contact_email) {
$store_email = ConfigQuery::read('store_email');
if($store_email) {
$order = $event->getOrder();
$customer = $order->getCustomer();
@@ -311,7 +311,7 @@ class Order extends BaseAction implements EventSubscriberInterface
$instance = \Swift_Message::newInstance($subject)
->addTo($customer->getEmail(), $customer->getFirstname()." ".$customer->getLastname())
->addFrom(ConfigQuery::read('contact_email'), ConfigQuery::read('company_name'))
->addFrom($store_email, ConfigQuery::read('store_name'))
;
$instance
->setBody($htmlMessage, 'text/html')