| @@ 232-242 (lines=11) @@ | ||
| 229 | if ($this->category) { |
|
| 230 | $this->search_index .= $this->category->name . ' '; |
|
| 231 | } |
|
| 232 | if ($this->options) { |
|
| 233 | foreach ($this->options as $option) { |
|
| 234 | if ($option->item_option_searchable && $option->value) { |
|
| 235 | if ($option->item_option_type != 'select') { |
|
| 236 | $this->search_index .= $option->value . ' '; |
|
| 237 | } elseif (!empty($option->option->items[$option->value])) { |
|
| 238 | $option->option->items[$option->value]->value . ' '; |
|
| 239 | } |
|
| 240 | } |
|
| 241 | } |
|
| 242 | } |
|
| 243 | if ($this->offers) { |
|
| 244 | foreach ($this->offers as $offer) { |
|
| 245 | if ($offer->options) { |
|
| @@ 245-255 (lines=11) @@ | ||
| 242 | } |
|
| 243 | if ($this->offers) { |
|
| 244 | foreach ($this->offers as $offer) { |
|
| 245 | if ($offer->options) { |
|
| 246 | foreach ($offer->options as $option) { |
|
| 247 | if ($option->item_offer_option_searchable && $option->value) { |
|
| 248 | if ($option->item_offer_option_type != 'select') { |
|
| 249 | $this->search_index .= $option->value . ' '; |
|
| 250 | } elseif (!empty($option->option->items[$option->value])) { |
|
| 251 | $option->option->items[$option->value]->value . ' '; |
|
| 252 | } |
|
| 253 | } |
|
| 254 | } |
|
| 255 | } |
|
| 256 | } |
|
| 257 | } |
|
| 258 | } |
|