Changeset 3440977
- Timestamp:
- 01/16/2026 12:37:08 PM (8 weeks ago)
- Location:
- abovewp-bulgarian-eurozone/trunk
- Files:
-
- 3 edited
-
abovewp-bulgarian-eurozone.php (modified) (2 diffs)
-
assets/js/blocks.js (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
abovewp-bulgarian-eurozone/trunk/abovewp-bulgarian-eurozone.php
r3433135 r3440977 3 3 * Plugin Name: AboveWP Bulgarian Eurozone 4 4 * Description: Adds bidirectional dual currency display (BGN ⇄ EUR) for WooCommerce as Bulgaria prepares to join the Eurozone 5 * Version: 2.1. 05 * Version: 2.1.1 6 6 * Author: AboveWP 7 7 * Author URI: https://abovewp.com … … 22 22 23 23 // Define plugin constants 24 define('ABOVEWP_BGE_VERSION', '2.1. 0');24 define('ABOVEWP_BGE_VERSION', '2.1.1'); 25 25 define('ABOVEWP_BGE_PLUGIN_DIR', plugin_dir_path(__FILE__)); 26 26 define('ABOVEWP_BGE_PLUGIN_URL', plugin_dir_url(__FILE__)); -
abovewp-bulgarian-eurozone/trunk/assets/js/blocks.js
r3433135 r3440977 395 395 var secondarySpan = '<span class="eur-price">' + secondaryFormatted + '</span>'; 396 396 397 if (eurPosition === 'left') { 397 // When EUR is the site currency, always show EUR first (it's the primary) 398 // When BGN is the site currency, respect the eurPosition setting 399 if (primaryCurrency === 'EUR') { 400 // EUR is primary, so always add BGN (secondary) after 401 $this.after(' ' + secondarySpan); 402 } else if (eurPosition === 'left') { 403 // BGN is primary, EUR can go before or after based on setting 398 404 $this.before(secondarySpan + ' '); 399 405 } else { … … 457 463 var secondarySpan = '<span class="eur-price">' + secondaryFormatted + '</span>'; 458 464 459 if (eurPosition === 'left') { 465 // When EUR is the site currency, always show EUR first (it's the primary) 466 // When BGN is the site currency, respect the eurPosition setting 467 if (primaryCurrency === 'EUR') { 468 // EUR is primary, so always add BGN (secondary) after 469 $this.after(' ' + secondarySpan); 470 } else if (eurPosition === 'left') { 471 // BGN is primary, EUR can go before or after based on setting 460 472 $this.before(secondarySpan + ' '); 461 473 } else { … … 498 510 var secondarySpan = '<span class="eur-price">' + secondaryFormatted + '</span>'; 499 511 500 if (eurPosition === 'left') { 512 // When EUR is the site currency, always show EUR first (it's the primary) 513 // When BGN is the site currency, respect the eurPosition setting 514 if (primaryCurrency === 'EUR') { 515 // EUR is primary, so always add BGN (secondary) after 516 $this.after(' ' + secondarySpan); 517 } else if (eurPosition === 'left') { 518 // BGN is primary, EUR can go before or after based on setting 501 519 $this.before(secondarySpan + ' '); 502 520 } else { … … 700 718 settings.url.indexOf('shipping') > -1 || 701 719 settings.url.indexOf('speedy') > -1 || 720 settings.url.indexOf('econt') > -1 || 702 721 (settings.data && typeof settings.data === 'string' && settings.data.indexOf('shipping') > -1) 703 722 )) { -
abovewp-bulgarian-eurozone/trunk/readme.txt
r3433135 r3440977 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.2 7 Stable tag: 2.1. 07 Stable tag: 2.1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 108 108 == Changelog == 109 109 110 = 2.1.1 = 111 * FIX: Shipping price display order now correctly shows EUR first when website currency is EUR (EUR → BGN conversion) 112 * FIX: Enhanced Econt shipping method detection for dynamic price updates 113 110 114 = 2.1.0 = 111 115 * NEW: BGN price rounding setting - choose to keep exact decimals (19.99 лв.) or round up to whole numbers (20.00 лв.) when close
Note: See TracChangeset
for help on using the changeset viewer.