Merge pull request #2935 from vivek-webkul/patch-42
[Updated: getBaseImage() method updated for configurable product.]
This commit is contained in:
commit
e2cdfbac7f
|
|
@ -523,7 +523,11 @@ class Configurable extends AbstractType
|
|||
$product = $item->product;
|
||||
}
|
||||
} else {
|
||||
$product = $item->child->product;
|
||||
if ($item instanceof \Webkul\Customer\Contracts\CartItem) {
|
||||
$product = $item->child->product;
|
||||
} else {
|
||||
$product = $item->product;
|
||||
}
|
||||
}
|
||||
|
||||
return $this->productImageHelper->getProductBaseImage($product);
|
||||
|
|
|
|||
Loading…
Reference in New Issue