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();
});
});
});
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();
});
});
});![Give your special someone a custom necklace made just for them! Our Personalized Name Necklace is the perfect gift for your loved ones and will become a versatile accessory for any occasion. From a heart-warming holiday present, anniversary or birthday gift, or just because, this unique necklace adds a trendy touch to any outfit.](//dragoyle.com/cdn/shop/products/asset_4535_transformation_15280_59c9dda9-fcab-40ab-85b1-41cd219fbeb2.jpg?v=1674779694&width=1445)
![Give your special someone a custom necklace made just for them! Our Personalized Name Necklace is the perfect gift for your loved ones and will become a versatile accessory for any occasion. From a heart-warming holiday present, anniversary or birthday gift, or just because, this unique necklace adds a trendy touch to any outfit.](http://dragoyle.com/cdn/shop/products/asset_4532_transformation_14205_8ceba211-901b-4bf7-b451-fc737d094f02.jpg?v=1674779665&width=1445)
![Give your special someone a custom necklace made just for them! Our Personalized Name Necklace is the perfect gift for your loved ones and will become a versatile accessory for any occasion. From a heart-warming holiday present, anniversary or birthday gift, or just because, this unique necklace adds a trendy touch to any outfit.](http://dragoyle.com/cdn/shop/products/asset_4532_transformation_14594_c43a272c-5ae0-45cf-922e-8d6f46b491f7.jpg?v=1674779668&width=1445)
![Give your special someone a custom necklace made just for them! Our Personalized Name Necklace is the perfect gift for your loved ones and will become a versatile accessory for any occasion. From a heart-warming holiday present, anniversary or birthday gift, or just because, this unique necklace adds a trendy touch to any outfit.](http://dragoyle.com/cdn/shop/products/asset_4532_transformation_14654_4e279e4e-4ba9-4d04-a33d-54fd611d0cf6.jpg?v=1674779670&width=1445)
![Give your special someone a custom necklace made just for them! Our Personalized Name Necklace is the perfect gift for your loved ones and will become a versatile accessory for any occasion. From a heart-warming holiday present, anniversary or birthday gift, or just because, this unique necklace adds a trendy touch to any outfit.](http://dragoyle.com/cdn/shop/products/asset_4533_transformation_15212_7a2db9f5-ffbc-4c81-9bb4-a5638801001b.jpg?v=1674779673&width=1445)
![Give your special someone a custom necklace made just for them! Our Personalized Name Necklace is the perfect gift for your loved ones and will become a versatile accessory for any occasion. From a heart-warming holiday present, anniversary or birthday gift, or just because, this unique necklace adds a trendy touch to any outfit.](http://dragoyle.com/cdn/shop/products/asset_4533_transformation_15221_e689848f-2efe-4419-b4b4-f800e5ef9517.jpg?v=1674779675&width=1445)
![Give your special someone a custom necklace made just for them! Our Personalized Name Necklace is the perfect gift for your loved ones and will become a versatile accessory for any occasion. From a heart-warming holiday present, anniversary or birthday gift, or just because, this unique necklace adds a trendy touch to any outfit.](http://dragoyle.com/cdn/shop/products/asset_4533_transformation_15222_e99df2bb-37ba-4dc7-85f3-644090c153d9.jpg?v=1674779677&width=1445)
![Give your special someone a custom necklace made just for them! Our Personalized Name Necklace is the perfect gift for your loved ones and will become a versatile accessory for any occasion. From a heart-warming holiday present, anniversary or birthday gift, or just because, this unique necklace adds a trendy touch to any outfit.](http://dragoyle.com/cdn/shop/products/asset_4533_transformation_15285_44f9a1ae-845c-401f-93b9-d53926fae7cd.jpg?v=1674779679&width=1445)
![Give your special someone a custom necklace made just for them! Our Personalized Name Necklace is the perfect gift for your loved ones and will become a versatile accessory for any occasion. From a heart-warming holiday present, anniversary or birthday gift, or just because, this unique necklace adds a trendy touch to any outfit.](http://dragoyle.com/cdn/shop/products/asset_4534_transformation_14595_74bc81eb-df9d-41ab-a9e8-a5b1d4ee2c8c.jpg?v=1674779681&width=1445)
![Give your special someone a custom necklace made just for them! Our Personalized Name Necklace is the perfect gift for your loved ones and will become a versatile accessory for any occasion. From a heart-warming holiday present, anniversary or birthday gift, or just because, this unique necklace adds a trendy touch to any outfit.](http://dragoyle.com/cdn/shop/products/asset_4534_transformation_15200_c293341f-414b-4f11-a3f5-757322115a1c.jpg?v=1674779684&width=1445)
![Give your special someone a custom necklace made just for them! Our Personalized Name Necklace is the perfect gift for your loved ones and will become a versatile accessory for any occasion. From a heart-warming holiday present, anniversary or birthday gift, or just because, this unique necklace adds a trendy touch to any outfit.](http://dragoyle.com/cdn/shop/products/asset_4534_transformation_14634_5ffb5b20-2228-4b90-904d-cd5fd58df207.jpg?v=1674779687&width=1445)
![Give your special someone a custom necklace made just for them! Our Personalized Name Necklace is the perfect gift for your loved ones and will become a versatile accessory for any occasion. From a heart-warming holiday present, anniversary or birthday gift, or just because, this unique necklace adds a trendy touch to any outfit.](http://dragoyle.com/cdn/shop/products/asset_4534_transformation_14590_a0eb09f5-b1c9-4526-a045-eb2f55c4c0e3.jpg?v=1674779690&width=1445)
![Give your special someone a custom necklace made just for them! Our Personalized Name Necklace is the perfect gift for your loved ones and will become a versatile accessory for any occasion. From a heart-warming holiday present, anniversary or birthday gift, or just because, this unique necklace adds a trendy touch to any outfit.](http://dragoyle.com/cdn/shop/products/asset_4535_transformation_15214_e784c8e3-5193-445e-bbe9-d48df00021e1.jpg?v=1674779692&width=1445)
![Give your special someone a custom necklace made just for them! Our Personalized Name Necklace is the perfect gift for your loved ones and will become a versatile accessory for any occasion. From a heart-warming holiday present, anniversary or birthday gift, or just because, this unique necklace adds a trendy touch to any outfit.](http://dragoyle.com/cdn/shop/products/asset_4535_transformation_15280_59c9dda9-fcab-40ab-85b1-41cd219fbeb2.jpg?v=1674779694&width=1445)