diff --git a/common/modules/product/widgets/views/product_smart.php b/common/modules/product/widgets/views/product_smart.php index 59622f5..ff06f99 100755 --- a/common/modules/product/widgets/views/product_smart.php +++ b/common/modules/product/widgets/views/product_smart.php @@ -43,9 +43,13 @@ 'product' => $product->alias ]) ?>" title="fullname . ' ' . $product->category->name ?>"> -

name ?>

-fullname ?> -category->name ?> +

fullName ?>

+ fullname ?>

+

category->name ?>

+ */ + ?> diff --git a/common/modules/product/widgets/views/product_smart_similar.php b/common/modules/product/widgets/views/product_smart_similar.php index 8228764..f979ba2 100755 --- a/common/modules/product/widgets/views/product_smart_similar.php +++ b/common/modules/product/widgets/views/product_smart_similar.php @@ -52,7 +52,7 @@ 'product' => $product->alias ]) ?>" title="fullname . ' ' . $product->category->name ?>"> category->name ?> -

name ?>

+

fullName ?>

diff --git a/frontend/views/catalog/_product_item.php b/frontend/views/catalog/_product_item.php index 6b9b235..30cf319 100755 --- a/frontend/views/catalog/_product_item.php +++ b/frontend/views/catalog/_product_item.php @@ -39,8 +39,8 @@ use yii\helpers\Url; imageUrl, 'list', [ - 'alt' => $model->category->name . ' ' . $model->name, - 'title' => $model->category->name . ' ' . $model->name, + 'alt' => $model->getFullName(), + 'title' => $model->getFullName(), 'class' => 'selected', 'itemprop' => 'image' ]) ?> diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php index 07ad878..0bc1b3a 100755 --- a/frontend/views/catalog/product.php +++ b/frontend/views/catalog/product.php @@ -73,8 +73,8 @@ imageUrl, 'product_show',[ - 'alt'=>$product->fullname." фото 1" , - 'title' => $product->fullname." фото 1", + 'alt'=>$product->fullname, + 'title' => $product->fullname, 'itemprop' => 'image' ]) ?> @@ -514,7 +514,7 @@ _options as $option) { - if ($group->is_filter && preg_match("/^.*(стиль|тип\sисточника|тип\sнастенного|тип\sпотолочного).*$/iu", $group->name)) { + if ($group->is_filter && preg_match("/^.*(стиль|тип\sисточника|тип\sнастенного|тип\sпотолочного|вид).*$/iu", $group->name)) { echo Html::a(' ' . $option->ValueRenderHTML, [ 'catalog/category', -- libgit2 0.21.4