Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

181
Vistas
How to convert currency using native Shopify converter?

As the title states, I'm using Shopify. I'm able to convert the currency from USD to another, but the currency it's self is still 20 in value, if it's $20 USD it's 20 in any other currency.

Shopify.formatMoney(2000)

I also found this in my theme.js

Currency.moneyFormats[Shopify.currency.active]["money_format"]

But this returns

{{amount}} USD

I also found this

<!— 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 %}

So would I have to build functionality to convert each currency? I figured this would be built into Shopify?

about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda