How can I get parent image from a simple product if the simple product has no base image?
The following code gets the simple product image in a template file.
$_imagehelper = $this->helper('Magento\Catalog\Helper\Image');
$productImage = $_imagehelper->init($product, 'category_page_list')->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(400)->getUrl();
Best Answer
Assuming you want the parent of the simple product you would use the following