|
|
@@ -38,13 +38,14 @@ termes. |
|
|
|
|
|
|
|
use domain\Order\Order\Order; |
|
|
|
use domain\Order\Order\OrderModule; |
|
|
|
use domain\Producer\Producer\ProducerModule; |
|
|
|
use domain\PointSale\PointSale\PointSaleModule;use domain\Producer\Producer\ProducerModule; |
|
|
|
use domain\User\User\UserModule; |
|
|
|
use yii\helpers\Html; |
|
|
|
|
|
|
|
$producerModule = ProducerModule::getInstance(); |
|
|
|
$orderModule = OrderModule::getInstance(); |
|
|
|
$userModule = UserModule::getInstance(); |
|
|
|
$pointSaleModule = PointSaleModule::getInstance(); |
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
@@ -60,23 +61,30 @@ $userModule = UserModule::getInstance(); |
|
|
|
<?php if($order->pointSale->is_bread_box && $order->pointSale->bread_box_code): ?> |
|
|
|
(Code : <strong><?= $order->pointSale->bread_box_code; ?></strong>) |
|
|
|
<?php endif; ?> |
|
|
|
<?php if(strlen($pointSale->locality) > 0): ?> situé à <?= Html::encode($pointSale->locality) ?><?php endif ?>.</p> |
|
|
|
<?php if(strlen($pointSale->locality) > 0): ?> situé à <?= Html::encode($pointSale->locality) ?><?php endif ?>. |
|
|
|
</p> |
|
|
|
|
|
|
|
<?php if($order->user && !$userModule->getSolver()->isTypeGuest($order->user)): ?> |
|
|
|
<p>Retrouvez à tout moment votre commande dans l'espace de votre producteur via l'onglet <a href="<?= Yii::$app->urlManager->createAbsoluteUrl('order/history') ?>">Mes commandes</a>.</p> |
|
|
|
<?php $infosPointSale = $pointSaleModule->getSolver()->getStrInfosByDistribution($pointSale, $distribution); ?> |
|
|
|
<?php if(strlen($infosPointSale)): ?> |
|
|
|
<strong>Informations pratiques</strong><br /> |
|
|
|
<?= $infosPointSale ?> |
|
|
|
<?php endif; ?> |
|
|
|
|
|
|
|
<?php $payment_infos = $producerModule->getConfig('option_payment_info') ; ?> |
|
|
|
<?php if($payment_infos && strlen($payment_infos) > 0): ?> |
|
|
|
<p><strong>Informations de paiement :</strong><br /> |
|
|
|
<p><strong>Paiement</strong><br /> |
|
|
|
<?= nl2br(Html::encode($payment_infos)); ?></p> |
|
|
|
<?php endif; ?> |
|
|
|
|
|
|
|
<?php $order_infos = $producerModule->getConfig('order_infos') ; ?> |
|
|
|
<?php if($order_infos && strlen($order_infos) > 0): ?> |
|
|
|
<p><strong>Informations générales :</strong><br /> |
|
|
|
<p><strong>Informations générales</strong><br /> |
|
|
|
<?= nl2br(Html::encode($order_infos)); ?></p> |
|
|
|
<?php endif; ?> |
|
|
|
|
|
|
|
<?php if($order->user && !$userModule->getSolver()->isTypeGuest($order->user)): ?> |
|
|
|
<p>Retrouvez à tout moment votre commande dans l'espace de votre producteur via l'onglet <a href="<?= Yii::$app->urlManager->createAbsoluteUrl('order/history') ?>">Mes commandes</a>.</p> |
|
|
|
<?php endif; ?> |
|
|
|
|
|
|
|
À bientôt,<br /> |
|
|
|
<?= Html::encode($producer->name); ?> |