Plugin Directory

Changeset 3444088


Ignore:
Timestamp:
01/21/2026 12:57:29 PM (2 months ago)
Author:
wootro
Message:

Fix: Resolved conflict with WooCommerce payment gateway settings

(COD/Plata Ramburs)


  • Payment gateway initialization no longer interferes when accessing WooCommerce Payments settings
  • Moved is_accessing_settings() guard to outer condition in init_form_fields()
  • Version bump to 2.1.4
Location:
woot-ro/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • woot-ro/trunk/README.txt

    r3440105 r3444088  
    44Requires at least: 4.0
    55Tested up to: 6.9
    6 Stable tag: 2.1.3
     6Stable tag: 2.1.4
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    7878
    7979== Changelog ==
     80
     81= 2.1.4 =
     82* Fix: Resolved conflict with WooCommerce payment gateway settings (COD/Plata Ramburs)
     83* Fix: Payment gateway initialization no longer interferes when accessing WooCommerce Payments settings
    8084
    8185= 2.1.3 =
     
    159163== Upgrade Notice ==
    160164
     165= 2.1.4 =
     166* Fix: Resolved conflict with WooCommerce payment gateway settings. Users who experienced issues accessing COD (Plata Ramburs) settings should upgrade immediately.
     167
    161168= 2.1.3 =
    162169* New markup (adaos) fields for services and payment methods. Add percentage and/or fixed amount to shipping prices and payment fees.
  • woot-ro/trunk/includes/shipping/class-woot-shipping-services.php

    r3440105 r3444088  
    259259        }
    260260
    261         // Add payment method fees section
    262         if (function_exists('WC') && WC()->payment_gateways()) {
     261        // Add payment method fees section - only when accessing settings to avoid
     262        // interfering with WooCommerce payment gateway initialization on other pages
     263        if ($this->is_accessing_settings() && function_exists('WC') && WC()->payment_gateways()) {
    263264            $gateways = WC()->payment_gateways()->payment_gateways();
    264265
    265             if ($gateways && $this->is_accessing_settings()) {
     266            if ($gateways) {
    266267                $fields['payment_fees'] = array(
    267268                    'title' => __('Payment Method Fees', 'woot-ro'),
     
    269270                    'description' => __('Extra charges for specific payment methods (applies to all services)', 'woot-ro'),
    270271                );
    271             }
    272 
    273             if ($gateways) {
     272
    274273                foreach ($gateways as $gateway) {
    275274                    if ($gateway->enabled == 'yes') {
  • woot-ro/trunk/woot.php

    r3440105 r3444088  
    1717 * Plugin URI:        https://woot.ro
    1818 * Description:       Integrates all popular couriers in Romania, providing a one-stop solution for all your delivery needs
    19  * Version:           2.1.3
     19 * Version:           2.1.4
    2020 * Author:            Woot.ro
    2121 * Author URI:        https://woot.ro
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define('WOOT_VERSION', '2.1.3');
     38define('WOOT_VERSION', '2.1.4');
    3939
    4040/**
Note: See TracChangeset for help on using the changeset viewer.