Showing 1 - 7 of 7 results
- Previous
- Next
document.addEventListener('DOMContentLoaded', function () { const currencySelector = document.querySelector('[data-currency-selector]'); if (currencySelector) { currencySelector.addEventListener('change', function () { const newCurrency = currencySelector.value; // Assuming you have a Currency object from Shopify's Currency.js Currency.convertAll(Currency.currentCurrency, newCurrency); Currency.currentCurrency = newCurrency; }); } });