E-commerce 0.5.1: Shopify sync guards prices against a currency mismatch
E-commerce 0.5.1 makes the Shopify sync check currencies before writing prices, and stops it downloading images the shop already has.
The sync now looks up the connected Shopify store’s currency. When it differs from the shop’s base currency, the sync writes no prices and creates no products or variant price changes; other fields still apply. If the lookup fails, the sync carries on and logs an error. New catalogue items are labelled with the base currency.
Image sync used to check for an already stored image only among the files of the product being synced. Shopify stores often reuse one image across a whole product line, so a test run on 665 products downloaded 582 images again. The check now covers every stored file in the shop. Descriptions of newly created items are also converted from HTML to Markdown, as updates already were.
Full release notes: E-commerce 0.5.1
0.5.1 · 9 September 2026
Added
- Shopify currency guard (per-domain-currency design §7.5). The
Shopify sync now looks up the connected store’s own currency once per
batch and refuses to write
:price/:compare_at_price— or refuses a whole create, or a whole variant/option-modifier sync — when it disagrees with the shop’s base currency; a non-price field on the same change still applies. A failed lookup fails open and logs aterror(never silently disables the guard); a real mismatch logs atwarning. Newly-created catalogue items are labelled with the base currency. (#47) - Shopify image sync reuses files shop-wide, not per product. A live run against 665 products re-downloaded 582 already-stored images because the “already downloaded?” check only looked at files linked to the one product being synced; Shopify shops commonly reuse the exact same image across an entire product line. The lookup now matches any active Storage file in the shop by its download source URL, built once per sync run rather than once per product. (#47)
Fixed
- Shopify
body_htmlis converted to Markdown on the create path too, matching the update path — a freshly created catalogue item no longer prints literal**from unconverted HTML. (#47)
E-commerce 0.5.1. Install or update: {:phoenix_kit_ecommerce, "~> 0.5"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.