Commit 311e3534c233cdc1d9265c04f9d52b2312bcede7
1 parent
70b5a348
micro data
Showing
2 changed files
with
9 additions
and
9 deletions
Show diff stats
frontend/views/catalog/_product_item.php
| ... | ... | @@ -5,12 +5,12 @@ |
| 5 | 5 | use yii\helpers\Html; |
| 6 | 6 | use yii\helpers\Url; |
| 7 | 7 | ?> |
| 8 | -<div class="catalog_item"> | |
| 8 | +<div class="catalog_item" itemscope itemtype="http://schema.org/Product"> | |
| 9 | 9 | <div class="wrapper"> |
| 10 | 10 | <div class="item_container" > |
| 11 | 11 | <input class="prodInfo" type="hidden" value="[]"> |
| 12 | 12 | <div class="title"> |
| 13 | - <?= Html::a( $model->name, Url::to(['catalog/product', 'product' => $model->alias]), ['class'=>'btn-product-details','data-pjax'=>0] )?> | |
| 13 | + <?= Html::a( $model->name, Url::to(['catalog/product', 'product' => $model->alias]), ['class'=>'btn-product-details','data-pjax'=>0, 'itemprop' => 'name'] )?> | |
| 14 | 14 | </div> |
| 15 | 15 | <div class="img"> |
| 16 | 16 | <a data-pjax=0 class="btn-product-details" |
| ... | ... | @@ -37,7 +37,8 @@ use yii\helpers\Url; |
| 37 | 37 | <?= \common\components\artboximage\ArtboxImageHelper::getImage($model->imageUrl, 'list', [ |
| 38 | 38 | 'alt' => $model->category->name . ' ' . $model->name, |
| 39 | 39 | 'title' => $model->category->name . ' ' . $model->name, |
| 40 | - 'class' => 'selected' | |
| 40 | + 'class' => 'selected', | |
| 41 | + 'itemprop' => 'image' | |
| 41 | 42 | ]) ?> |
| 42 | 43 | </a> |
| 43 | 44 | <div class="info_icons"> |
| ... | ... | @@ -57,7 +58,7 @@ use yii\helpers\Url; |
| 57 | 58 | </ul> |
| 58 | 59 | </div> |
| 59 | 60 | </div> |
| 60 | - <div class="price"> | |
| 61 | + <div class="price" itemprop="offers" itemscope itemtype="http://schema.org/Offer"> | |
| 61 | 62 | |
| 62 | 63 | <?php if($model->variant->price_old){?> |
| 63 | 64 | <div class="dlexfduinxipi old_price-wr"> |
| ... | ... | @@ -69,7 +70,8 @@ use yii\helpers\Url; |
| 69 | 70 | <div class="dlexfduinxipi"> |
| 70 | 71 | Цена: |
| 71 | 72 | <span class="main"> |
| 72 | - <?= $model->variant->price ?> | |
| 73 | + <span itemprop="price"><?= $model->variant->price ?></span> | |
| 74 | + <meta itemprop="priceCurrency" content = "UAH" /> | |
| 73 | 75 | <span class="currency">грн</span> |
| 74 | 76 | </span> |
| 75 | 77 | </div> | ... | ... |
frontend/views/catalog/products.php
| ... | ... | @@ -81,16 +81,14 @@ |
| 81 | 81 | |
| 82 | 82 | |
| 83 | 83 | </div> |
| 84 | - <div class="block-75" itemscope itemtype="http://schema.org/Product"> | |
| 85 | - | |
| 84 | + <div class="block-75"> | |
| 86 | 85 | |
| 87 | 86 | <h1 class="title"><?= Seo::widget([ 'row'=>'h1'])?></h1> |
| 88 | 87 | |
| 89 | - | |
| 90 | 88 | <div class="list_filters_links"> |
| 91 | 89 | |
| 92 | - | |
| 93 | 90 | <div class="sort_block"> |
| 91 | + | |
| 94 | 92 | <span>Сортировка:</span> |
| 95 | 93 | <?= \yii\widgets\LinkSorter::widget([ |
| 96 | 94 | 'sort' => $productProvider->sort, | ... | ... |