最新回答
- 2019-12-51 #
- 2019-12-52 #
//get product id $productID = 10; $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product = $objectManager->get('Magento\Framework\Registry'); //set isSecureArea code here $product->registry('isSecureArea',true); $product->delete();