Disable split delivery on the Storefront
Edit on GitHubSometimes payment service providers do not support multiple shipments for the same order, which contradicts the essence of the Split Delivery feature. In this case, you can disable the Split Delivery feature in the Checkout process; however, it will still work in the Back Office.
To disable the feature for the Checkout process in Yves, do the following:
- Open the
\Pyz\Shared\Shipment\ShipmentConfig.php
file. - Change the
isMultiShipmentSelectionEnabled()
toreturn false
:
<?php
/**
* This file is part of the Spryker Suite.
* For full license information, view the LICENSE file that was distributed with this source code.
*/
namespace Pyz\Shared\Shipment;
use Spryker\Shared\Shipment\ShipmentConfig as SprykerShipmentConfig;
class ShipmentConfig extends SprykerShipmentConfig
{
/**
* @return bool
*/
public function isMultiShipmentSelectionEnabled(): bool
{
return false;
}
}
- Save your changes.
Thank you!
For submitting the form