diff --git a/src/AmastyAutomaticRelatedProductsServiceProvider.php b/src/AmastyAutomaticRelatedProductsServiceProvider.php index d85897e..ab920eb 100644 --- a/src/AmastyAutomaticRelatedProductsServiceProvider.php +++ b/src/AmastyAutomaticRelatedProductsServiceProvider.php @@ -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,