public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Checkout\Model\ResourceModel\Cart $checkoutCart, \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Framework\Module\Manager $moduleManager, \Celebros\ConversionPro\Helper\Data $conversionproHelper, \Celebros\ConversionPro\Helper\CrossSell $crossSellHelper, \Magento\ConfigurableProduct\Model\Product\Type\Configurable $confModel, \Magento\Catalog\Model\Product $prodModel, array $data = []) { $this->helper = $conversionproHelper; $this->crossSellHelper = $crossSellHelper; $this->_confModel = $confModel; $this->_prodModel = $prodModel; parent::__construct($context, $checkoutCart, $catalogProductVisibility, $checkoutSession, $moduleManager, $data); }
/** * Upsell constructor. * @param \Magento\Catalog\Block\Product\Context $context * @param \Magento\Checkout\Model\ResourceModel\Cart $checkoutCart * @param \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility * @param \Magento\Checkout\Model\Session $checkoutSession * @param \Magento\Framework\Module\Manager $moduleManager * @param \Boxalino\Intelligence\Helper\Data $bxHelperData * @param \Magento\Catalog\Model\ResourceModel\Product\Link\Product\CollectionFactory $factory * @param \Boxalino\Intelligence\Helper\P13n\Adapter $p13nHelper * @param array $data */ public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Checkout\Model\ResourceModel\Cart $checkoutCart, \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Framework\Module\Manager $moduleManager, \Boxalino\Intelligence\Helper\Data $bxHelperData, \Magento\Catalog\Model\ResourceModel\Product\Link\Product\CollectionFactory $factory, \Boxalino\Intelligence\Helper\P13n\Adapter $p13nHelper, array $data = []) { $this->bxHelperData = $bxHelperData; $this->p13nHelper = $p13nHelper; $this->factory = $factory; parent::__construct($context, $checkoutCart, $catalogProductVisibility, $checkoutSession, $moduleManager, $data); $this->_prepareData(false); }
/** * Upsell constructor. * @param Context $context * @param Cart $checkoutCart * @param Visibility $productVisibility * @param Session $checkoutSession * @param Manager $moduleManager * @param ProductFactory $productFactory * @param Config $config * @param PersonalisedUpsell $upsell * @param CustomerSession $customerSession * @param array $data */ public function __construct(Context $context, Cart $checkoutCart, Visibility $productVisibility, Session $checkoutSession, Manager $moduleManager, ProductFactory $productFactory, Config $config, PersonalisedUpsell $upsell, CustomerSession $customerSession, array $data = []) { $this->_config = $config; $this->_productFactory = $productFactory; $this->_upsell = $upsell; $this->_customerSession = $customerSession; parent::__construct($context, $checkoutCart, $productVisibility, $checkoutSession, $moduleManager, $data); }
public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Checkout\Model\ResourceModel\Cart $checkoutCart, \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Framework\Module\Manager $moduleManager, array $data = array()) { $this->___init(); parent::__construct($context, $checkoutCart, $catalogProductVisibility, $checkoutSession, $moduleManager, $data); }