DEV Community

ApogeoAPI
ApogeoAPI

Posted on • Originally published at apogeoapi.com

Shopify Currency Widget with Live Exchange Rates (No App Required)

Shopify's app store has dozens of "currency converter" apps — most cost $5-30/month and lock you into the vendor's theme. If your store doesn't have huge volume, the math doesn't work.

This is the no-app version: ~50 lines of JavaScript pasted into your theme's theme.liquid, using ApogeoAPI for the live exchange rates. Works on any Shopify plan including Lite, costs $0 for stores under ~5K daily visitors.

How it works

  1. JavaScript runs on every page load.
  2. Fetches the visitor's country (cached at edge).
  3. Fetches the live USD->X exchange rate.
  4. Finds all elements marked with data-shopify-price and overlays the converted amount.
  5. Original price (in shop currency) stays in the DOM but is visually replaced. Cart still uses the canonical Shopify currency for checkout.

This is display-only. Shopify still charges in your shop's base currency. Visitors see comfortable numbers; Shopify accounting stays clean.

The script (paste into theme.liquid before

Top comments (0)