Example #1
0
 /**
  * @param \Magento\Framework\Logger $logger
  * @param \Magento\Directory\Model\CurrencyFactory $currencyFactory
  * @param \Magento\Framework\StoreManagerInterface $storeManager
  * @param \Magento\Catalog\Helper\Data $catalogData
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $config
  * @param \Magento\Catalog\Model\Product\Type $catalogProductType
  * @param \Magento\Catalog\Model\Resource\Product\Attribute\Backend\Groupprice $productAttributeBackendGroupprice
  */
 public function __construct(\Magento\Framework\Logger $logger, \Magento\Directory\Model\CurrencyFactory $currencyFactory, \Magento\Framework\StoreManagerInterface $storeManager, \Magento\Catalog\Helper\Data $catalogData, \Magento\Framework\App\Config\ScopeConfigInterface $config, \Magento\Catalog\Model\Product\Type $catalogProductType, \Magento\Catalog\Model\Resource\Product\Attribute\Backend\Groupprice $productAttributeBackendGroupprice)
 {
     $this->_productAttributeBackendGroupprice = $productAttributeBackendGroupprice;
     parent::__construct($logger, $currencyFactory, $storeManager, $catalogData, $config, $catalogProductType);
 }
Example #2
0
 /**
  * Add price qty to unique fields
  *
  * @param array $objectArray
  * @return array
  */
 protected function _getAdditionalUniqueFields($objectArray)
 {
     $uniqueFields = parent::_getAdditionalUniqueFields($objectArray);
     $uniqueFields['qty'] = $objectArray['price_qty'] * 1;
     return $uniqueFields;
 }