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();
});
});
});![This stylish necklace features a cursive name design suspended on an 16”-18” adjustable cable chain, making it both personal and beautiful! Your necklace will be custom made upon ordering in the name or word of your choice, with up to 10 characters. It's a gift that they will surely want to keep close to their heart forever!](//dragoyle.com/cdn/shop/products/asset_4535_transformation_15280_8c55e7c2-1140-47db-bc5b-e47c8e59bf83.jpg?v=1674778235&width=1445)
![This stylish necklace features a cursive name design suspended on an 16”-18” adjustable cable chain, making it both personal and beautiful! Your necklace will be custom made upon ordering in the name or word of your choice, with up to 10 characters. It's a gift that they will surely want to keep close to their heart forever!](http://dragoyle.com/cdn/shop/products/asset_4532_transformation_14205_d7b8cb6a-3d37-4413-b416-b4f4ac5b18f5.jpg?v=1674778204&width=1445)
![This stylish necklace features a cursive name design suspended on an 16”-18” adjustable cable chain, making it both personal and beautiful! Your necklace will be custom made upon ordering in the name or word of your choice, with up to 10 characters. It's a gift that they will surely want to keep close to their heart forever!](http://dragoyle.com/cdn/shop/products/asset_4532_transformation_14594_b6381244-29b2-43b8-a4bb-66980a9e6942.jpg?v=1674778207&width=1445)
![This stylish necklace features a cursive name design suspended on an 16”-18” adjustable cable chain, making it both personal and beautiful! Your necklace will be custom made upon ordering in the name or word of your choice, with up to 10 characters. It's a gift that they will surely want to keep close to their heart forever!](http://dragoyle.com/cdn/shop/products/asset_4532_transformation_14654_bbf043fe-400c-49b6-abf1-d91d2c623305.jpg?v=1674778210&width=1445)
![This stylish necklace features a cursive name design suspended on an 16”-18” adjustable cable chain, making it both personal and beautiful! Your necklace will be custom made upon ordering in the name or word of your choice, with up to 10 characters. It's a gift that they will surely want to keep close to their heart forever!](http://dragoyle.com/cdn/shop/products/asset_4533_transformation_15212_b01dafb7-7e60-45ff-b97a-c6a66fae6b0b.jpg?v=1674778213&width=1445)
![This stylish necklace features a cursive name design suspended on an 16”-18” adjustable cable chain, making it both personal and beautiful! Your necklace will be custom made upon ordering in the name or word of your choice, with up to 10 characters. It's a gift that they will surely want to keep close to their heart forever!](http://dragoyle.com/cdn/shop/products/asset_4533_transformation_15221_b4a52905-2bda-4f57-a78e-4d85f1e8fd25.jpg?v=1674778215&width=1445)
![This stylish necklace features a cursive name design suspended on an 16”-18” adjustable cable chain, making it both personal and beautiful! Your necklace will be custom made upon ordering in the name or word of your choice, with up to 10 characters. It's a gift that they will surely want to keep close to their heart forever!](http://dragoyle.com/cdn/shop/products/asset_4533_transformation_15222_270ae1fd-43a5-41b0-87c4-83b05c9f06fc.jpg?v=1674778217&width=1445)
![This stylish necklace features a cursive name design suspended on an 16”-18” adjustable cable chain, making it both personal and beautiful! Your necklace will be custom made upon ordering in the name or word of your choice, with up to 10 characters. It's a gift that they will surely want to keep close to their heart forever!](http://dragoyle.com/cdn/shop/products/asset_4533_transformation_15285_a2186d9c-91fb-4cbb-9e52-7e6affa48f3a.jpg?v=1674778220&width=1445)
![This stylish necklace features a cursive name design suspended on an 16”-18” adjustable cable chain, making it both personal and beautiful! Your necklace will be custom made upon ordering in the name or word of your choice, with up to 10 characters. It's a gift that they will surely want to keep close to their heart forever!](http://dragoyle.com/cdn/shop/products/asset_4534_transformation_14595_f75aa103-c9cb-4c9c-932c-e9db7f6bea7b.jpg?v=1674778223&width=1445)
![This stylish necklace features a cursive name design suspended on an 16”-18” adjustable cable chain, making it both personal and beautiful! Your necklace will be custom made upon ordering in the name or word of your choice, with up to 10 characters. It's a gift that they will surely want to keep close to their heart forever!](http://dragoyle.com/cdn/shop/products/asset_4534_transformation_15200_37bbdc03-b20b-44c3-9f1d-271d027ef041.jpg?v=1674778225&width=1445)
![This stylish necklace features a cursive name design suspended on an 16”-18” adjustable cable chain, making it both personal and beautiful! Your necklace will be custom made upon ordering in the name or word of your choice, with up to 10 characters. It's a gift that they will surely want to keep close to their heart forever!](http://dragoyle.com/cdn/shop/products/asset_4534_transformation_14634_0125fbc4-aab5-4f5a-b779-d6c56f8ab40b.jpg?v=1674778228&width=1445)
![This stylish necklace features a cursive name design suspended on an 16”-18” adjustable cable chain, making it both personal and beautiful! Your necklace will be custom made upon ordering in the name or word of your choice, with up to 10 characters. It's a gift that they will surely want to keep close to their heart forever!](http://dragoyle.com/cdn/shop/products/asset_4534_transformation_14590_006ffd57-9ae8-417a-a47d-39f794df9e83.jpg?v=1674778231&width=1445)
![This stylish necklace features a cursive name design suspended on an 16”-18” adjustable cable chain, making it both personal and beautiful! Your necklace will be custom made upon ordering in the name or word of your choice, with up to 10 characters. It's a gift that they will surely want to keep close to their heart forever!](http://dragoyle.com/cdn/shop/products/asset_4535_transformation_15214_ab68dedd-e984-4675-b7bc-b8d9a9a1914e.jpg?v=1674778233&width=1445)
![This stylish necklace features a cursive name design suspended on an 16”-18” adjustable cable chain, making it both personal and beautiful! Your necklace will be custom made upon ordering in the name or word of your choice, with up to 10 characters. It's a gift that they will surely want to keep close to their heart forever!](http://dragoyle.com/cdn/shop/products/asset_4535_transformation_15280_8c55e7c2-1140-47db-bc5b-e47c8e59bf83.jpg?v=1674778235&width=1445)