Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Plugin.php
Go to the documentation of this file.
1 <?php
8 
9 class Plugin
10 {
14  protected $cart;
15 
19  public function __construct(\Magento\Checkout\Model\Cart $cart)
20  {
21  $this->cart = $cart;
22  }
23 
31  public function beforeExecute(\Magento\Framework\App\Action\Action $subject)
32  {
33  $this->cart->getQuote()->setIsMultiShipping(0);
34  }
35 }
beforeExecute(\Magento\Framework\App\Action\Action $subject)
Definition: Plugin.php:31
__construct(\Magento\Checkout\Model\Cart $cart)
Definition: Plugin.php:19