Example #1
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\CatalogInventory\Api\StockRegistryInterface $stockRegistry
  * @param \Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Sales\Helper\Data $salesData
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\CatalogInventory\Api\StockRegistryInterface $stockRegistry, \Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration, \Magento\Framework\Registry $registry, \Magento\Sales\Helper\Data $salesData, array $data = [])
 {
     $this->_salesData = $salesData;
     parent::__construct($context, $stockRegistry, $stockConfiguration, $registry, $data);
 }
Example #2
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\CatalogInventory\Service\V1\StockItemService $stockItemService
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Sales\Helper\Data $salesData
  * @param \Magento\Shipping\Model\CarrierFactory $carrierFactory
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\CatalogInventory\Service\V1\StockItemService $stockItemService, \Magento\Framework\Registry $registry, \Magento\Sales\Helper\Data $salesData, \Magento\Shipping\Model\CarrierFactory $carrierFactory, array $data = array())
 {
     $this->_salesData = $salesData;
     $this->_carrierFactory = $carrierFactory;
     parent::__construct($context, $stockItemService, $registry, $data);
 }
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\CatalogInventory\Api\StockRegistryInterface $stockRegistry
  * @param \Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Catalog\Model\Product\OptionFactory $optionFactory
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\CatalogInventory\Api\StockRegistryInterface $stockRegistry, \Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration, \Magento\Framework\Registry $registry, \Magento\Catalog\Model\Product\OptionFactory $optionFactory, array $data = [])
 {
     $this->_optionFactory = $optionFactory;
     parent::__construct($context, $stockRegistry, $stockConfiguration, $registry, $data);
 }
Example #4
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\CatalogInventory\Service\V1\StockItemService $stockItemService
  * @param \Magento\Framework\Registry $registry
  * @param PriceCurrencyInterface $priceCurrency
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\CatalogInventory\Service\V1\StockItemService $stockItemService, \Magento\Framework\Registry $registry, PriceCurrencyInterface $priceCurrency, array $data = array())
 {
     $this->priceCurrency = $priceCurrency;
     parent::__construct($context, $stockItemService, $registry, $data);
 }
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\CatalogInventory\Service\V1\StockItemService $stockItemService
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\GiftMessage\Helper\Message $messageHelper
  * @param \Magento\Checkout\Helper\Data $checkoutHelper
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\CatalogInventory\Service\V1\StockItemService $stockItemService, \Magento\Framework\Registry $registry, \Magento\GiftMessage\Helper\Message $messageHelper, \Magento\Checkout\Helper\Data $checkoutHelper, array $data = array())
 {
     $this->_checkoutHelper = $checkoutHelper;
     $this->_messageHelper = $messageHelper;
     parent::__construct($context, $stockItemService, $registry, $data);
 }
Example #6
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\CatalogInventory\Service\V1\StockItemService $stockItemService
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Catalog\Model\Product\OptionFactory $optionFactory
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\CatalogInventory\Service\V1\StockItemService $stockItemService, \Magento\Framework\Registry $registry, \Magento\Catalog\Model\Product\OptionFactory $optionFactory, array $data = array())
 {
     $this->_optionFactory = $optionFactory;
     parent::__construct($context, $stockItemService, $registry, $data);
 }