diff --git a/src/Model/Resolver/Product/MediaGalleryEntries.php b/src/Model/Resolver/Product/MediaGalleryEntries.php index cdde42d..6c49375 100644 --- a/src/Model/Resolver/Product/MediaGalleryEntries.php +++ b/src/Model/Resolver/Product/MediaGalleryEntries.php @@ -117,7 +117,8 @@ public function resolve( foreach ($product->getMediaGalleryEntries() as $key => $entry) { $thumbnail = $this->getImageOfType($entry, 'scandipwa_media_thumbnail', 'thumbnail'); $base = $this->getImageOfType($entry, 'scandipwa_media_base', 'base'); - $mediaGalleryEntries[$key] = $entry->getData() + ['thumbnail' => $thumbnail, 'base' => $base]; + $large = $this->getImageOfType($entry, 'scandipwa_media_large', 'large'); + $mediaGalleryEntries[$key] = $entry->getData() + ['thumbnail' => $thumbnail, 'base' => $base, 'large' => $large]; if ($entry->getExtensionAttributes() && $entry->getExtensionAttributes()->getVideoContent()) { $mediaGalleryEntries[$key]['video_content'] diff --git a/src/etc/schema.graphqls b/src/etc/schema.graphqls index b20a653..df5305b 100755 --- a/src/etc/schema.graphqls +++ b/src/etc/schema.graphqls @@ -22,8 +22,9 @@ input ProductAttributeFilterInput { } type MediaGalleryEntry @doc(description: "MediaGalleryEntry defines characteristics about images and videos associated with a specific product") { - thumbnail: MediaGalleryImageOfType @doc(description: "The path of the thumbnail image on the server thumbnail") - base: MediaGalleryImageOfType @doc(description: "The path of the thumbnail image on the server thumbnail") + thumbnail: MediaGalleryImageOfType @doc(description: "The path of the thumbnail image on the server") + base: MediaGalleryImageOfType @doc(description: "The path of the base image on the server") + large: MediaGalleryImageOfType @doc(description: "The path of the large image on the server") } type ProductImage @doc(description: "Extend product Image fields for frontend-driven loading mechanism") {