HowTo - Disable Split Delivery in Yves Interface
  • Updated on 03 Apr 2020
  • 1 minute to read
  • Print
  • Share
  • Dark
    Light

HowTo - Disable Split Delivery in Yves Interface

  • Print
  • Share
  • Dark
    Light

Sometimes 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 Сheckout process, however, it will still work in the Back Office.

To disable the feature for the Checkout process in Yves, do the following:

  1. Open the \Pyz\Shared\Shipment\ShipmentConfig.php file.

  2. Change the isMultiShipmentSelectionEnabled() to return 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;
    }
}
  1. Save the changes.
Was this article helpful?