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();
});
});
});
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();
});
});
});
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();
});
});
});![Bring on the holiday cheer with these fun, festive, and cozy Warm Christmas Dog Sweaters! Keep your pup feeling warm and looking cool this season in a holiday sweater that's as comfy as it is charming. They're the perfect accessory for your fur-baby's holiday season!](//dragoyle.com/cdn/shop/files/7656311AF31CB00498A2A2E93244050E.jpg?v=1701650975&width=1445)
![Bring on the holiday cheer with these fun, festive, and cozy Warm Christmas Dog Sweaters! Keep your pup feeling warm and looking cool this season in a holiday sweater that's as comfy as it is charming. They're the perfect accessory for your fur-baby's holiday season!](http://dragoyle.com/cdn/shop/files/1CC778032C013589D6885732FE33BB6F.jpg?v=1701651039&width=1445)
![Bring on the holiday cheer with these fun, festive, and cozy Warm Christmas Dog Sweaters! Keep your pup feeling warm and looking cool this season in a holiday sweater that's as comfy as it is charming. They're the perfect accessory for your fur-baby's holiday season!](http://dragoyle.com/cdn/shop/files/748B7333A47C99BB76D79AF50D1C243D.jpg?v=1701651221&width=1445)
![Bring on the holiday cheer with these fun, festive, and cozy Warm Christmas Dog Sweaters! Keep your pup feeling warm and looking cool this season in a holiday sweater that's as comfy as it is charming. They're the perfect accessory for your fur-baby's holiday season!](http://dragoyle.com/cdn/shop/files/61808806AA9905CB7F39B971D8D42996.jpg?v=1701651189&width=1445)
![Bring on the holiday cheer with these fun, festive, and cozy Warm Christmas Dog Sweaters! Keep your pup feeling warm and looking cool this season in a holiday sweater that's as comfy as it is charming. They're the perfect accessory for your fur-baby's holiday season!](http://dragoyle.com/cdn/shop/files/2FA4803DCE534E17B5CCA17E3AA7AA05.jpg?v=1701651167&width=1445)
![Bring on the holiday cheer with these fun, festive, and cozy Warm Christmas Dog Sweaters! Keep your pup feeling warm and looking cool this season in a holiday sweater that's as comfy as it is charming. They're the perfect accessory for your fur-baby's holiday season!](http://dragoyle.com/cdn/shop/files/957513913F3FC043F4CF3DDE00FC3EDE.jpg?v=1701650249&width=1445)
![Bring on the holiday cheer with these fun, festive, and cozy Warm Christmas Dog Sweaters! Keep your pup feeling warm and looking cool this season in a holiday sweater that's as comfy as it is charming. They're the perfect accessory for your fur-baby's holiday season!](http://dragoyle.com/cdn/shop/files/26EFFDAFD10B326C63066E1D3AEB9198.jpg?v=1701651130&width=1445)
![Bring on the holiday cheer with these fun, festive, and cozy Warm Christmas Dog Sweaters! Keep your pup feeling warm and looking cool this season in a holiday sweater that's as comfy as it is charming. They're the perfect accessory for your fur-baby's holiday season!](http://dragoyle.com/cdn/shop/files/B928DBCA85F3225D84C672BCBA21358F.jpg?v=1701651086&width=1445)
![Bring on the holiday cheer with these fun, festive, and cozy Warm Christmas Dog Sweaters! Keep your pup feeling warm and looking cool this season in a holiday sweater that's as comfy as it is charming. They're the perfect accessory for your fur-baby's holiday season!](http://dragoyle.com/cdn/shop/files/FEC0AD5358793D4FF2EB762D0A66A209.jpg?v=1701651063&width=1445)
![Bring on the holiday cheer with these fun, festive, and cozy Warm Christmas Dog Sweaters! Keep your pup feeling warm and looking cool this season in a holiday sweater that's as comfy as it is charming. They're the perfect accessory for your fur-baby's holiday season!](http://dragoyle.com/cdn/shop/files/8D8DE8B26B81C6BA935606807EF33D59.jpg?v=1701651009&width=1445)
![Bring on the holiday cheer with these fun, festive, and cozy Warm Christmas Dog Sweaters! Keep your pup feeling warm and looking cool this season in a holiday sweater that's as comfy as it is charming. They're the perfect accessory for your fur-baby's holiday season!](http://dragoyle.com/cdn/shop/files/7656311AF31CB00498A2A2E93244050E.jpg?v=1701650975&width=1445)