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();
});
});
});
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();
});
});
});![These black and gray felt plant grow bags are perfect for your vegetables, flowers or leafy plants. With perfect ventilation, easy to move and eco-friendly bags these grow bags are perfect to help plants grow efficiently and effectively.](//dragoyle.com/cdn/shop/products/H2c2720dae0224aa88c2e5091b0034111i.jpg?v=1657065447&width=1445)
![These black and gray felt plant grow bags are perfect for your vegetables, flowers or leafy plants. With perfect ventilation, easy to move and eco-friendly bags these grow bags are perfect to help plants grow efficiently and effectively.](http://dragoyle.com/cdn/shop/products/Hd1e1c9efb451485683e5d28c282be778W.jpg?v=1657065447&width=1445)
![These black and gray felt plant grow bags are perfect for your vegetables, flowers or leafy plants. With perfect ventilation, easy to move and eco-friendly bags these grow bags are perfect to help plants grow efficiently and effectively.](http://dragoyle.com/cdn/shop/products/H77619106bd964bb289d472749f2085250.jpg?v=1657062657&width=1445)
![These black and gray felt plant grow bags are perfect for your vegetables, flowers or leafy plants. With perfect ventilation, easy to move and eco-friendly bags these grow bags are perfect to help plants grow efficiently and effectively.](http://dragoyle.com/cdn/shop/products/He998cad308ef4b07b6587f30af2bb630U.jpg?v=1657065447&width=1445)
![These black and gray felt plant grow bags are perfect for your vegetables, flowers or leafy plants. With perfect ventilation, easy to move and eco-friendly bags these grow bags are perfect to help plants grow efficiently and effectively.](http://dragoyle.com/cdn/shop/products/H11185f8e70884b6492ef744530cde5aeY.jpg?v=1657065447&width=1445)
![These black and gray felt plant grow bags are perfect for your vegetables, flowers or leafy plants. With perfect ventilation, easy to move and eco-friendly bags these grow bags are perfect to help plants grow efficiently and effectively.](http://dragoyle.com/cdn/shop/products/H1c15fd6249c5467a8a2ba8da020e6860I.jpg?v=1657065447&width=1445)
![These black and gray felt plant grow bags are perfect for your vegetables, flowers or leafy plants. With perfect ventilation, easy to move and eco-friendly bags these grow bags are perfect to help plants grow efficiently and effectively.](http://dragoyle.com/cdn/shop/products/H23ee74c896394d7299417d9b576dc78fm.jpg?v=1657065447&width=1445)
![These black and gray felt plant grow bags are perfect for your vegetables, flowers or leafy plants. With perfect ventilation, easy to move and eco-friendly bags these grow bags are perfect to help plants grow efficiently and effectively.](http://dragoyle.com/cdn/shop/products/H6d5ce1a7748749aa9c604901e10aaaaf7.jpg?v=1657065447&width=1445)
![These black and gray felt plant grow bags are perfect for your vegetables, flowers or leafy plants. With perfect ventilation, easy to move and eco-friendly bags these grow bags are perfect to help plants grow efficiently and effectively.](http://dragoyle.com/cdn/shop/products/H776ae1b3de934bbab7b28c801ff63c34C.jpg?v=1657065447&width=1445)
![These black and gray felt plant grow bags are perfect for your vegetables, flowers or leafy plants. With perfect ventilation, easy to move and eco-friendly bags these grow bags are perfect to help plants grow efficiently and effectively.](http://dragoyle.com/cdn/shop/products/H8d1367d7a4a24dcfaba5530e83c594f01.jpg?v=1657065447&width=1445)
![These black and gray felt plant grow bags are perfect for your vegetables, flowers or leafy plants. With perfect ventilation, easy to move and eco-friendly bags these grow bags are perfect to help plants grow efficiently and effectively.](http://dragoyle.com/cdn/shop/products/Hf1d228977c394fcaa3277556c6e7affeJ.jpg?v=1657065447&width=1445)
![These black and gray felt plant grow bags are perfect for your vegetables, flowers or leafy plants. With perfect ventilation, easy to move and eco-friendly bags these grow bags are perfect to help plants grow efficiently and effectively.](http://dragoyle.com/cdn/shop/products/Ha8baa6061f414ee986044ce964db334be.jpg?v=1657065447&width=1445)
![These black and gray felt plant grow bags are perfect for your vegetables, flowers or leafy plants. With perfect ventilation, easy to move and eco-friendly bags these grow bags are perfect to help plants grow efficiently and effectively.](http://dragoyle.com/cdn/shop/products/Hbf2b3a79ffaf4093aad6e1fad4dbf711V.jpg?v=1657065447&width=1445)
![These black and gray felt plant grow bags are perfect for your vegetables, flowers or leafy plants. With perfect ventilation, easy to move and eco-friendly bags these grow bags are perfect to help plants grow efficiently and effectively.](http://dragoyle.com/cdn/shop/products/Hfce28f3b5c3b4972812278c965180970l.jpg?v=1657065447&width=1445)
![These black and gray felt plant grow bags are perfect for your vegetables, flowers or leafy plants. With perfect ventilation, easy to move and eco-friendly bags these grow bags are perfect to help plants grow efficiently and effectively.](http://dragoyle.com/cdn/shop/products/H8f140699d1b34fe699ff104b335a9444E.jpg?v=1657065447&width=1445)
![These black and gray felt plant grow bags are perfect for your vegetables, flowers or leafy plants. With perfect ventilation, easy to move and eco-friendly bags these grow bags are perfect to help plants grow efficiently and effectively.](http://dragoyle.com/cdn/shop/products/H2c2720dae0224aa88c2e5091b0034111i.jpg?v=1657065447&width=1445)