|
|
|
|
|
|
|
|
|
|
|
|
|
|
use domain\Order\Order\Order; |
|
|
use domain\Order\Order\Order; |
|
|
use domain\Order\Order\OrderModule; |
|
|
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 domain\User\User\UserModule; |
|
|
use yii\helpers\Html; |
|
|
use yii\helpers\Html; |
|
|
|
|
|
|
|
|
$producerModule = ProducerModule::getInstance(); |
|
|
$producerModule = ProducerModule::getInstance(); |
|
|
$orderModule = OrderModule::getInstance(); |
|
|
$orderModule = OrderModule::getInstance(); |
|
|
$userModule = UserModule::getInstance(); |
|
|
$userModule = UserModule::getInstance(); |
|
|
|
|
|
$pointSaleModule = PointSaleModule::getInstance(); |
|
|
|
|
|
|
|
|
?> |
|
|
?> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php if($order->pointSale->is_bread_box && $order->pointSale->bread_box_code): ?> |
|
|
<?php if($order->pointSale->is_bread_box && $order->pointSale->bread_box_code): ?> |
|
|
(Code : <strong><?= $order->pointSale->bread_box_code; ?></strong>) |
|
|
(Code : <strong><?= $order->pointSale->bread_box_code; ?></strong>) |
|
|
<?php endif; ?> |
|
|
<?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 endif; ?> |
|
|
|
|
|
|
|
|
<?php $payment_infos = $producerModule->getConfig('option_payment_info') ; ?> |
|
|
<?php $payment_infos = $producerModule->getConfig('option_payment_info') ; ?> |
|
|
<?php if($payment_infos && strlen($payment_infos) > 0): ?> |
|
|
<?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> |
|
|
<?= nl2br(Html::encode($payment_infos)); ?></p> |
|
|
<?php endif; ?> |
|
|
<?php endif; ?> |
|
|
|
|
|
|
|
|
<?php $order_infos = $producerModule->getConfig('order_infos') ; ?> |
|
|
<?php $order_infos = $producerModule->getConfig('order_infos') ; ?> |
|
|
<?php if($order_infos && strlen($order_infos) > 0): ?> |
|
|
<?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> |
|
|
<?= nl2br(Html::encode($order_infos)); ?></p> |
|
|
<?php endif; ?> |
|
|
<?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 /> |
|
|
À bientôt,<br /> |
|
|
<?= Html::encode($producer->name); ?> |
|
|
<?= Html::encode($producer->name); ?> |