| @@ 121-131 (lines=11) @@ | ||
| 118 | if ($this->category) { |
|
| 119 | $this->search_index .= $this->category->name . ' '; |
|
| 120 | } |
|
| 121 | if ($this->options) { |
|
| 122 | foreach ($this->options as $option) { |
|
| 123 | if ($option->item_option_searchable && $option->value) { |
|
| 124 | if ($option->item_option_type != 'select') { |
|
| 125 | $this->search_index .= $option->value . ' '; |
|
| 126 | } elseif (!empty($option->option->items[$option->value])) { |
|
| 127 | $option->option->items[$option->value]->value . ' '; |
|
| 128 | } |
|
| 129 | } |
|
| 130 | } |
|
| 131 | } |
|
| 132 | if ($this->offers) { |
|
| 133 | foreach ($this->offers as $offer) { |
|
| 134 | if ($offer->options) { |
|
| @@ 134-144 (lines=11) @@ | ||
| 131 | } |
|
| 132 | if ($this->offers) { |
|
| 133 | foreach ($this->offers as $offer) { |
|
| 134 | if ($offer->options) { |
|
| 135 | foreach ($offer->options as $option) { |
|
| 136 | if ($option->item_offer_option_searchable && $option->value) { |
|
| 137 | if ($option->item_offer_option_type != 'select') { |
|
| 138 | $this->search_index .= $option->value . ' '; |
|
| 139 | } elseif (!empty($option->option->items[$option->value])) { |
|
| 140 | $option->option->items[$option->value]->value . ' '; |
|
| 141 | } |
|
| 142 | } |
|
| 143 | } |
|
| 144 | } |
|
| 145 | } |
|
| 146 | } |
|
| 147 | } |
|