Hi @LJBabo
Iāve carefully reviewed your question and the situation with your product variations, pricing, and wishlist functionality, and I can see how frustrating this must beāespecially when it works intermittently but fails after refreshing or adding items to the wishlist. Letās break this down and find a solution.
Understanding the Issue
Youāre experiencing two key problems:
- Prices and images not changing when selecting a different variation or color.
- The issue resets after adding to the wishlist and refreshing the page.
Since youāre using GLO Color Swatches and Wishlist Pro, the root cause likely comes from how these apps interact with your Shopify themeās product page layout, particularly because GLO mentions it works best with themes using a product image grid with thumbnails, while your theme has a carousel setup.
Possible Causes & Fixes#### 1. Theme and App Conflict (GLO Swatches & Carousel)
Since GLO Color Swatches is designed for thumbnail grids, but youāre using a carousel, this mismatch can cause JavaScript issues, preventing updates to price and images.
Fix:
- Try switching your themeās product image display to grid thumbnails instead of a carousel (if possible).
- If your theme doesnāt support this switch, you may need custom code to make GLO function properly with the carousel.
2. JavaScript Conflicts (Wishlist Pro + GLO Swatches)
When you add items to the wishlist and refresh, JavaScript might be interfering with how variations reload. Wishlist apps often override product selectors to store selections, but if they donāt refresh properly, it can result in the price/image not updating.
Fix:
- Check if Wishlist Pro has an option to refresh product data after page reload. Some wishlist apps have settings for this.
- If not, you can add a custom JavaScript snippet to manually reload the product selector when the page refreshes:
document.addEventListener(āDOMContentLoadedā, function() {
setTimeout(function(){
var variantDropdown = document.querySelector(ā[name=āidā]ā);
if(variantDropdown) {
variantDropdown.dispatchEvent(new Event(āchangeā));
}
}, 500);
});
This script forces the variant selector to refresh when the page loads, ensuring the correct price and image show.
3. Color Swatches Display Incorrectly (Some Show as White)
If turning off the carousel makes some colors appear blank, the issue is likely with how the swatches are being loaded.
Fix:
- Make sure all product images are correctly linked to their variant colors in your Shopify admin. GLO pulls swatch colors based on the variant images.
- Check if your themeās CSS is affecting how swatches are displayed. You can add this CSS tweak to force swatches to display correctly:
.glo-color-swatches img {
opacity: 1 !important;
visibility: visible !important;
}
If this fixes the blank color swatches, then the issue was CSS overriding them.
Final Thoughts
Your issue is most likely a combination of GLO Color Swatches not working well with carousels and Wishlist Pro affecting how variants update after refresh. Try these solutions step by step, and let me know if you need more specific fixes based on your theme.
If you need any other assistance, feel free to ask, and I will try my best to support you.
Best regards,
Daisy.