for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Spryker Commerce OS.
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
declare(strict_types = 1);
namespace Pyz\Yves\CustomerPage\Form\DataProvider;
use Generated\Shared\Transfer\QuoteTransfer;
use SprykerShop\Yves\CustomerPage\Form\DataProvider\CheckoutAddressFormDataProvider as SprykerCheckoutAddressFormDataProvider;
class CheckoutAddressFormDataProvider extends SprykerCheckoutAddressFormDataProvider
{
protected function canDeliverToMultipleShippingAddresses(QuoteTransfer $quoteTransfer): bool
$items = $this->productBundleClient->getGroupedBundleItems(
$quoteTransfer->getItems(),
$quoteTransfer->getBundleItems(),
);
return count($items) >= 1
&& $this->shipmentClient->isMultiShipmentSelectionEnabled()
&& !$this->hasQuoteGiftCardItems($quoteTransfer);
}