Skip to content

Commit 108c2c5

Browse files
authored
Configurable Product with Only Size Options (No Color Options) Shows No Image in Cart
1 parent d91c0c0 commit 108c2c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Block/Product/ImageBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ protected function getRatio(\Magento\Catalog\Helper\Image $helper)
122122
public function create()
123123
{
124124
/** @var \Magento\Catalog\Model\Product\Configuration\Item\Option\OptionInterface $simpleOption */
125-
$simpleOption = $this->product->getCustomOption('simple_product');
125+
$simpleOption = $this->product->getOptionById('simple_product');
126126

127127
if ($simpleOption !== null) {
128128
$optionProduct = $simpleOption->getProduct();

0 commit comments

Comments
 (0)