6
当前区域禁止删除操作
我想为sku创建用于简单产品的删除操作的命令。我收到以下错误。如何设置管理区域? [Magento \ Framework \ Exception \ LocalizedException] 当前区域禁止删除操作 <?php namespace Sivakumar\Sample\Console; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputOption; class DeleteSimpleProduct extends Command { protected $_product; public function __construct(\Magento\Catalog\Model\Product $_product) { $this->_product =$_product; parent::__construct(); } /** * {@inheritdoc} */ protected function configure() { $this->setName('delete_simple_product') ->setDescription('Delete Simple Product') ->setDefinition($this->getOptionsList()); parent::configure(); …