2
獲取產品形象,我抓住一個產品對象有:從產品型號的Magento 2
$productId = 9184;
$objectManagerProd = \Magento\Framework \App\ObjectManager::getInstance();
$currentproduct = $objectManagerProd->create('Magento\Catalog\Model\Product')->load($productId);
我試圖抓住與圖像的輔助產品形象,但它無法正常工作。我也嘗試過getImage()。任何身體都可以幫忙?謝謝!
您不使用'$ imagewidth'和'$ imageheight' – surfer190