Commit 68d49205c4674135c82aacf3733c646d8f63dead
1 parent
95ca022f
add variantSku
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
widgets/Seo.php
| ... | ... | @@ -175,8 +175,6 @@ class Seo extends Widget |
| 175 | 175 | $sort = \Yii::$app->request->get('sort', []); |
| 176 | 176 | $paginate = \Yii::$app->request->get('page', []); |
| 177 | 177 | |
| 178 | - | |
| 179 | - | |
| 180 | 178 | if (!empty($meta) && empty($sort) && empty($paginate) && !isset($filter['prices']) ) { |
| 181 | 179 | |
| 182 | 180 | $this->getView()->registerMetaTag([ |
| ... | ... | @@ -299,12 +297,14 @@ class Seo extends Widget |
| 299 | 297 | |
| 300 | 298 | $result = $widgetData->$param; |
| 301 | 299 | |
| 300 | + }else if(!empty($this->$param)) { | |
| 301 | + | |
| 302 | + $result = $this->$param; | |
| 303 | + | |
| 302 | 304 | } else if ($widgetDynamicData instanceof SeoDynamic) { |
| 303 | 305 | |
| 304 | 306 | $result = $widgetDynamicData->lang->$param; |
| 305 | 307 | |
| 306 | - } else if(!empty($this->$param)) { | |
| 307 | - $result = $this->$param; | |
| 308 | 308 | } |
| 309 | 309 | |
| 310 | 310 | return $this->replaceData($result); | ... | ... |