分类
后端

Magento2 获取产品详情对象

        $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
        $Product =$objectManager->create('Magento\Catalog\Model\Product')->load($productId);