Skip to content

Commit

Permalink
Use the new productpage scope filter
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin committed Jan 11, 2022
1 parent 67b1e5e commit fa28fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AmastyAutomaticRelatedProductsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function boot()

public function addScopes(): self
{
Eventy::addFilter('product.scopes', fn ($scopes) => array_merge($scopes ?: [], [RelatedProductsScope::class]));
Eventy::addFilter('productpage.scopes', fn ($scopes) => array_merge($scopes ?: [], [RelatedProductsScope::class]));
Eventy::addFilter('quote.scopes', fn ($scopes) => array_merge($scopes ?: [], [CrossselProductsScope::class]));
Eventy::addFilter('product.casts', fn ($casts) => array_merge($casts ?: [], [
'amasty_related_ids' => CommaSeparatedToArray::class,
Expand Down

0 comments on commit fa28fa3

Please sign in to comment.