Merge branch 'master' of git://github.com/thelia/thelia into french_translation

* 'master' of git://github.com/thelia/thelia:
  add REF to product_sale_element loop and fix product tempalte
  Correct link "Go to admin page" alike thelia is installed in the root of virtual host or in a subdirectory
  Add correct url(subdiretory included) in config page
  Use getUriForPath() instead getSchemeAndHttpHost() for proper redirection for cases where Thelia is installed in a subdirectory
  Check if store_country has a value
  Fixed double '/' in generated assets URLs
  Add validation for Store configuration
  Use Store contact information
  Call the wrong AdminResources in saveAction
  Action buttons smaller
  Replace company_name and contact_email by store_name & store_email
  Add a new admin page to manage the basic store configurations
  Add routing for Store Configuration
  Add argument Title on Content Loop & Folder Loop
This commit is contained in:
gmorel
2013-11-27 19:16:17 +01:00
23 changed files with 518 additions and 54 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')