2
获取产品形象,我抓住一个产品对象有:从产品型号的Magento 2
$productId = 9184;
$objectManagerProd = \Magento\Framework \App\ObjectManager::getInstance();
$currentproduct = $objectManagerProd->create('Magento\Catalog\Model\Product')->load($productId);
我试图抓住与图像的辅助产品形象,但它无法正常工作。我也尝试过getImage()。任何身体都可以帮忙?谢谢!
您不使用'$ imagewidth'和'$ imageheight' – surfer190