Magento2가 프로그래밍 방식으로 속성 옵션을 추가하는 방법 (설정에 없음)
수입 모듈에서 크기 및 색상 속성에 대한 옵션을 추가하려고 시도하지만 방법은 없습니다. private function addOption($attributeCode, $value) { $ob = $this->_objectManager; /* @var $m \Magento\Eav\Model\Entity\Attribute\OptionManagement */ $m = $this->optionManagement; /* @var $option \Magento\Eav\Model\Entity\Attribute\Option */ $option = $this->attributeOption; $option->setLabel($value); $option->setValue($value); $m->add(\Magento\Catalog\Api\Data\ProductAttributeInterface::ENTITY_TYPE_CODE, $attributeCode, $option); 이 보고서는 오류가 (난에보고 예외 수정 OptionMaganger.php에 > 메시지 …