Browse Source

Mail confirmation client : adaptation pour les user invités

feature/rotating_product
Guillaume Bourgeois 7 months ago
parent
commit
3116e3f611
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      common/mail/orderConfirm-html.php

+ 5
- 1
common/mail/orderConfirm-html.php View File

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\Producer\Producer\ProducerModule;
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();


?> ?>


<?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>


<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 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; ?>


<?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): ?>

Loading…
Cancel
Save