| 开发者 |
propluginslab
heyvicky codewoogeek |
|---|---|
| 更新时间 | 2026年11月4日 03:24 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[divisero_switcher], classic widget, a Currency switcher item you place anywhere in Appearance, Menus, floating switcher and product page switcher, in four styles (dropdown, buttons, flags, compact), with a live preview. It works without JavaScript too.[divisero_convert amount="25"] shows an amount in the shopper's currency, [divisero_rates] a table of your exchange rates, and [divisero_converter] a small currency converter for shoppers.No. The free plugin supports every ISO 4217 currency and your own custom currencies, with no limit.
Yes, by default. The order is created in the shopper's currency and the gateway is asked to charge in it. If you prefer, choose "Shoppers pay in your store currency" under Checkout and payments: prices are then shown as approximate and the order is charged in your store currency.
Divisero hides that payment method for that currency. If you set a fallback currency, the method stays visible and the shopper is told before paying that the order will be charged in the fallback currency. You can override what Divisero knows about any gateway under Checkout and payments.
Yes. Divisero detects the cache and picks the right mode by itself. For WP Rocket, W3 Total Cache and WP Super Cache, one button on the Cache tab (it says exactly what changes) makes the cache keep a copy per currency. For every other cache, CDN or host cache, prices are corrected in the browser right after the page loads, with no cache rule to add. Cart, checkout and My Account are never cached by these tools.
From the MaxMind database you set up in WooCommerce, Settings, Integration, or from the country header your CDN adds, such as Cloudflare's CF-IPCountry. No geolocation service is contacted.
Yes. Under Divisero, Tools, import the currencies, rates and country rules of FOX Currency Switcher (WOOCS), CURCY, Aelia, YayCurrency, WPML Multicurrency or Price Based on Country. Then deactivate the other plugin yourself; Divisero never switches plugins off.
See the compatibility list on the Divisero product page. It lists only what was actually tested, with versions.
Yes. Functions: divisero_get_active_currency(), divisero_get_default_currency(), divisero_get_base_currency(), divisero_get_enabled_currencies(), divisero_convert( $amount, $to, $from ), divisero_format_price( $amount, $currency ), divisero_get_rate( $currency ), divisero_switcher( $args ) and divisero_mark_product_converted( $product ). Filters include divisero_active_currency, divisero_currency_resolvers, divisero_convert_amount, divisero_rounded_amount, divisero_skip_conversion, divisero_product_fixed_price, divisero_gateway_supported_currencies, divisero_currency_from_country, divisero_cache_mode and divisero_switcher_html. Actions include divisero_currency_changed, divisero_rates_updated and divisero_order_currency_saved. WP-CLI: wp divisero currency list|add|update|delete, wp divisero rates list|update|set, wp divisero health and wp divisero import --from=.
The human readable sources are in assets/src, next to package.json, package-lock.json and webpack.config.js. To rebuild the files in assets/build, run npm ci and then npm run build in the plugin folder. The flag images in assets/flags come from the country-flag-icons package (MIT licence); see assets/flags/LICENSE.txt.
A cookie named divisero_currency with the currency code the shopper picked, and for logged in customers the same code in their account. Both are included in the WordPress personal data export and erase tools, and suggested text is added to your privacy policy guide.
By default your currencies, rates and settings are kept, so you can reinstall without losing anything. Switch off "Keep data when Divisero is deleted" under Settings to remove everything. Order currency records are accounting data, so they are only removed when you also tick "Also remove the currency records of orders".