Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计提醒

multi-currency多币种

Agent Skill

multi-currency 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

524

周安装

21

GitHub Stars

19

下载量

170
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:multi-currency(多币种)
来源仓库:https://github.com/finsilabs/awesome-ecommerce-skills
仓库路径:skills/multi-currency
安装命令:
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill multi-currency
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill multi-currency

简介

multi-currency 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理时使用。
  • 通过 GitHub API 获取仓库元数据、分支信息和协作动态,支持多 Agent 环境下的协同开发场景。
  • 安装命令为 npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill multi-currency。
  • 使用前需确认权限范围、维护状态,注意可能触发联网、命令执行或文件读写操作。

SKILL.md

Multi-Currency

Overview

Multi-currency support lets international shoppers browse and pay in their local currency instead of your store's base currency. On Shopify, WooCommerce, and BigCommerce, this is a configuration task — each platform has built-in or app-based solutions that handle exchange rates, price display, and payment settlement automatically. Custom code is only required for headless storefronts.

When to Use This Skill

  • When expanding to international markets where shoppers expect prices in their local currency
  • When analytics show significant traffic from non-base-currency countries with low conversion rates
  • When implementing a currency selector in the site header
  • When integrating Stripe or PayPal multi-currency settlement

Core Instructions

Step 1: Determine your platform and multi-currency approach

PlatformRecommended ApproachSettlement Currency
Shopify (Shopify Payments)Enable Markets and multi-currency in Shopify AdminStripe/Shopify settles in your payout currency; conversion is automatic
Shopify + non-Shopify gatewayInstall BEST Currency Converter or MLV Auto Currency Switcher appDisplay-only conversion; payment taken in base currency
WooCommerceInstall WooCommerce Payments (for native multi-currency) or WPML + WooCommerce MultilingualWooCommerce Payments settles in local currency; other gateways may convert
BigCommerceEnable Multi-Currency in Store Settings; use Stripe for multi-currency settlementBigCommerce handles display; Stripe settles in customer's currency
Custom / HeadlessUse Stripe's multi-currency payment intents; fetch exchange rates from OpenExchangeRatesStripe accepts charges in any currency and settles in your configured currency

Step 2: Set up multi-currency on your platform


Shopify

Shopify's Markets feature is the recommended way to implement multi-currency:

  1. Go to Settings → Markets
  2. Click Add market for each region (e.g., Europe, UK, Australia)
  3. Under each market, go to Currencies and enable the local currency (EUR, GBP, AUD)
  4. Shopify automatically converts prices using daily exchange rates
  5. To set manual price overrides for specific currencies (e.g., set EUR price to a fixed €99 instead of converting $99.00), go to the market and click Manage to set currency-specific prices per product

Exchange rate handling:

  • By default, Shopify uses automatic exchange rates that update daily
  • To add a margin to the exchange rate (to cover your FX costs), go to Settings → Markets → [Market] → Currencies and set a currency conversion rate adjustment (e.g., +2%)

Currency selector in storefront: Shopify themes from OS 2.0 (Dawn, Crave, etc.) include a built-in currency/country selector. In Online Store → Themes → Customize, add the Header → Country/Region selector section.

Payment settlement: When using Shopify Payments, charges are made in the customer's currency. The payout to your bank account is in your default payout currency with Shopify handling the conversion. For Shopify Plus, you can configure multi-currency payouts with separate bank accounts per currency.

WooCommerce

