|
- <?php
-
-
-
- use common\models\Order ;
-
- $this->setPageTitle('Confirmation de commande') ;
-
- ?>
-
- <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->getAmount(Order::AMOUNT_TOTAL, true); ?></li>
- </ul>
- </div>
- <div class="clr"></div>
- </div>
- </div>
|