system/modules/Callbacks/models/Category.php 1 location
|
@@ 81-90 (lines=10) @@
|
| 78 |
|
} |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
public function resolveViewer() |
| 82 |
|
{ |
| 83 |
|
if ($this->viewer !== 'inherit') { |
| 84 |
|
return $this->viewer; |
| 85 |
|
} elseif ($this->viewer == 'inherit' && $this->category) { |
| 86 |
|
return $this->category->resolveViewer(true); |
| 87 |
|
} else { |
| 88 |
|
return (!empty(App::$cur->ecommerce->config['defaultCategoryView']) ? App::$cur->ecommerce->config['defaultCategoryView'] : 'itemList'); |
| 89 |
|
} |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
} |
| 93 |
|
|
system/modules/Ecommerce/models/Category.php 1 location
|
@@ 121-130 (lines=10) @@
|
| 118 |
|
} |
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
public function resolveViewer() |
| 122 |
|
{ |
| 123 |
|
if ($this->viewer !== 'inherit') { |
| 124 |
|
return $this->viewer; |
| 125 |
|
} elseif ($this->viewer == 'inherit' && $this->category) { |
| 126 |
|
return $this->category->resolveViewer(true); |
| 127 |
|
} else { |
| 128 |
|
return (!empty(\App::$cur->ecommerce->config['defaultCategoryView']) ? \App::$cur->ecommerce->config['defaultCategoryView'] : 'itemList'); |
| 129 |
|
} |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
} |
| 133 |
|
|