Created
February 19, 2017 13:33
-
-
Save alihalabyah/8a7ac8054ad706094cd7d0e0bed25c18 to your computer and use it in GitHub Desktop.
Magento2 Get Product Image URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$store = $objectManager->get('Magento\Store\Model\StoreManagerInterface')->getStore(); | |
$imageUrl = $store->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_MEDIA) . 'catalog/product' . $product->getImage(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment