跳到内容

desraj Currency Switcher for WooCommerce

v1.0.0

Desraj Kumawat · 2026年7月23日 上架

Auto-detect a visitor's country from their IP address and switch the WooCommerce display currency automatically, with a manual override widget.

正在使用
10 以下
评分
暂无
累计下载
296
最近更新
2026年7月23日
需要 WordPress 5.8+已测试到 7.0.9PHP 7.4+

贡献者

This plugin detects a visitor’s country from their IP address and automatically switches the WooCommerce display currency. Supports the top 5 currencies:

  • India INR (Rs)
  • USA USD ($)
  • Australia AUD (A$)
  • Canada CAD (C$)
  • Europe EUR (€)

Visitors can also manually override the auto-detected currency using a floating switcher widget or the [dcswc_switcher] shortcode.

This plugin is an independent third-party integration and is not affiliated with or endorsed by WooCommerce or Automattic.

Features

  • Auto IP-based country detection
  • Cloudflare-compatible (reads the CF-Connecting-IP header)
  • Floating currency switcher widget, with manual override
  • [dcswc_switcher] shortcode for an inline dropdown
  • Admin settings page under WooCommerce with per-currency exchange rates
  • Transient caching of IP lookups (12 hours per IP) to minimize external requests
  • INR displayed as “Rs” instead of the ₹ symbol

External services

This plugin uses the free ip-api.com service to look up a visitor’s country from their IP address, in order to select the correct display currency.

  • What is sent: the visitor’s IP address. Note: ip-api.com’s free tier only supports plain HTTP for this lookup (their paid plan offers an HTTPS endpoint).
  • When: on a visitor’s first page view, when no cached result exists for that IP (results are cached for 12 hours per IP using WordPress transients, so the same visitor is not looked up repeatedly).
  • Why: ip-api.com is a free geolocation API and does not require an account or API key.
  • Third-party terms: ip-api.com Terms of Service and Privacy Policy.

If you require full control over data sent to third parties (e.g. for GDPR compliance), please review ip-api.com’s terms before activating this plugin on a site with EU visitors.

Shortcode

Place the currency switcher dropdown anywhere:

[dcswc_switcher]

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums