28 private $attributeRepository;
42 AttributeRepository $attributeRepository,
43 ScopeConfig $scopeConfig
47 $this->scopeConfig = $scopeConfig;
55 public function execute()
57 if (!$this->isPriceScopeSetToGlobal()) {
62 $priceAttribute = $this->attributeRepository
66 $connection->quoteInto(
'attribute_id = ?', $priceAttribute->getId()),
71 $priceAttribute->getBackend()->getTable(),
84 private function isPriceScopeSetToGlobal()
87 if ($priceScope ===
null) {
const XML_PATH_PRICE_SCOPE
__construct(ResourceConnection $resource, AttributeRepository $attributeRepository, ScopeConfig $scopeConfig)