Plugin Directory

Changeset 3468783


Ignore:
Timestamp:
02/24/2026 04:59:23 PM (5 weeks ago)
Author:
consulinfolm
Message:

Release 1.0.10 - admin visibility for booking date-change payment integrations, improved status labels, compatibility improvements

Location:
domilocus/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • domilocus/trunk/domilocus.php

    r3465655 r3468783  
    44 * Plugin URI: https://domilocus.consulinfo.it
    55 * Description: Complete booking and property management solution for vacation rentals, apartments, and accommodations with backend administration.
    6  * Version: 1.0.9
     6 * Version: 1.0.10
    77 * Author: ConsulInfo
    88 * Author URI: https://domilocus.consulinfo.it
     
    2323
    2424// Define plugin constants
    25 define('DOMILOCUS_VERSION', '1.0.9');
     25define('DOMILOCUS_VERSION', '1.0.10');
    2626define('DOMILOCUS_PLUGIN_FILE', __FILE__);
    2727define('DOMILOCUS_PLUGIN_DIR', plugin_dir_path(__FILE__));
  • domilocus/trunk/includes/admin/class-domilocus-admin-menus.php

    r3464318 r3468783  
    135135        // Hidden fallback pages for add-ons (avoid 404 if add-on is missing).
    136136        add_submenu_page(
    137             null,
     137            'domilocus',
    138138            __('Funzionalità non disponibile', 'domilocus'),
    139139            '',
     
    143143        );
    144144        add_submenu_page(
    145             null,
     145            'domilocus',
    146146            __('Funzionalità non disponibile', 'domilocus'),
    147147            '',
     
    151151        );
    152152        add_submenu_page(
    153             null,
     153            'domilocus',
    154154            __('Funzionalità non disponibile', 'domilocus'),
    155155            '',
     
    158158            array(__CLASS__, 'addon_missing_page')
    159159        );
     160
     161        remove_submenu_page('domilocus', 'domilocus-statistics');
     162        remove_submenu_page('domilocus', 'domilocus-frontend-license');
     163        remove_submenu_page('domilocus', 'domilocus-license');
    160164       
    161165        // Settings
  • domilocus/trunk/includes/admin/class-domilocus-bookings-list-table.php

    r3403909 r3468783  
    123123            'pending' => '#f0ad4e',
    124124            'confirmed' => '#5cb85c',
     125            'pending-payment' => '#ff9800',
    125126            'cancelled' => '#d9534f',
    126127            'completed' => '#5bc0de'
     
    130131            'pending' => __('Pending', 'domilocus'),
    131132            'confirmed' => __('Confirmed', 'domilocus'),
     133            'pending-payment' => __('In attesa integrazione', 'domilocus'),
    132134            'cancelled' => __('Cancelled', 'domilocus'),
    133135            'completed' => __('Completed', 'domilocus')
     
    148150            'pending' => '#f0ad4e',
    149151            'paid' => '#5cb85c',
     152            'partial' => '#ff9800',
    150153            'failed' => '#d9534f',
    151154            'refunded' => '#5bc0de'
     
    155158            'pending' => __('Pending', 'domilocus'),
    156159            'paid' => __('Pagato', 'domilocus'),
     160            'partial' => __('Parziale', 'domilocus'),
    157161            'failed' => __('Fallito', 'domilocus'),
    158162            'refunded' => __('Rimborsato', 'domilocus')
     
    162166        $label = $labels[$item->payment_status] ?? ucfirst($item->payment_status);
    163167       
     168        $difference_due = 0.0;
     169        if (function_exists('domilocus_get_booking_meta')) {
     170            $difference_due = (float) domilocus_get_booking_meta((int) $item->id, '_domilocus_additional_payment_due', true);
     171            if ($difference_due <= 0) {
     172                $difference_due = (float) domilocus_get_booking_meta((int) $item->id, '_domilocus_last_modification_difference_due', true);
     173            }
     174        }
     175
     176        $difference_html = '';
     177        if ($difference_due > 0) {
     178            $difference_html = '<br><small style="color:#b45309;font-weight:600;">' . sprintf(
     179                esc_html__('Integrazione: %s', 'domilocus'),
     180                wp_strip_all_tags(Domilocus_Settings::format_price($difference_due))
     181            ) . '</small>';
     182        }
     183
    164184        return sprintf(
    165             '<span style="color: %s; font-weight: bold;">%s</span><br><small>%s</small>',
     185            '<span style="color: %s; font-weight: bold;">%s</span><br><small>%s</small>%s',
    166186            $color,
    167187            $label,
    168             $item->payment_method ? esc_html(ucfirst($item->payment_method)) : ''
     188            $item->payment_method ? esc_html(ucfirst($item->payment_method)) : '',
     189            $difference_html
    169190        );
    170191    }
  • domilocus/trunk/includes/class-domilocus-calendar.php

    r3464318 r3468783  
    100100       
    101101        $dynamic_pricing_enabled = class_exists('Domilocus_Pricing_Manager')
     102            && method_exists('Domilocus_Pricing_Manager', 'is_dynamic_pricing_enabled')
    102103            && Domilocus_Pricing_Manager::is_dynamic_pricing_enabled($apartment_id);
    103104
     
    128129           
    129130            // Always try to get dynamic price (includes events even without dynamic pricing enabled)
    130             if (class_exists('Domilocus_Pricing_Manager')) {
     131            if (class_exists('Domilocus_Pricing_Manager') && method_exists('Domilocus_Pricing_Manager', 'get_dynamic_price')) {
    131132                $price_for_day = Domilocus_Pricing_Manager::get_dynamic_price($apartment_id, $date_string, $base_price);
    132133            }
  • domilocus/trunk/readme.txt

    r3465655 r3468783  
    55Tested up to: 6.9
    66Requires PHP: 8.0
    7 Stable tag: 1.0.9
     7Stable tag: 1.0.10
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    181181== Changelog ==
    182182
     183= 1.0.10 =
     184* Added: admin visibility for booking date-change payment integrations in Bookings list.
     185* Added: improved status labels for pending payment integrations after booking modifications.
     186* Improved: compatibility with Starter add-on date modification flow while keeping core free release stable.
     187
    183188= 1.0.8 =
    184189* Added: `domilocus_calculated_price` filter hook to allow pricing addons (Professional) to modify the final calculation.
Note: See TracChangeset for help on using the changeset viewer.