Linux 软件免费装

Baxtersweb Currency Switcher – Display Prices in Multiple Currencies

开发者 baxterjones
更新时间 2026年8月26日 20:57
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

currency switcher currency converter woocommerce currency multi currency price display

下载

0.3.3 0.3.4 0.3.6

详情介绍:

Baxtersweb Currency Switcher lets visitors choose a familiar currency and see converted prices across WordPress or WooCommerce. Your original stored prices stay unchanged, and WooCommerce continues to use its configured store currency for cart, checkout, orders and payments. It is designed for multi-currency price display without a full multi-currency checkout system and works with WooCommerce prices, custom fields, shortcodes, templates and dynamic JavaScript values. Display multiple currencies without changing original prices Visitors select a display currency using a frontend currency switcher. The plugin converts supported price displays using the active exchange rate and remembers the visitor's selection in a browser cookie. The plugin does not: WordPress and WooCommerce price sources Choose the workflow that matches your site: Custom price values — convert numeric ACF fields, standard WordPress post meta or supplied values using the shortcode. WooCommerce product prices — automatically convert standard shop and product price displays while WooCommerce continues to transact in the store currency. WooCommerce is optional. ACF is also optional. Visitor currency switcher Place the switcher anywhere shortcodes are supported: [bxtr_currency_switcher] Optional label: [bxtr_currency_switcher label="Currency:"] Display codes, symbols and locally bundled SVG flags, with Basic, Clean and Pill switcher styles that remain easy to override with theme CSS. Exchange rates and price control The plugin retrieves daily European Central Bank (ECB) reference rates and stores the latest successful rate set in WordPress. For each enabled currency, configure its symbol, percentage adjustment, optional manual rate, rounding, decimals and visitor availability. You can also choose the default display currency, switcher format and converted-price format. Convert custom prices with shortcodes Configured field on the current post: [bxtr_currency] Specific field: [bxtr_currency field="itinerary_price"] Specific post: [bxtr_currency id="123"] Supplied numeric value: [bxtr_currency value="2450"] WooCommerce product price in a custom template: [bxtr_currency source="woocommerce" id="123"] Add surrounding text when needed: [bxtr_currency value="2450" prefix="From " suffix=" per person"] JavaScript API for dynamic prices Dynamic controls can use the same selected currency, rates, adjustments, rounding and formatting: BXTRCurrency.convert(5000) BXTRCurrency.format(5000) BXTRCurrency.getCurrency() BXTRCurrency.getConfig() Useful for sliders, calculators and configurators where the underlying value remains in the site's base currency. WooCommerce display behaviour Automatic WooCommerce conversion supports standard simple, sale and variable product price output on product and shop pages. Cart, checkout, orders, payments and account pages remain in the WooCommerce store currency. Some themes and builders bypass WooCommerce's standard price output. In those cases, use the manual WooCommerce shortcode in the custom template. Live Demo View the live demo Documentation View the documentation Support For support, use the public support forum on WordPress.org.

安装:

  1. Install and activate the plugin.
  2. Open Tools > Currency Switcher and choose the price source.
  3. Configure the base currency, visitor currencies and display settings.
  4. Add [bxtr_currency_switcher] for the switcher.
  5. Add [bxtr_currency] for custom values, or enable automatic WooCommerce price replacement.
  6. Test at least two currencies on the frontend.

屏幕截图:

  • WooCommerce products displaying prices in the visitor-selected currency.
  • Currency switching used for prices outside WooCommerce.
  • Currency Switcher setup in the WordPress admin.
  • Tools for checking implementation and updating exchange rates.

常见问题:

Does this change my original prices?

No. The plugin converts supported values for display. The original product price, custom-field value or supplied base value remains unchanged.

Does this change the WooCommerce checkout currency?

No. Cart, checkout, orders, payments and account pages continue to use the WooCommerce store currency.

Is this a full multi-currency checkout plugin?

No. It focuses on display conversion while the site keeps one base price and, when applicable, one WooCommerce transaction currency.

Is WooCommerce required?

No. You can convert direct numeric amounts, ACF fields or standard WordPress custom fields without WooCommerce.

Is ACF required?

No. If ACF is active, the plugin can retrieve values through ACF. Otherwise it can read the configured field from standard WordPress post meta.

Where do exchange rates come from?

The plugin retrieves the European Central Bank's daily reference-rate XML feed and stores the last successful rates in WordPress.

Can I adjust the exchange rate?

Yes. Each currency can use a percentage adjustment, manual rate, rounding increment and chosen number of decimal places. A manual rate replaces the calculated ECB cross-rate for that currency before the configured percentage adjustment is applied.

What happens if the ECB feed is unavailable?

The plugin keeps using the last successfully stored rates. A failed update does not delete the previous rate set.

Why is a converted price not appearing?

Check that the source is numeric, the correct field or post ID is used, the target currency is enabled and valid rates are stored. The Tools tab also shows frontend detection status.

Why does a cached page show the previous currency?

Full-page caching varies between hosts and cache plugins. Exclude affected pages from full-page caching or configure the cache to vary by the bxtr_cdc_currency cookie or display_currency query parameter.

Does the plugin remember the visitor's currency?

Yes. The selected enabled currency code is stored in the bxtr_cdc_currency browser cookie for up to one year.

更新日志:

0.3.6 0.3.5 0.3.4