<?php /** * @var $product \app\modules\shop\models\Product * @var $this \yii\web\View * @var $url string */ use app\modules\image\widgets\ObjectImageWidget; use kartik\helpers\Html; ?> <div class="row"> <div class="span2"> <?php echo ObjectImageWidget::widget(['limit' => 1, 'model' => $product]); ?> </div> <div class="span4"> <h5><a href="<?php echo $url; ?> "><?php echo Html::encode($product->name); ?> </a></h5> <p> <?php echo $product->announce; ?> </p> <a class="btn btn-small pull-right" href="<?php
<?php /** * @var \app\modules\shop\models\Currency $mainCurrency * @var \app\modules\shop\models\Order $model * @var \app\modules\shop\models\OrderItem[] $items * @var \yii\web\View $this */ use app\modules\shop\models\Product; use kartik\helpers\Html; foreach ($items as $item) { ?> <tr class="warning" style="color: #666; font-size: 12px;"> <td style="padding-left: 40px;"> <?php echo \app\modules\image\widgets\ObjectImageWidget::widget(['limit' => 1, 'model' => $item->product]); ?> </td> <td> <?php echo Html::encode($item->product->name); ?> </td> <td><?php echo $item->product->formattedPrice(null, false, false); ?> </td> <td> <?php if ($immutable === true) { ?>
?> </th> <th><?php echo Yii::t('app', 'Sum'); ?> </th> </tr> </thead> <tbody> <?php foreach ($items as $item) { ?> <tr> <td class="product-image"> <?php echo \app\modules\image\widgets\ObjectImageWidget::widget(['limit' => 1, 'model' => $item->product, 'thumbnailOnDemand' => true, 'thumbnailWidth' => 140, 'thumbnailHeight' => 140]); ?> </td> <td> <?php echo Html::a(Html::encode($item->product->name), \yii\helpers\Url::to(['/shop/product/show', 'model' => $item->product, 'category_group_id' => $item->product->category->category_group_id])); ?> </td> <td> <?php echo $mainCurrency->format($item->price_per_pcs); ?> </td> <td><?php echo $item->quantity; ?>
$propertiesShowedInAnnounce = false; ?> <div class="row product-show" itemscope itemtype="http://schema.org/Product"> <div class="col-md-6 col-sm-6 col-xs-12 col-lg-4"> <div class="product-images"> <div class="first-image"> <?php echo ObjectImageWidget::widget(['limit' => 1, 'model' => $model]); ?> </div> <?php if (count($model->images) > 1) { ?> <div class="other-images"> <?php echo ObjectImageWidget::widget(['model' => $model]); ?> </div> <?php } ?> </div> </div> <div class="col-md-6 col-sm-6 col-xs-12 col-lg-8"> <h1 itemprop="name"> <?php echo Html::encode($model->h1); ?> </h1> <div class="row">