Skip to content

Commit

Permalink
Filter active shipping options
Browse files Browse the repository at this point in the history
AD4CR22I-26
  • Loading branch information
Tamara committed Feb 4, 2025
1 parent 3830495 commit da0acc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Service/Repository/ExpressCheckoutRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public function fetchAvailableShippingMethods(
$criteria->addAssociation('salesChannels');
$criteria->addAssociation('prices');
$criteria->addFilter(new EqualsFilter('salesChannels.id', $salesChannelContext->getSalesChannel()->getId()));
$criteria->addFilter(new EqualsFilter('active', 1));

/** @var ShippingMethodCollection $shippingMethods */
$shippingMethods = $this->shippingMethodRepository->search($criteria, $salesChannelContext->getContext())
Expand Down

0 comments on commit da0acc8

Please sign in to comment.