Преглед на файлове

Merge branch 'develop'

master
Guillaume преди 4 години
родител
ревизия
3aebdba915
променени са 2 файла, в които са добавени 5 реда и са изтрити 3 реда
  1. +1
    -1
      ShopBundle/Controller/Backend/OrderController.php
  2. +4
    -2
      ShopBundle/Twig/FrontendTwigExtension.php

+ 1
- 1
ShopBundle/Controller/Backend/OrderController.php Целия файл

@@ -408,7 +408,7 @@ class OrderController extends AdminController
$this->em->persist($orderShop);
$this->em->flush();
$this->mailUtils->send([
MailUtils::SUBJECT => 'Régler votre commande',
MailUtils::SUBJECT => 'Réglement de votre commande',
MailUtils::TO_EMAIL => $orderShop->getUser()->getEmail(),
MailUtils::TO_NAME => $orderShop->getUser()->getName(),
MailUtils::CONTENT_TEMPLATE => 'mail/order-payment-link',

+ 4
- 2
ShopBundle/Twig/FrontendTwigExtension.php Целия файл

@@ -58,6 +58,7 @@ class FrontendTwigExtension extends AbstractExtension
new TwigFunction('get_form_newsletter', [$this, 'getFormNewsletter']),
new TwigFunction('get_merchants', [$this, 'getMerchants']),
new TwigFunction('get_file_manager_folder', [$this, 'getFileManagerFolder']),
new TwigFunction('lc_format_price', [$this, 'formatPrice']),
);
}

@@ -91,10 +92,11 @@ class FrontendTwigExtension extends AbstractExtension
return $form->createView();
}

public function formatPrice($price)
public function formatPrice($price, $unbreakableSpace = true)
{
$price = number_format($price, 2, ',', ' ');
$price = $price . ' €';
$price .= $unbreakableSpace ? ' ' : ' ' ;
$price .= '€' ;
return $price;
}


Loading…
Отказ
Запис