Show SPU image for product list
This commit is contained in:
parent
9ecf31aecd
commit
130a4544cc
|
|
@ -31,11 +31,7 @@ class ProductSimple extends JsonResource
|
||||||
}
|
}
|
||||||
|
|
||||||
$name = $this->description->name ?? '';
|
$name = $this->description->name ?? '';
|
||||||
if ($masterSku && $masterSku->images) {
|
$images = $this->images;
|
||||||
$images = $masterSku->images;
|
|
||||||
} else {
|
|
||||||
$images = $this->images ?? [];
|
|
||||||
}
|
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue