Como dice el título, estoy usando Shopify. Puedo convertir la moneda de USD a otra, pero la moneda en sí misma todavía tiene un valor de 20, si son $ 20 USD, son 20 en cualquier otra moneda.
Shopify.formatMoney(2000)También encontré esto en mi theme.js
Currency.moneyFormats[Shopify.currency.active]["money_format"]pero esto vuelve
{{amount}} USDtambien encontre esto
<!— layout/theme.liquid —> {% if template contains 'product' %} <!— … Your stuff … —> {{ "/services/javascripts/currencies.js" | script_tag }} <script> // Set the current price var price = {{ current_variant.price }} // Returns the current (approximate) price in Euros function getEuros() { return (Currency.convert(price, 'GBP', 'EUR')/100).toFixed(2); } // looks for an element with an ID of "euroPrice" and replaces the content with a sring document.getElementByID('euroPrice').html = '€' + getEuros() + ' EUR' </script> {% endif %}Entonces, ¿tendría que crear funcionalidad para convertir cada moneda? Pensé que esto estaría integrado en Shopify.