pull/1/head
Jan Umbach 2024-05-28 17:03:25 +02:00
parent 9de263e48e
commit 7a944d3df8
1 changed files with 5 additions and 0 deletions

View File

@ -1129,6 +1129,11 @@ class VariantSelects extends HTMLElement {
// how to get second image id from the gallery
console.log('mediaGallery', mediaGallery);
// get the second image id
const secondImageId = mediaGallery.querySelector('.product-media-gallery__thumbnail:nth-child(2)').dataset.mediaId;
console.log('secondImageId', secondImageId);
}