Plugin Directory

Changeset 3440977


Ignore:
Timestamp:
01/16/2026 12:37:08 PM (8 weeks ago)
Author:
wpabove
Message:

new version

Location:
abovewp-bulgarian-eurozone/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • abovewp-bulgarian-eurozone/trunk/abovewp-bulgarian-eurozone.php

    r3433135 r3440977  
    33 * Plugin Name: AboveWP Bulgarian Eurozone
    44 * Description: Adds bidirectional dual currency display (BGN ⇄ EUR) for WooCommerce as Bulgaria prepares to join the Eurozone
    5  * Version: 2.1.0
     5 * Version: 2.1.1
    66 * Author: AboveWP
    77 * Author URI: https://abovewp.com
     
    2222
    2323// Define plugin constants
    24 define('ABOVEWP_BGE_VERSION', '2.1.0');
     24define('ABOVEWP_BGE_VERSION', '2.1.1');
    2525define('ABOVEWP_BGE_PLUGIN_DIR', plugin_dir_path(__FILE__));
    2626define('ABOVEWP_BGE_PLUGIN_URL', plugin_dir_url(__FILE__));
  • abovewp-bulgarian-eurozone/trunk/assets/js/blocks.js

    r3433135 r3440977  
    395395                        var secondarySpan = '<span class="eur-price">' + secondaryFormatted + '</span>';
    396396                       
    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
    398404                            $this.before(secondarySpan + ' ');
    399405                        } else {
     
    457463                        var secondarySpan = '<span class="eur-price">' + secondaryFormatted + '</span>';
    458464                       
    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
    460472                            $this.before(secondarySpan + ' ');
    461473                        } else {
     
    498510                        var secondarySpan = '<span class="eur-price">' + secondaryFormatted + '</span>';
    499511                       
    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
    501519                            $this.before(secondarySpan + ' ');
    502520                        } else {
     
    700718                settings.url.indexOf('shipping') > -1 ||
    701719                settings.url.indexOf('speedy') > -1 ||
     720                settings.url.indexOf('econt') > -1 ||
    702721                (settings.data && typeof settings.data === 'string' && settings.data.indexOf('shipping') > -1)
    703722            )) {
  • abovewp-bulgarian-eurozone/trunk/readme.txt

    r3433135 r3440977  
    55Tested up to: 6.8
    66Requires PHP: 7.2
    7 Stable tag: 2.1.0
     7Stable tag: 2.1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    108108== Changelog ==
    109109
     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
    110114= 2.1.0 =
    111115* 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.