File tree Expand file tree Collapse file tree 1 file changed +2
-41
lines changed Expand file tree Collapse file tree 1 file changed +2
-41
lines changed Original file line number Diff line number Diff line change @@ -165,47 +165,8 @@ protected function where(...$parameters)
165
165
case 'description ' :
166
166
$ this ->options ['search ' ] = $ value ;
167
167
break ;
168
- case 'sku ' :
169
- $ this ->options ['sku ' ] = $ value ;
170
- break ;
171
- case 'type ' :
172
- $ this ->options ['type ' ] = $ value ;
173
- break ;
174
- case 'category ' :
175
- $ this ->options ['category ' ] = $ value ;
176
- break ;
177
- case 'tag ' :
178
- $ this ->options ['tag ' ] = $ value ;
179
- break ;
180
- case 'after ' :
181
- $ this ->options ['after ' ] = $ value ;
182
- break ;
183
- case 'before ' :
184
- $ this ->options ['before ' ] = $ value ;
185
- break ;
186
- case 'attribute ' :
187
- $ this ->options ['attribute ' ] = $ value ;
188
- break ;
189
- case 'attribute_term ' :
190
- $ this ->options ['attribute_term ' ] = $ value ;
191
- break ;
192
- case 'in_stock ' :
193
- $ this ->options ['in_stock ' ] = $ value ;
194
- break ;
195
- case 'featured ' :
196
- $ this ->options ['featured ' ] = $ value ;
197
- break ;
198
- case 'min_price ' :
199
- $ this ->options ['min_price ' ] = $ value ;
200
- break ;
201
- case 'max_price ' :
202
- $ this ->options ['max_price ' ] = $ value ;
203
- break ;
204
- case 'shipping_class ' :
205
- $ this ->options ['shipping_class ' ] = $ value ;
206
- break ;
207
- case 'tax_class ' :
208
- $ this ->options ['tax_class ' ] = $ value ;
168
+ default :
169
+ $ this ->options [$ field ] = $ value ;
209
170
break ;
210
171
}
211
172
You can’t perform that action at this time.
0 commit comments