File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/code/Magento/ConfigurableProduct/Block/Cart/Item/Renderer Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class Configurable extends Renderer implements IdentityInterface
24
24
/**
25
25
* Get item configurable child product
26
26
*
27
- * @return \Magento\Catalog\Model\Product
27
+ * @return \Magento\Catalog\Model\Product|null
28
28
*/
29
29
public function getChildProduct ()
30
30
{
@@ -66,8 +66,9 @@ public function getProductForThumbnail()
66
66
if ($ this ->_scopeConfig ->getValue (
67
67
self ::CONFIG_THUMBNAIL_SOURCE ,
68
68
\Magento \Store \Model \ScopeInterface::SCOPE_STORE
69
- ) == ThumbnailSource::OPTION_USE_PARENT_IMAGE ||
70
- !($ this ->getChildProduct ()->getThumbnail () && $ this ->getChildProduct ()->getThumbnail () != 'no_selection ' )
69
+ ) == ThumbnailSource::OPTION_USE_PARENT_IMAGE
70
+ || !($ this ->getChildProduct ()
71
+ && $ this ->getChildProduct ()->getThumbnail () && $ this ->getChildProduct ()->getThumbnail () != 'no_selection ' )
71
72
) {
72
73
$ product = $ this ->getProduct ();
73
74
} else {
You can’t perform that action at this time.
0 commit comments