Commit 95ca022f4460c425ec01228540bf33bfffa25833
1 parent
30d2133c
add variantSku
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
widgets/Seo.php
| @@ -332,7 +332,7 @@ class Seo extends Widget | @@ -332,7 +332,7 @@ class Seo extends Widget | ||
| 332 | $row .= $field['name'] .' '.$field['value'].' ' ; | 332 | $row .= $field['name'] .' '.$field['value'].' ' ; |
| 333 | } | 333 | } |
| 334 | 334 | ||
| 335 | - $template = preg_replace('/{filter}/',$row,$title); | 335 | + $template = preg_replace('/{filter}/',$row, $description); |
| 336 | 336 | ||
| 337 | return $template; | 337 | return $template; |
| 338 | 338 | ||
| @@ -346,7 +346,7 @@ class Seo extends Widget | @@ -346,7 +346,7 @@ class Seo extends Widget | ||
| 346 | $row .= $field['name'] .' '.$field['value'].' ' ; | 346 | $row .= $field['name'] .' '.$field['value'].' ' ; |
| 347 | } | 347 | } |
| 348 | 348 | ||
| 349 | - $template = preg_replace('/{filter}/',$row,$title); | 349 | + $template = preg_replace('/{filter}/',$row, $h1 ); |
| 350 | 350 | ||
| 351 | return $template; | 351 | return $template; |
| 352 | 352 | ||
| @@ -358,6 +358,7 @@ class Seo extends Widget | @@ -358,6 +358,7 @@ class Seo extends Widget | ||
| 358 | */ | 358 | */ |
| 359 | public function arrayBuilder($filter) | 359 | public function arrayBuilder($filter) |
| 360 | { | 360 | { |
| 361 | + $array = []; | ||
| 361 | if (isset($filter['brands']) && count($filter['brands']) == 1) { | 362 | if (isset($filter['brands']) && count($filter['brands']) == 1) { |
| 362 | $model = Brand::find()->joinWith('lang')->where(['alias' => $filter['brands'][0]])->one(); | 363 | $model = Brand::find()->joinWith('lang')->where(['alias' => $filter['brands'][0]])->one(); |
| 363 | if (!$model instanceof Brand) { | 364 | if (!$model instanceof Brand) { |