| @@ 243-253 (lines=11) @@ | ||
| 240 | if ($this->category) { |
|
| 241 | $this->search_index .= $this->category->name . ' '; |
|
| 242 | } |
|
| 243 | if ($this->options) { |
|
| 244 | foreach ($this->options as $option) { |
|
| 245 | if ($option->item_option_searchable && $option->value) { |
|
| 246 | if ($option->item_option_type != 'select') { |
|
| 247 | $this->search_index .= $option->value . ' '; |
|
| 248 | } elseif (!empty($option->option->items[$option->value])) { |
|
| 249 | $option->option->items[$option->value]->value . ' '; |
|
| 250 | } |
|
| 251 | } |
|
| 252 | } |
|
| 253 | } |
|
| 254 | if ($this->offers) { |
|
| 255 | foreach ($this->offers as $offer) { |
|
| 256 | if ($offer->options) { |
|
| @@ 256-266 (lines=11) @@ | ||
| 253 | } |
|
| 254 | if ($this->offers) { |
|
| 255 | foreach ($this->offers as $offer) { |
|
| 256 | if ($offer->options) { |
|
| 257 | foreach ($offer->options as $option) { |
|
| 258 | if ($option->item_offer_option_searchable && $option->value) { |
|
| 259 | if ($option->item_offer_option_type != 'select') { |
|
| 260 | $this->search_index .= $option->value . ' '; |
|
| 261 | } elseif (!empty($option->option->items[$option->value])) { |
|
| 262 | $option->option->items[$option->value]->value . ' '; |
|
| 263 | } |
|
| 264 | } |
|
| 265 | } |
|
| 266 | } |
|
| 267 | } |
|
| 268 | } |
|
| 269 | } |
|