Skip to content

Commit

Permalink
All store views fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin committed Feb 22, 2022
1 parent 92014fb commit 7aebf2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Scopes/WithProductAmastyLabelScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function apply(Builder $builder, Model $model)
)), "$.null__") as amasty_label')
->leftJoin('amasty_label_index', function ($join) use ($model) {
$join->on('amasty_label_index.product_id', '=', $model->getTable().'.entity_id')
->where('amasty_label_index.store_id', config('rapidez.store'));
->whereIn('amasty_label_index.store_id', [0, config('rapidez.store')]);
})
->leftJoin('amasty_label_entity', function ($join) {
$join->on('amasty_label_entity.label_id', '=', 'amasty_label_index.label_id')
Expand Down

0 comments on commit 7aebf2a

Please sign in to comment.