document.addEventListener('DOMContentLoaded', function () {
// Get the product images container
var productMedia = document.querySelectorAll('.product-single__media-item');
// Get the variant dropdown or buttons
var variantSelectors = document.querySelectorAll('[name="id"]');
// Function to display the first product image
function showFirstImage() {
if (productMedia.length > 0) {
productMedia.forEach(function (media, index) {
if (index === 0) {
media.style.display = 'block';
} else {
media.style.display = 'none';
}
});
}
}
// Show the first image on page load
showFirstImage();
// Add event listeners to variant selectors
variantSelectors.forEach(function (selector) {
selector.addEventListener('change', function () {
showFirstImage();
});
});
});
document.addEventListener('DOMContentLoaded', function () {
// Get the product images container
var productMedia = document.querySelectorAll('.product-single__media-item');
// Get the variant dropdown or buttons
var variantSelectors = document.querySelectorAll('[name="id"]');
// Function to display the first product image
function showFirstImage() {
if (productMedia.length > 0) {
productMedia.forEach(function (media, index) {
if (index === 0) {
media.style.display = 'block';
} else {
media.style.display = 'none';
}
});
}
}
// Show the first image on page load
showFirstImage();
// Add event listeners to variant selectors
variantSelectors.forEach(function (selector) {
selector.addEventListener('change', function () {
showFirstImage();
});
});
});
document.addEventListener('DOMContentLoaded', function () {
// Get the product images container
var productMedia = document.querySelectorAll('.product-single__media-item');
// Get the variant dropdown or buttons
var variantSelectors = document.querySelectorAll('[name="id"]');
// Function to display the first product image
function showFirstImage() {
if (productMedia.length > 0) {
productMedia.forEach(function (media, index) {
if (index === 0) {
media.style.display = 'block';
} else {
media.style.display = 'none';
}
});
}
}
// Show the first image on page load
showFirstImage();
// Add event listeners to variant selectors
variantSelectors.forEach(function (selector) {
selector.addEventListener('change', function () {
showFirstImage();
});
});
});
document.addEventListener('DOMContentLoaded', function () {
// Get the product images container
var productMedia = document.querySelectorAll('.product-single__media-item');
// Get the variant dropdown or buttons
var variantSelectors = document.querySelectorAll('[name="id"]');
// Function to display the first product image
function showFirstImage() {
if (productMedia.length > 0) {
productMedia.forEach(function (media, index) {
if (index === 0) {
media.style.display = 'block';
} else {
media.style.display = 'none';
}
});
}
}
// Show the first image on page load
showFirstImage();
// Add event listeners to variant selectors
variantSelectors.forEach(function (selector) {
selector.addEventListener('change', function () {
showFirstImage();
});
});
});![Celebrate the life and love you enjoyed from your furry friend with our Heart Shaped Resin Dog Monument. This beautiful tribute is lovingly crafted in the shape of a heart, symbolizing the eternal bond between you and your beloved pet. Made with high-quality resin, it's a lasting and heartfelt tribute to treasure.](//dragoyle.com/cdn/shop/files/437B0F41721353805AFA30E31A3654C6.jpg?v=1713146050&width=1445)
![Celebrate the life and love you enjoyed from your furry friend with our Heart Shaped Resin Dog Monument. This beautiful tribute is lovingly crafted in the shape of a heart, symbolizing the eternal bond between you and your beloved pet. Made with high-quality resin, it's a lasting and heartfelt tribute to treasure.](http://dragoyle.com/cdn/shop/files/FFF4E49D5611D92C6E0DF8676836F170.jpg?v=1713146306&width=1445)
![Celebrate the life and love you enjoyed from your furry friend with our Heart Shaped Resin Dog Monument. This beautiful tribute is lovingly crafted in the shape of a heart, symbolizing the eternal bond between you and your beloved pet. Made with high-quality resin, it's a lasting and heartfelt tribute to treasure.](http://dragoyle.com/cdn/shop/files/B08517EF8511C1581338074CB24AF15C.jpg?v=1713146050&width=1445)
![Celebrate the life and love you enjoyed from your furry friend with our Heart Shaped Resin Dog Monument. This beautiful tribute is lovingly crafted in the shape of a heart, symbolizing the eternal bond between you and your beloved pet. Made with high-quality resin, it's a lasting and heartfelt tribute to treasure.](http://dragoyle.com/cdn/shop/files/0E8CDFB11EC5771946E569ECC1C87673.jpg?v=1713146050&width=1445)
![Celebrate the life and love you enjoyed from your furry friend with our Heart Shaped Resin Dog Monument. This beautiful tribute is lovingly crafted in the shape of a heart, symbolizing the eternal bond between you and your beloved pet. Made with high-quality resin, it's a lasting and heartfelt tribute to treasure.](http://dragoyle.com/cdn/shop/files/437B0F41721353805AFA30E31A3654C6.jpg?v=1713146050&width=1445)