Dragoyle LLC
Gift Wrap with Personalized Message
Gift Wrap with Personalized Message
Regular price
$9.95 USD
Regular price
Sale price
$9.95 USD
Unit price
per
We'll gift wrap your item by hand & you can add a personalized note!
View full details
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();
});
});
});
-
Enjoy a 30 Hassle-Free Return Policy
-
Your personal information is safe and secure
-
Contact us for any questions or concerns