- <?php
-
-
-
- use common\models\Order ;
- use common\helpers\GlobalParam ;
-
- $this->setTitle('Confirmation de commande') ;
-
-
- $producer = GlobalParam::getCurrentProducer() ;
- ?>
-
- <div id="order-success">
-
- <div class="alert alert-success">
- <span class="glyphicon glyphicon-ok glyphicon-big"></span>
- <div class="content">
- <h3>Votre commande a bien été prise en compte</h3>
- <a href="<?= Yii::$app->urlManagerProducer->createUrl(['order/history']) ?>" class="btn btn-default">
- <span class="glyphicon glyphicon-chevron-right"></span>
- Voir toutes mes commandes
- </a>
- </div>
- <div class="clr"></div>
- </div>
- <div class="alert alert-info">
- <span class="glyphicon glyphicon-list-alt glyphicon-big"></span>
- <div class="content">
- <h3>Récapitulatif de votre commande</h3>
- <ul>
- <li><span class="glyphicon glyphicon-time"></span><?= date('d/m/Y',strtotime($order->distribution->date)) ?></li>
- <li><span class="glyphicon glyphicon-map-marker"></span><?= Html::encode($order->pointSale->name) ?><?php if(strlen($order->pointSale->name)): ?> <span class="locality">à <?= Html::encode($order->pointSale->locality) ?></span><?php endif; ?></li>
- <li><span class="glyphicon glyphicon-th-list"></span><?= $order->countProducts(); ?> produit<?php if($order->countProducts() > 1): ?>s<?php endif; ?></li>
- <li><span class="glyphicon glyphicon-chevron-right"></span><?= $order->getAmountWithTax(Order::AMOUNT_TOTAL, true); ?></li>
- </ul>
- </div>
- <div class="clr"></div>
- </div>
-
- <?php if($producer->option_payment_info && strlen($producer->option_payment_info) > 0): ?>
- <div class="panel panel-warning payment-info">
- <div class="panel-heading">
- <h3>Paiement de votre commande</h3>
- </div>
- <div class="panel-body">
- <?= nl2br($producer->option_payment_info); ?>
- </div>
- </div>
- <?php endif; ?>
-
- <?php if ($producer->order_infos && strlen($producer->order_infos) > 0): ?>
- <div class="panel panel-info">
- <div class="panel-heading">
- <h3>Informations</h3>
- </div>
- <div class="panel-body">
- <?= nl2br($producer->order_infos); ?>
- </div>
- </div>
- <?php endif; ?>
- </div>
|