pull/1/head
Jan Umbach 2024-05-28 17:04:31 +02:00
parent 7a944d3df8
commit 2f3938d793
1 changed files with 1 additions and 1 deletions

View File

@ -1130,7 +1130,7 @@ class VariantSelects extends HTMLElement {
console.log('mediaGallery', mediaGallery); console.log('mediaGallery', mediaGallery);
// get the second image id // get the second image id
const secondImageId = mediaGallery.querySelector('.product-media-gallery__thumbnail:nth-child(2)').dataset.mediaId; const secondImageId = mediaGallery.querySelector('.thumbnail-list__item:nth-child(2)').dataset.mediaId;
console.log('secondImageId', secondImageId); console.log('secondImageId', secondImageId);