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();
});
});
});![Upgrade your outdoor adventures with our Metal Outdoor Threading Tent Stakes! Made from high-quality metal, these stakes provide reliable stability for your tent. No more worrying about your tent collapsing in windy conditions. Focus on creating lasting memories instead!](//dragoyle.com/cdn/shop/files/51173414-d9fa-4493-b9f5-4d2120403355.jpg?v=1718118009&width=1445)
![Upgrade your outdoor adventures with our Metal Outdoor Threading Tent Stakes! Made from high-quality metal, these stakes provide reliable stability for your tent. No more worrying about your tent collapsing in windy conditions. Focus on creating lasting memories instead!](http://dragoyle.com/cdn/shop/files/b456b470-46e8-4ab7-b1cf-83e2fad0fcfe.jpg?v=1718117990&width=1445)
![Upgrade your outdoor adventures with our Metal Outdoor Threading Tent Stakes! Made from high-quality metal, these stakes provide reliable stability for your tent. No more worrying about your tent collapsing in windy conditions. Focus on creating lasting memories instead!](http://dragoyle.com/cdn/shop/files/9af2c49b-d915-444f-98b9-a83a58a83b95.jpg?v=1718117985&width=1445)
![Upgrade your outdoor adventures with our Metal Outdoor Threading Tent Stakes! Made from high-quality metal, these stakes provide reliable stability for your tent. No more worrying about your tent collapsing in windy conditions. Focus on creating lasting memories instead!](http://dragoyle.com/cdn/shop/files/c316761c-913f-4bef-8d63-360386f9a053.jpg?v=1718117988&width=1445)
![Upgrade your outdoor adventures with our Metal Outdoor Threading Tent Stakes! Made from high-quality metal, these stakes provide reliable stability for your tent. No more worrying about your tent collapsing in windy conditions. Focus on creating lasting memories instead!](http://dragoyle.com/cdn/shop/files/54a8af22-7fad-4c17-8de2-d1149863b63e.jpg?v=1718117993&width=1445)
![Upgrade your outdoor adventures with our Metal Outdoor Threading Tent Stakes! Made from high-quality metal, these stakes provide reliable stability for your tent. No more worrying about your tent collapsing in windy conditions. Focus on creating lasting memories instead!](http://dragoyle.com/cdn/shop/files/9aee5dbc-dcbf-4e2a-ac18-e429c69c0fc7.jpg?v=1718117996&width=1445)
![Upgrade your outdoor adventures with our Metal Outdoor Threading Tent Stakes! Made from high-quality metal, these stakes provide reliable stability for your tent. No more worrying about your tent collapsing in windy conditions. Focus on creating lasting memories instead!](http://dragoyle.com/cdn/shop/files/56b51711-65c0-4ac7-a3eb-4ac4fa869204.jpg?v=1718117998&width=1445)
![Upgrade your outdoor adventures with our Metal Outdoor Threading Tent Stakes! Made from high-quality metal, these stakes provide reliable stability for your tent. No more worrying about your tent collapsing in windy conditions. Focus on creating lasting memories instead!](http://dragoyle.com/cdn/shop/files/f8c89e93-6a3c-422e-b973-e2e20e779fb2.jpg?v=1718118001&width=1445)
![Upgrade your outdoor adventures with our Metal Outdoor Threading Tent Stakes! Made from high-quality metal, these stakes provide reliable stability for your tent. No more worrying about your tent collapsing in windy conditions. Focus on creating lasting memories instead!](http://dragoyle.com/cdn/shop/files/d2e6e5f6-a193-476e-9eb6-3bb7aac91c7c.jpg?v=1718118003&width=1445)
![Upgrade your outdoor adventures with our Metal Outdoor Threading Tent Stakes! Made from high-quality metal, these stakes provide reliable stability for your tent. No more worrying about your tent collapsing in windy conditions. Focus on creating lasting memories instead!](http://dragoyle.com/cdn/shop/files/46318a8e-2318-4138-942c-14a1145b5b19.jpg?v=1718118006&width=1445)
![Upgrade your outdoor adventures with our Metal Outdoor Threading Tent Stakes! Made from high-quality metal, these stakes provide reliable stability for your tent. No more worrying about your tent collapsing in windy conditions. Focus on creating lasting memories instead!](http://dragoyle.com/cdn/shop/files/51173414-d9fa-4493-b9f5-4d2120403355.jpg?v=1718118009&width=1445)