diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php index a9cb310..07ea69f 100755 --- a/frontend/views/catalog/product.php +++ b/frontend/views/catalog/product.php @@ -2,7 +2,10 @@ use yii\widgets\Breadcrumbs; use yii\web\View; use yii\helpers\Url; -$this->params['seo']['title'] = $product->fullname; + +//$this->params['seo']['title'] = $product->fullname; +$this->params['seo']['title'] = "Купить " . substr($product->category->categoryName->value, 0, -2) . " " . $product->fullname . " купить в Киеве, Харькове, Украине: цены, отзывы - Rukzachok.com.ua"; + $this->title = $product->fullname; //$this->title = (! empty($product->meta_title)) ? $product->meta_title : $product->fullname; //$this->registerMetaTag (['name' => 'description', 'content' => ((! empty($product->meta_description)) ? $product->meta_description : $product->fullname)]); diff --git a/frontend/views/catalog/products.php b/frontend/views/catalog/products.php index cb89fad..0e67291 100755 --- a/frontend/views/catalog/products.php +++ b/frontend/views/catalog/products.php @@ -9,7 +9,7 @@ use yii\web\View; use common\modules\product\helpers\ProductHelper; use frontend\widgets\Seo; //$this->title = $category->categoryName->value; -$this->params['seo']['title'] = !empty($category->meta_title) ? $category->meta_title : $category->name; +$this->params['seo']['title'] = !empty($category->meta_title) ? $category->meta_title : "Купить " . substr($category->name, 0, -2) . " в Украине недорого |" . $category->name . " доставка в Киев, Харьков, Днепропетровск, Одесса - Rukzachok.com.ua"; $this->params['seo']['h1'] = !empty($category->h1) ? $category->h1 : $category->name; $this->params['seo']['seo_text'] = $category->seo_text; $this->params['seo']['description'] = $category->meta_desc; -- libgit2 0.21.4