คำถามติดแท็ก di.xml

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') …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.