Option A: WooCommerce Payments (native multi-currency)

  1. Install and activate WooCommerce Payments (Stripe-powered)
  2. Go to WooCommerce → Settings → WooCommerce Payments → Multi-currency
  3. Click Add currencies and select the currencies you want to offer
  4. For each currency, configure: exchange rate source (automatic from WooCommerce's daily feed or manual), rounding (e.g., round to.99), and whether to charge a conversion rate markup
  5. Enable Currency switcher widget: go to Appearance → Widgets and add the Currency Switcher widget to your header or sidebar

Option B: WooCommerce Multilingual + WPML

  1. Install WPML and WooCommerce Multilingual & Multicurrency
  2. Go to WPML → WooCommerce Multilingual → Currencies and add currencies
  3. For each currency, set the exchange rate (manual or via automatic update) and rounding rules
  4. The product price for each currency can be set manually per product or auto-converted

Option C: Currency Switcher for WooCommerce (free plugin)

For display-only currency switching (payment taken in base currency), install Currency Switcher for WooCommerce by Aelia. This converts displayed prices but settles in your base currency — simpler but requires customers to understand they will be charged in USD (or your base currency).

BigCommerce

  1. Go to Settings → Store Setup → Currencies
  2. Click Add a currency and select from the dropdown
  3. For each currency, configure:

- Exchange rate: manual or auto-updated via BigCommerce's rate feed - Rounding: round to nearest 0.99, 0.95, or whole number - Display settings: where to show the currency selector

  1. Set one currency as Default — this is used in reporting and as the fallback
  2. Enable the currency selector: go to Storefront → My Themes → Customize and add the currency selector component to your header

Payment settlement with BigCommerce: Configure your payment gateway to accept charges in multiple currencies. Stripe (configured under Settings → Payments → Stripe) supports accepting payments in the customer's currency and settling in yours automatically.


Custom / Headless

Exchange rate fetching:

// Fetch and cache daily exchange rates from OpenExchangeRates (free tier available)
async function getExchangeRates() {
  const cached = await redis.get('exchange_rates');
  if (cached) return JSON.parse(cached);

  const res = await fetch(
    `https://openexchangerates.org/api/latest.json?app_id=${process.env.OER_API_KEY}&base=USD&symbols=EUR,GBP,CAD,AUD,JPY`
  );
  const { rates } = await res.json();

  // Cache for 24 hours — daily rates are sufficient for display prices
  await redis.setex('exchange_rates', 86400, JSON.stringify(rates));
  return rates;
}

async function convertPrice(amountUSD, targetCurrency) {
  if (targetCurrency === 'USD') return amountUSD;
  const rates = await getExchangeRates();
  return amountUSD * rates[targetCurrency];
}

Stripe multi-currency charge:

// Charge in customer's currency — Stripe handles conversion and settles in your payout currency
const paymentIntent = await stripe.paymentIntents.create({
  amount: Math.round(displayPrice * 100), // Amount in smallest unit (EUR cents, JPY yen)
  currency: customerCurrency.toLowerCase(), // 'eur', 'gbp', 'jpy'
  automatic_payment_methods: { enabled: true },
  metadata: { order_id: orderId, base_currency_amount: String(basePriceUSD) },
});
// Note: for JPY and other zero-decimal currencies, multiply by 1 (not 100)
const jpy_amount = Math.round(jpyPrice); // ¥3,000 → 3000, not 300000

Currency detection from browser:

// Detect preferred currency from browser language or IP country header
function detectCurrency(req) {
  // Check explicit user preference first
  if (req.cookies.preferred_currency) return req.cookies.preferred_currency;

  // Cloudflare and similar CDNs provide the visitor's country
  const country = req.headers['cf-ipcountry'];
  const countryToCurrency = { US:'USD', GB:'GBP', DE:'EUR', FR:'EUR', AU:'AUD', JP:'JPY', CA:'CAD' };
  return countryToCurrency[country] ?? 'USD';
}

Step 3: Verify correct behavior

Test these scenarios before going live:

  1. Correct price display: visit from a VPN with a UK IP — prices should show in GBP
  2. JPY zero-decimal: Japanese prices should show as whole numbers (¥3,000 not ¥30.00)
  3. Payment amount matches displayed price: the Stripe charge amount must match what was shown
  4. Currency selector persists: switching currency should persist across page navigation
  5. Cart totals in correct currency: cart and checkout should use the selected currency

Best Practices

  • Use platform-native multi-currency — Shopify Markets, WooCommerce Payments, and BigCommerce's built-in feature handle exchange rates, rounding, and display correctly
  • Refresh exchange rates daily — for display prices, daily rates are sufficient; do not fetch rates on every page load
  • Store order amounts in your base currency — always record prices in your base currency in the database for consistent reporting; store the display currency and rate used for reference
  • Apply rounding rules specific to each market — €9.99 looks natural; €9.847 does not; configure rounding in your platform's currency settings
  • Test JPY specifically — JPY has zero decimal places; a common bug is displaying ¥29.99 instead of ¥3,000; verify by setting your test currency to JPY

Common Pitfalls

ProblemSolution
Prices flash to base currency on page loadRead the user's currency preference server-side (from a cookie) and render with the correct currency on first load; avoid client-side-only currency switching
JPY amount passed to Stripe as centsFor zero-decimal currencies (JPY, KRW), pass the whole amount — ¥3,000 → amount: 3000, not amount: 300000
Payment amount does not match displayed priceRecalculate the payment amount server-side using the stored exchange rate at checkout time; never trust client-submitted amounts
Exchange rate missing for a currencyDefault to base currency or show an error; do not silently use a zero rate which would make products free
Shopify currency showing but not accepted at checkoutCurrency must be enabled under Settings → Payments → Supported currencies in addition to Settings → Markets; both settings must be configured

Related Skills

  • @checkout-flow-optimization
  • @tax-calculation
  • @stripe-integration
  • @paypal-integration

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.04%
按下载量换算61

Claude

27.11%
按下载量换算46

Cursor

18.34%
按下载量换算31

Gemini CLI

9.21%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills