Plugin Directory

Changeset 3478259


Ignore:
Timestamp:
03/09/2026 03:15:34 PM (3 weeks ago)
Author:
europarcelcom
Message:

Version 1.0.8 - Fix: Price fields now accept decimal values

Location:
europarcel-com
Files:
17 edited
20 copied

Legend:

Unmodified
Added
Removed
  • europarcel-com/tags/1.0.8/README.txt

    r3441645 r3478259  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 1.0.7
     7Stable tag: 1.0.8
    88License: GPL-2.0+
    99License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    7777== Changelog ==
    7878
     79= 1.0.8 =
     80* Fixed: Price fields now accept decimal values (e.g., 15.99) instead of integers only
     81
    7982= 1.0.7 =
    8083* Performance fix: Eliminated unnecessary API requests on cart and checkout pages
     
    104107== Upgrade Notice ==
    105108
     109= 1.0.8 =
     110Bug fix: Price fields now accept decimal values.
     111
    106112= 1.0.7 =
    107113Performance fix: Eliminated unnecessary API requests on cart and checkout pages.
  • europarcel-com/tags/1.0.8/assets/css/europarcel-admin.css

    r3441645 r3478259  
    66 *
    77 * @package    Europarcel
    8  * @since      1.0.7
     8 * @since      1.0.8
    99 */
    1010
  • europarcel-com/tags/1.0.8/assets/js/europarcel-admin.js

    r3441645 r3478259  
    66 *
    77 * @package    Europarcel
    8  * @since      1.0.7
     8 * @since      1.0.8
    99 */
    1010
  • europarcel-com/tags/1.0.8/assets/js/europarcel-locker-selector.js

    r3441645 r3478259  
    77 *
    88 * @package    Europarcel
    9  * @since      1.0.7
     9 * @since      1.0.8
    1010 */
    1111
  • europarcel-com/tags/1.0.8/assets/js/europarcel-modal.js

    r3441645 r3478259  
    77 * @package    Europarcel
    88 * @subpackage Assets/JavaScript
    9  * @since      1.0.7
     9 * @since      1.0.8
    1010 */
    1111
     
    1616     * EuroParcel Modal object
    1717     *
    18      * @since 1.0.7
     18     * @since 1.0.8
    1919     */
    2020    window.EuroparcelModal = {
     
    2626         * Handles both desktop and mobile responsive display.
    2727         *
    28          * @since 1.0.7
     28         * @since 1.0.8
    2929         * @param {string} iframeUrl - The URL to load in the iframe
    3030         */
     
    9292         * Configures click handlers, escape key handler, and other modal interactions.
    9393         *
    94          * @since 1.0.7
     94         * @since 1.0.8
    9595         * @param {HTMLElement} modal - The modal element
    9696         * @param {boolean} isMobile - Whether the device is mobile
     
    141141         * Cleans up event listeners to prevent memory leaks.
    142142         *
    143          * @since 1.0.7
     143         * @since 1.0.8
    144144         */
    145145        close: function() {
  • europarcel-com/tags/1.0.8/europarcel-com.php

    r3441645 r3478259  
    99 *
    1010 * @link              https://eawb.ro
    11  * @since             1.0.7
     11 * @since             1.0.8
    1212 * @package           Europarcel
    1313 *
     
    1515 * Plugin Name:       EuroParcel Integration for WooCommerce
    1616 * Description:       Connect your WooCommerce store with eAWB shipping platform
    17  * Version:           1.0.7
     17 * Version:           1.0.8
    1818 * Author:            EuroParcel
    1919 * Author URI:        https://eawb.ro/
     
    3131}
    3232
    33 define('EUROPARCELCOM_WC_VERSION', '1.0.7');
     33define('EUROPARCELCOM_WC_VERSION', '1.0.8');
    3434
    3535/**
     
    6565 * Declare compatibility with WooCommerce High-Performance Order Storage (HPOS)
    6666 *
    67  * @since    1.0.7
     67 * @since    1.0.8
    6868 */
    6969add_action('before_woocommerce_init', function() {
     
    7676 * Initialize the shipping method
    7777 *
    78  * @since    1.0.7
     78 * @since    1.0.8
    7979 */
    8080add_action('woocommerce_shipping_init', 'europarcelcom_wc_shipping_init');
     
    8383 * Load the shipping method class
    8484 *
    85  * @since    1.0.7
     85 * @since    1.0.8
    8686 */
    8787function europarcelcom_wc_shipping_init() {
     
    9595 * Register the shipping method with WooCommerce
    9696 *
    97  * @since    1.0.7
     97 * @since    1.0.8
    9898 * @param    array    $methods    Existing shipping methods
    9999 * @return   array                Updated shipping methods
     
    107107 * Enqueue admin styles and scripts
    108108 *
    109  * @since    1.0.7
     109 * @since    1.0.8
    110110 */
    111111add_action('admin_enqueue_scripts', function () {
    112112    $current_screen = get_current_screen();
    113113    if (is_admin() && $current_screen && strpos($current_screen->id, 'woocommerce_page_wc-settings') !== false) {
    114         wp_enqueue_style('europarcel-admin', plugins_url('assets/css/europarcel-admin.css', __FILE__), array(), '1.0.7');
    115         wp_enqueue_script('europarcel-admin', plugins_url('assets/js/europarcel-admin.js', __FILE__), array('jquery', 'select2'), '1.0.7', true);
     114        wp_enqueue_style('europarcel-admin', plugins_url('assets/css/europarcel-admin.css', __FILE__), array(), '1.0.8');
     115        wp_enqueue_script('europarcel-admin', plugins_url('assets/js/europarcel-admin.js', __FILE__), array('jquery', 'select2'), '1.0.8', true);
    116116    }
    117117});
     
    120120 * Initialize the main plugin class
    121121 *
    122  * @since    1.0.7
     122 * @since    1.0.8
    123123 */
    124124function europarcelcom_wc_plugin_run() {
     
    133133 * Add plugin row meta links (Documentation, Video Tutorial)
    134134 *
    135  * @since    1.0.7
     135 * @since    1.0.8
    136136 * @param    array     $links    Existing meta links
    137137 * @param    string    $file     Plugin file path
  • europarcel-com/tags/1.0.8/includes/class-europarcel-activator.php

    r3441645 r3478259  
    99 *
    1010 * @link       https://europarcel.com
    11  * @since      1.0.7
     11 * @since      1.0.8
    1212 *
    1313 * @package    Europarcel
     
    2020 * This class defines all code necessary to run during the plugin's activation.
    2121 *
    22  * @since      1.0.7
     22 * @since      1.0.8
    2323 * @package    Europarcel
    2424 * @subpackage Europarcel/includes
     
    3232     * Handles any setup tasks required when the plugin is activated.
    3333     *
    34      * @since    1.0.7
     34     * @since    1.0.8
    3535     */
    3636    public static function activate() {
    3737        // Store plugin version
    3838        if (!get_option('EUROPARCELCOM_WC_VERSION')) {
    39             add_option('EUROPARCELCOM_WC_VERSION', '1.0.7');
     39            add_option('EUROPARCELCOM_WC_VERSION', '1.0.8');
    4040        }
    4141       
  • europarcel-com/tags/1.0.8/includes/class-europarcel-checkout.php

    r3441645 r3478259  
    1313 *
    1414 * @link       https://eawb.ro
    15  * @since      1.0.7
     15 * @since      1.0.8
    1616 *
    1717 * @package    Europarcel
     
    2828 * for locker selection and shipping updates.
    2929 *
    30  * @since      1.0.7
     30 * @since      1.0.8
    3131 * @package    Europarcel
    3232 * @subpackage Europarcel/includes
     
    3838     * Whether the current checkout is blocks-based
    3939     *
    40      * @since    1.0.7
     40     * @since    1.0.8
    4141     * @access   private
    4242     * @var      bool    $is_blocks_checkout    True if blocks checkout detected
     
    5050     * via smart_init method to detect checkout type first.
    5151     *
    52      * @since    1.0.7
     52     * @since    1.0.8
    5353     */
    5454    public function __construct() {
     
    6262     * or Blocks-based and initializes the appropriate functionality.
    6363     *
    64      * @since    1.0.7
     64     * @since    1.0.8
    6565     */
    6666    public function smart_init() {
     
    8383     * Enqueues scripts and localizes data for WooCommerce Blocks checkout.
    8484     *
    85      * @since    1.0.7
     85     * @since    1.0.8
    8686     */
    8787    private function init_blocks_checkout() {
     
    9696     * Enqueues scripts and localizes data for WooCommerce Classic checkout.
    9797     *
    98      * @since    1.0.7
     98     * @since    1.0.8
    9999     */
    100100    private function init_classic_checkout() {
     
    110110     * and checkout type information for JavaScript usage.
    111111     *
    112      * @since    1.0.7
     112     * @since    1.0.8
    113113     */
    114114    private function localize_script_data() {
     
    191191     * Validates nonce and returns carrier data via JSON response.
    192192     *
    193      * @since    1.0.7
     193     * @since    1.0.8
    194194     */
    195195    public function wp_ajax_europarcelcomwc_get_locker_carriers() {
     
    221221     * Validates nonce and sanitizes all input data.
    222222     *
    223      * @since    1.0.7
     223     * @since    1.0.8
    224224     */
    225225    public function wp_ajax_europarcelcomwc_update_locker_shipping() {
     
    276276     * the locker selection button in classic checkout when applicable.
    277277     *
    278      * @since    1.0.7
     278     * @since    1.0.8
    279279     */
    280280    public function classic_checkout_button() {
  • europarcel-com/tags/1.0.8/includes/class-europarcel-constants.php

    r3441645 r3478259  
    99 *
    1010 * @link       https://eawb.ro
    11  * @since      1.0.7
     11 * @since      1.0.8
    1212 *
    1313 * @package    Europarcel
     
    2727 * shipping services for both admin configuration and API requests.
    2828 *
    29  * @since      1.0.7
     29 * @since      1.0.8
    3030 * @package    Europarcel
    3131 * @subpackage Europarcel/includes
     
    4141     * All strings are internationalized for translation support.
    4242     *
    43      * @since    1.0.7
     43     * @since    1.0.8
    4444     * @return   array    Array of service keys and their translated display names
    4545     */
     
    6969     * - 2: Locker delivery (home to locker)
    7070     *
    71      * @since    1.0.7
     71     * @since    1.0.8
    7272     * @param    array|string    $services    Array of service keys to convert (or string for backward compatibility)
    7373     * @return   array    Array of carrier configuration arrays
  • europarcel-com/tags/1.0.8/includes/class-europarcel-customer.php

    r3441645 r3478259  
    99 *
    1010 * @link       https://eawb.ro
    11  * @since      1.0.7
     11 * @since      1.0.8
    1212 *
    1313 * @package    Europarcel
     
    3131 * and carrier service availability.
    3232 *
    33  * @since      1.0.7
     33 * @since      1.0.8
    3434 * @package    Europarcel
    3535 * @subpackage Europarcel/includes
     
    4141     * The WooCommerce shipping instance ID
    4242     *
    43      * @since    1.0.7
     43     * @since    1.0.8
    4444     * @access   private
    4545     * @var      int    $instance_id    WooCommerce shipping method instance ID
     
    5050     * The shipping method settings
    5151     *
    52      * @since    1.0.7
     52     * @since    1.0.8
    5353     * @access   public
    5454     * @var      array    $settings    WooCommerce shipping method settings
     
    6262     * configuration and loads the associated settings.
    6363     *
    64      * @since    1.0.7
     64     * @since    1.0.8
    6565     * @param    int    $instance_id    WooCommerce shipping method instance ID
    6666     */
     
    7676     * the EuroParcel API including name, contact details, and account status.
    7777     *
    78      * @since    1.0.7
     78     * @since    1.0.8
    7979     * @return   array|null    Customer account data or null on failure
    8080     */
     
    100100     * EuroParcel account for use in shipping calculations.
    101101     *
    102      * @since    1.0.7
     102     * @since    1.0.8
    103103     * @return   array    Array of billing addresses with ID as key and formatted address as value
    104104     */
     
    138138     * EuroParcel account for use as pickup locations.
    139139     *
    140      * @since    1.0.7
     140     * @since    1.0.8
    141141     * @return   array    Array of pickup addresses with ID as key and formatted address as value
    142142     */
     
    177177     * and destination address.
    178178     *
    179      * @since    1.0.7
     179     * @since    1.0.8
    180180     * @param    array    $package        WooCommerce package data with destination details
    181181     * @param    bool     $allow_locker   Whether to include locker delivery options
     
    262262     * Used with usort() to arrange services from lowest to highest cost.
    263263     *
    264      * @since    1.0.7
     264     * @since    1.0.8
    265265     * @param    array    $first_service     First service for comparison
    266266     * @param    array    $second_service    Second service for comparison
     
    280280     * based on the configured available services.
    281281     *
    282      * @since    1.0.7
     282     * @since    1.0.8
    283283     * @return   array    Array of carrier IDs that support locker delivery
    284284     */
     
    316316     * based on the configured available services.
    317317     *
    318      * @since    1.0.7
     318     * @since    1.0.8
    319319     * @return   array|false    Array of carrier IDs that support standard delivery or false if none available
    320320     */
  • europarcel-com/tags/1.0.8/includes/class-europarcel-deactivator.php

    r3441645 r3478259  
    99 *
    1010 * @link       https://europarcel.com
    11  * @since      1.0.7
     11 * @since      1.0.8
    1212 *
    1313 * @package    Europarcel
     
    2020 * This class defines all code necessary to run during the plugin's deactivation.
    2121 *
    22  * @since      1.0.7
     22 * @since      1.0.8
    2323 * @package    Europarcel
    2424 * @subpackage Europarcel/includes
     
    3232     * Handles any cleanup tasks required when the plugin is deactivated.
    3333     *
    34      * @since    1.0.7
     34     * @since    1.0.8
    3535     */
    3636    public static function deactivate() {
  • europarcel-com/tags/1.0.8/includes/class-europarcel-http-request.php

    r3441645 r3478259  
    88 *
    99 * @link       https://eawb.ro
    10  * @since      1.0.7
     10 * @since      1.0.8
    1111 *
    1212 * @package    Europarcel
     
    2626 * for both GET and POST requests with proper error handling.
    2727 *
    28  * @since      1.0.7
     28 * @since      1.0.8
    2929 * @package    Europarcel
    3030 * @subpackage Europarcel/includes
     
    3636     * The shipping method instance ID
    3737     *
    38      * @since    1.0.7
     38     * @since    1.0.8
    3939     * @access   private
    4040     * @var      int    $instance_id    WooCommerce shipping method instance ID
     
    4848     * shipping method settings and API key.
    4949     *
    50      * @since    1.0.7
     50     * @since    1.0.8
    5151     * @param    int    $instance_id    WooCommerce shipping method instance ID
    5252     */
     
    6060     * query parameters and handles the response.
    6161     *
    62      * @since    1.0.7
     62     * @since    1.0.8
    6363     * @param    string    $function    API endpoint function name
    6464     * @param    array     $data        Optional query parameters
     
    8989     * the provided data and handles the response.
    9090     *
    91      * @since    1.0.7
     91     * @since    1.0.8
    9292     * @param    string    $function    API endpoint function name
    9393     * @param    array     $data        POST data to send
     
    115115     * Throws exceptions for various error conditions.
    116116     *
    117      * @since    1.0.7
     117     * @since    1.0.8
    118118     * @param    array|WP_Error    $response    WordPress HTTP API response
    119119     * @return   array             Decoded JSON response
     
    155155     * the headers required for EuroParcel API authentication.
    156156     *
    157      * @since    1.0.7
     157     * @since    1.0.8
    158158     * @return   array    HTTP headers array with API key
    159159     */
  • europarcel-com/tags/1.0.8/includes/class-europarcel-main.php

    r3441645 r3478259  
    1313 *
    1414 * @link       https://eawb.ro
    15  * @since      1.0.7
     15 * @since      1.0.8
    1616 *
    1717 * @package    Europarcel
     
    2626 * both classic and blocks checkout types.
    2727 *
    28  * @since      1.0.7
     28 * @since      1.0.8
    2929 * @package    Europarcel
    3030 * @subpackage Europarcel/includes
     
    3636     * The plugin name
    3737     *
    38      * @since    1.0.7
     38     * @since    1.0.8
    3939     * @access   protected
    4040     * @var      string    $plugin_name    The plugin identifier name
     
    4545     * The plugin version
    4646     *
    47      * @since    1.0.7
     47     * @since    1.0.8
    4848     * @access   protected
    4949     * @var      string    $version    The current plugin version
     
    5454     * The checkout handler instance
    5555     *
    56      * @since    1.0.7
     56     * @since    1.0.8
    5757     * @access   protected
    5858     * @var      EuroparcelCheckout    $checkout_handler    Handles checkout functionality
     
    6666     * and defines WooCommerce hooks for checkout functionality.
    6767     *
    68      * @since    1.0.7
     68     * @since    1.0.8
    6969     */
    7070    public function __construct() {
     
    7272            $this->version = EUROPARCELCOM_WC_VERSION;
    7373        } else {
    74             $this->version = '1.0.7';
     74            $this->version = '1.0.8';
    7575        }
    7676        $this->plugin_name = 'europarcel-com';
     
    8686     * managing checkout functionality and locker selection.
    8787     *
    88      * @since    1.0.7
     88     * @since    1.0.8
    8989     */
    9090    private function load_dependencies() {
     
    9999     * WordPress hooks for AJAX functionality and checkout integration.
    100100     *
    101      * @since    1.0.7
     101     * @since    1.0.8
    102102     */
    103103    private function define_woocommerce_hooks() {
     
    123123     * so this method is available for future use if needed.
    124124     *
    125      * @since    1.0.7
     125     * @since    1.0.8
    126126     */
    127127    public function run() {
     
    132132     * Get the plugin name
    133133     *
    134      * @since     1.0.7
     134     * @since     1.0.8
    135135     * @return    string    The plugin name
    136136     */
     
    142142     * Get the plugin version
    143143     *
    144      * @since     1.0.7
     144     * @since     1.0.8
    145145     * @return    string    The plugin version number
    146146     */
  • europarcel-com/tags/1.0.8/includes/class-europarcel-request-data.php

    r3441645 r3478259  
    99 *
    1010 * @link       https://eawb.ro
    11  * @since      1.0.7
     11 * @since      1.0.8
    1212 *
    1313 * @package    Europarcel
     
    2929 * based on WooCommerce shipping instance configuration.
    3030 *
    31  * @since      1.0.7
     31 * @since      1.0.8
    3232 * @package    Europarcel
    3333 * @subpackage Europarcel/includes
     
    3939     * The WooCommerce shipping instance ID
    4040     *
    41      * @since    1.0.7
     41     * @since    1.0.8
    4242     * @access   private
    4343     * @var      int    $instance_id    WooCommerce shipping method instance ID
     
    5151     * including carrier info, addresses, content details, and extra options.
    5252     *
    53      * @since    1.0.7
     53     * @since    1.0.8
    5454     * @access   private
    5555     * @var      array    $request_data    Complete shipping request data
     
    117117     * parcel specifications.
    118118     *
    119      * @since    1.0.7
     119     * @since    1.0.8
    120120     * @param    int     $instance_id     WooCommerce shipping method instance ID
    121121     * @param    bool    $allow_locker    Whether to allow locker delivery services
     
    176176     * Set the carrier ID for the shipping request
    177177     *
    178      * @since    1.0.7
     178     * @since    1.0.8
    179179     * @param    int    $carrier_id    The carrier ID from EuroParcel
    180180     */
     
    186186     * Set the service ID for the shipping request
    187187     *
    188      * @since    1.0.7
     188     * @since    1.0.8
    189189     * @param    int    $service_id    The service ID (1=standard, 2=locker)
    190190     */
     
    196196     * Set the delivery address for the shipping request
    197197     *
    198      * @since    1.0.7
     198     * @since    1.0.8
    199199     * @param    array    $delivery_address    Complete delivery address data
    200200     */
     
    208208     * Returns the prepared shipping request data ready for EuroParcel API calls.
    209209     *
    210      * @since    1.0.7
     210     * @since    1.0.8
    211211     * @return   array    Complete shipping request data
    212212     */
  • europarcel-com/tags/1.0.8/includes/class-europarcel-shipping.php

    r3441645 r3478259  
    1313 *
    1414 * @link       https://eawb.ro
    15  * @since      1.0.7
     15 * @since      1.0.8
    1616 *
    1717 * @package    Europarcel
     
    2929 * and both standard and locker delivery options.
    3030 *
    31  * @since      1.0.7
     31 * @since      1.0.8
    3232 * @package    Europarcel
    3333 * @subpackage Europarcel/includes
     
    4242     * instance ID, method title, description, and supported features.
    4343     *
    44      * @since    1.0.7
     44     * @since    1.0.8
    4545     * @param    int    $instance_id    WooCommerce shipping zone instance ID
    4646     */
     
    6767     * and initializes the admin form fields.
    6868     *
    69      * @since    1.0.7
     69     * @since    1.0.8
    7070     */
    7171    public function init() {
     
    8787     * Dynamically loads customer information when API key is provided.
    8888     *
    89      * @since    1.0.7
     89     * @since    1.0.8
    9090     */
    9191    public function init_form_fields() {
     
    221221                'description' => __('Set the fixed shipping cost for address deliveries', 'europarcel-com'),
    222222                'desc_tip' => false,
     223                'custom_attributes' => array('step' => '0.01'),
    223224            ),
    224225            'free_shipping_amount_to_home' => array(
     
    228229                'description' => __('Minimum order amount required to qualify for free home delivery (leave empty for no free shipping)', 'europarcel-com'),
    229230                'desc_tip' => false,
     231                'custom_attributes' => array('step' => '0.01'),
    230232            ),
    231233            'free_shipping_classes_to_home' => array(
     
    258260                'description' => __('Set the fixed shipping cost for locker deliveries', 'europarcel-com'),
    259261                'desc_tip' => false,
     262                'custom_attributes' => array('step' => '0.01'),
    260263            ),
    261264            'free_shipping_amount_to_locker' => array(
     
    265268                'description' => __('Minimum order amount required to qualify for free locker delivery (leave empty for no free shipping)', 'europarcel-com'),
    266269                'desc_tip' => false,
     270                'custom_attributes' => array('step' => '0.01'),
    267271            ),
    268272            'free_shipping_classes_to_locker' => array(
     
    295299     * Validates nonce for security and processes each form field.
    296300     *
    297      * @since    1.0.7
     301     * @since    1.0.8
    298302     * @return   bool    True if options were saved successfully, false otherwise
    299303     */
     
    335339     * Creates shipping rates for both standard and locker delivery options.
    336340     *
    337      * @since    1.0.7
     341     * @since    1.0.8
    338342     * @param    array    $package    WooCommerce package data with contents and destination
    339343     */
  • europarcel-com/tags/1.0.8/languages/europarcel-com-ro_RO.po

    r3441645 r3478259  
    44msgid ""
    55msgstr ""
    6 "Project-Id-Version: EuroParcel Integration for WooCommerce 1.0.7\n"
     6"Project-Id-Version: EuroParcel Integration for WooCommerce 1.0.8\n"
    77"Report-Msgid-Bugs-To: cs@europarcel.com\n"
    88"POT-Creation-Date: 2026-01-17 19:00+0200\n"
  • europarcel-com/tags/1.0.8/uninstall.php

    r3408287 r3478259  
    1010 *
    1111 * @link       https://eawb.ro
    12  * @since      1.0.6
     12 * @since      1.0.8
    1313 *
    1414 * @package    Europarcel
  • europarcel-com/trunk/README.txt

    r3441645 r3478259  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 1.0.7
     7Stable tag: 1.0.8
    88License: GPL-2.0+
    99License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    7777== Changelog ==
    7878
     79= 1.0.8 =
     80* Fixed: Price fields now accept decimal values (e.g., 15.99) instead of integers only
     81
    7982= 1.0.7 =
    8083* Performance fix: Eliminated unnecessary API requests on cart and checkout pages
     
    104107== Upgrade Notice ==
    105108
     109= 1.0.8 =
     110Bug fix: Price fields now accept decimal values.
     111
    106112= 1.0.7 =
    107113Performance fix: Eliminated unnecessary API requests on cart and checkout pages.
  • europarcel-com/trunk/assets/css/europarcel-admin.css

    r3441645 r3478259  
    66 *
    77 * @package    Europarcel
    8  * @since      1.0.7
     8 * @since      1.0.8
    99 */
    1010
  • europarcel-com/trunk/assets/js/europarcel-admin.js

    r3441645 r3478259  
    66 *
    77 * @package    Europarcel
    8  * @since      1.0.7
     8 * @since      1.0.8
    99 */
    1010
  • europarcel-com/trunk/assets/js/europarcel-locker-selector.js

    r3441645 r3478259  
    77 *
    88 * @package    Europarcel
    9  * @since      1.0.7
     9 * @since      1.0.8
    1010 */
    1111
  • europarcel-com/trunk/assets/js/europarcel-modal.js

    r3441645 r3478259  
    77 * @package    Europarcel
    88 * @subpackage Assets/JavaScript
    9  * @since      1.0.7
     9 * @since      1.0.8
    1010 */
    1111
     
    1616     * EuroParcel Modal object
    1717     *
    18      * @since 1.0.7
     18     * @since 1.0.8
    1919     */
    2020    window.EuroparcelModal = {
     
    2626         * Handles both desktop and mobile responsive display.
    2727         *
    28          * @since 1.0.7
     28         * @since 1.0.8
    2929         * @param {string} iframeUrl - The URL to load in the iframe
    3030         */
     
    9292         * Configures click handlers, escape key handler, and other modal interactions.
    9393         *
    94          * @since 1.0.7
     94         * @since 1.0.8
    9595         * @param {HTMLElement} modal - The modal element
    9696         * @param {boolean} isMobile - Whether the device is mobile
     
    141141         * Cleans up event listeners to prevent memory leaks.
    142142         *
    143          * @since 1.0.7
     143         * @since 1.0.8
    144144         */
    145145        close: function() {
  • europarcel-com/trunk/europarcel-com.php

    r3441645 r3478259  
    99 *
    1010 * @link              https://eawb.ro
    11  * @since             1.0.7
     11 * @since             1.0.8
    1212 * @package           Europarcel
    1313 *
     
    1515 * Plugin Name:       EuroParcel Integration for WooCommerce
    1616 * Description:       Connect your WooCommerce store with eAWB shipping platform
    17  * Version:           1.0.7
     17 * Version:           1.0.8
    1818 * Author:            EuroParcel
    1919 * Author URI:        https://eawb.ro/
     
    3131}
    3232
    33 define('EUROPARCELCOM_WC_VERSION', '1.0.7');
     33define('EUROPARCELCOM_WC_VERSION', '1.0.8');
    3434
    3535/**
     
    6565 * Declare compatibility with WooCommerce High-Performance Order Storage (HPOS)
    6666 *
    67  * @since    1.0.7
     67 * @since    1.0.8
    6868 */
    6969add_action('before_woocommerce_init', function() {
     
    7676 * Initialize the shipping method
    7777 *
    78  * @since    1.0.7
     78 * @since    1.0.8
    7979 */
    8080add_action('woocommerce_shipping_init', 'europarcelcom_wc_shipping_init');
     
    8383 * Load the shipping method class
    8484 *
    85  * @since    1.0.7
     85 * @since    1.0.8
    8686 */
    8787function europarcelcom_wc_shipping_init() {
     
    9595 * Register the shipping method with WooCommerce
    9696 *
    97  * @since    1.0.7
     97 * @since    1.0.8
    9898 * @param    array    $methods    Existing shipping methods
    9999 * @return   array                Updated shipping methods
     
    107107 * Enqueue admin styles and scripts
    108108 *
    109  * @since    1.0.7
     109 * @since    1.0.8
    110110 */
    111111add_action('admin_enqueue_scripts', function () {
    112112    $current_screen = get_current_screen();
    113113    if (is_admin() && $current_screen && strpos($current_screen->id, 'woocommerce_page_wc-settings') !== false) {
    114         wp_enqueue_style('europarcel-admin', plugins_url('assets/css/europarcel-admin.css', __FILE__), array(), '1.0.7');
    115         wp_enqueue_script('europarcel-admin', plugins_url('assets/js/europarcel-admin.js', __FILE__), array('jquery', 'select2'), '1.0.7', true);
     114        wp_enqueue_style('europarcel-admin', plugins_url('assets/css/europarcel-admin.css', __FILE__), array(), '1.0.8');
     115        wp_enqueue_script('europarcel-admin', plugins_url('assets/js/europarcel-admin.js', __FILE__), array('jquery', 'select2'), '1.0.8', true);
    116116    }
    117117});
     
    120120 * Initialize the main plugin class
    121121 *
    122  * @since    1.0.7
     122 * @since    1.0.8
    123123 */
    124124function europarcelcom_wc_plugin_run() {
     
    133133 * Add plugin row meta links (Documentation, Video Tutorial)
    134134 *
    135  * @since    1.0.7
     135 * @since    1.0.8
    136136 * @param    array     $links    Existing meta links
    137137 * @param    string    $file     Plugin file path
  • europarcel-com/trunk/includes/class-europarcel-activator.php

    r3441645 r3478259  
    99 *
    1010 * @link       https://europarcel.com
    11  * @since      1.0.7
     11 * @since      1.0.8
    1212 *
    1313 * @package    Europarcel
     
    2020 * This class defines all code necessary to run during the plugin's activation.
    2121 *
    22  * @since      1.0.7
     22 * @since      1.0.8
    2323 * @package    Europarcel
    2424 * @subpackage Europarcel/includes
     
    3232     * Handles any setup tasks required when the plugin is activated.
    3333     *
    34      * @since    1.0.7
     34     * @since    1.0.8
    3535     */
    3636    public static function activate() {
    3737        // Store plugin version
    3838        if (!get_option('EUROPARCELCOM_WC_VERSION')) {
    39             add_option('EUROPARCELCOM_WC_VERSION', '1.0.7');
     39            add_option('EUROPARCELCOM_WC_VERSION', '1.0.8');
    4040        }
    4141       
  • europarcel-com/trunk/includes/class-europarcel-checkout.php

    r3441645 r3478259  
    1313 *
    1414 * @link       https://eawb.ro
    15  * @since      1.0.7
     15 * @since      1.0.8
    1616 *
    1717 * @package    Europarcel
     
    2828 * for locker selection and shipping updates.
    2929 *
    30  * @since      1.0.7
     30 * @since      1.0.8
    3131 * @package    Europarcel
    3232 * @subpackage Europarcel/includes
     
    3838     * Whether the current checkout is blocks-based
    3939     *
    40      * @since    1.0.7
     40     * @since    1.0.8
    4141     * @access   private
    4242     * @var      bool    $is_blocks_checkout    True if blocks checkout detected
     
    5050     * via smart_init method to detect checkout type first.
    5151     *
    52      * @since    1.0.7
     52     * @since    1.0.8
    5353     */
    5454    public function __construct() {
     
    6262     * or Blocks-based and initializes the appropriate functionality.
    6363     *
    64      * @since    1.0.7
     64     * @since    1.0.8
    6565     */
    6666    public function smart_init() {
     
    8383     * Enqueues scripts and localizes data for WooCommerce Blocks checkout.
    8484     *
    85      * @since    1.0.7
     85     * @since    1.0.8
    8686     */
    8787    private function init_blocks_checkout() {
     
    9696     * Enqueues scripts and localizes data for WooCommerce Classic checkout.
    9797     *
    98      * @since    1.0.7
     98     * @since    1.0.8
    9999     */
    100100    private function init_classic_checkout() {
     
    110110     * and checkout type information for JavaScript usage.
    111111     *
    112      * @since    1.0.7
     112     * @since    1.0.8
    113113     */
    114114    private function localize_script_data() {
     
    191191     * Validates nonce and returns carrier data via JSON response.
    192192     *
    193      * @since    1.0.7
     193     * @since    1.0.8
    194194     */
    195195    public function wp_ajax_europarcelcomwc_get_locker_carriers() {
     
    221221     * Validates nonce and sanitizes all input data.
    222222     *
    223      * @since    1.0.7
     223     * @since    1.0.8
    224224     */
    225225    public function wp_ajax_europarcelcomwc_update_locker_shipping() {
     
    276276     * the locker selection button in classic checkout when applicable.
    277277     *
    278      * @since    1.0.7
     278     * @since    1.0.8
    279279     */
    280280    public function classic_checkout_button() {
  • europarcel-com/trunk/includes/class-europarcel-constants.php

    r3441645 r3478259  
    99 *
    1010 * @link       https://eawb.ro
    11  * @since      1.0.7
     11 * @since      1.0.8
    1212 *
    1313 * @package    Europarcel
     
    2727 * shipping services for both admin configuration and API requests.
    2828 *
    29  * @since      1.0.7
     29 * @since      1.0.8
    3030 * @package    Europarcel
    3131 * @subpackage Europarcel/includes
     
    4141     * All strings are internationalized for translation support.
    4242     *
    43      * @since    1.0.7
     43     * @since    1.0.8
    4444     * @return   array    Array of service keys and their translated display names
    4545     */
     
    6969     * - 2: Locker delivery (home to locker)
    7070     *
    71      * @since    1.0.7
     71     * @since    1.0.8
    7272     * @param    array|string    $services    Array of service keys to convert (or string for backward compatibility)
    7373     * @return   array    Array of carrier configuration arrays
  • europarcel-com/trunk/includes/class-europarcel-customer.php

    r3441645 r3478259  
    99 *
    1010 * @link       https://eawb.ro
    11  * @since      1.0.7
     11 * @since      1.0.8
    1212 *
    1313 * @package    Europarcel
     
    3131 * and carrier service availability.
    3232 *
    33  * @since      1.0.7
     33 * @since      1.0.8
    3434 * @package    Europarcel
    3535 * @subpackage Europarcel/includes
     
    4141     * The WooCommerce shipping instance ID
    4242     *
    43      * @since    1.0.7
     43     * @since    1.0.8
    4444     * @access   private
    4545     * @var      int    $instance_id    WooCommerce shipping method instance ID
     
    5050     * The shipping method settings
    5151     *
    52      * @since    1.0.7
     52     * @since    1.0.8
    5353     * @access   public
    5454     * @var      array    $settings    WooCommerce shipping method settings
     
    6262     * configuration and loads the associated settings.
    6363     *
    64      * @since    1.0.7
     64     * @since    1.0.8
    6565     * @param    int    $instance_id    WooCommerce shipping method instance ID
    6666     */
     
    7676     * the EuroParcel API including name, contact details, and account status.
    7777     *
    78      * @since    1.0.7
     78     * @since    1.0.8
    7979     * @return   array|null    Customer account data or null on failure
    8080     */
     
    100100     * EuroParcel account for use in shipping calculations.
    101101     *
    102      * @since    1.0.7
     102     * @since    1.0.8
    103103     * @return   array    Array of billing addresses with ID as key and formatted address as value
    104104     */
     
    138138     * EuroParcel account for use as pickup locations.
    139139     *
    140      * @since    1.0.7
     140     * @since    1.0.8
    141141     * @return   array    Array of pickup addresses with ID as key and formatted address as value
    142142     */
     
    177177     * and destination address.
    178178     *
    179      * @since    1.0.7
     179     * @since    1.0.8
    180180     * @param    array    $package        WooCommerce package data with destination details
    181181     * @param    bool     $allow_locker   Whether to include locker delivery options
     
    262262     * Used with usort() to arrange services from lowest to highest cost.
    263263     *
    264      * @since    1.0.7
     264     * @since    1.0.8
    265265     * @param    array    $first_service     First service for comparison
    266266     * @param    array    $second_service    Second service for comparison
     
    280280     * based on the configured available services.
    281281     *
    282      * @since    1.0.7
     282     * @since    1.0.8
    283283     * @return   array    Array of carrier IDs that support locker delivery
    284284     */
     
    316316     * based on the configured available services.
    317317     *
    318      * @since    1.0.7
     318     * @since    1.0.8
    319319     * @return   array|false    Array of carrier IDs that support standard delivery or false if none available
    320320     */
  • europarcel-com/trunk/includes/class-europarcel-deactivator.php

    r3441645 r3478259  
    99 *
    1010 * @link       https://europarcel.com
    11  * @since      1.0.7
     11 * @since      1.0.8
    1212 *
    1313 * @package    Europarcel
     
    2020 * This class defines all code necessary to run during the plugin's deactivation.
    2121 *
    22  * @since      1.0.7
     22 * @since      1.0.8
    2323 * @package    Europarcel
    2424 * @subpackage Europarcel/includes
     
    3232     * Handles any cleanup tasks required when the plugin is deactivated.
    3333     *
    34      * @since    1.0.7
     34     * @since    1.0.8
    3535     */
    3636    public static function deactivate() {
  • europarcel-com/trunk/includes/class-europarcel-http-request.php

    r3441645 r3478259  
    88 *
    99 * @link       https://eawb.ro
    10  * @since      1.0.7
     10 * @since      1.0.8
    1111 *
    1212 * @package    Europarcel
     
    2626 * for both GET and POST requests with proper error handling.
    2727 *
    28  * @since      1.0.7
     28 * @since      1.0.8
    2929 * @package    Europarcel
    3030 * @subpackage Europarcel/includes
     
    3636     * The shipping method instance ID
    3737     *
    38      * @since    1.0.7
     38     * @since    1.0.8
    3939     * @access   private
    4040     * @var      int    $instance_id    WooCommerce shipping method instance ID
     
    4848     * shipping method settings and API key.
    4949     *
    50      * @since    1.0.7
     50     * @since    1.0.8
    5151     * @param    int    $instance_id    WooCommerce shipping method instance ID
    5252     */
     
    6060     * query parameters and handles the response.
    6161     *
    62      * @since    1.0.7
     62     * @since    1.0.8
    6363     * @param    string    $function    API endpoint function name
    6464     * @param    array     $data        Optional query parameters
     
    8989     * the provided data and handles the response.
    9090     *
    91      * @since    1.0.7
     91     * @since    1.0.8
    9292     * @param    string    $function    API endpoint function name
    9393     * @param    array     $data        POST data to send
     
    115115     * Throws exceptions for various error conditions.
    116116     *
    117      * @since    1.0.7
     117     * @since    1.0.8
    118118     * @param    array|WP_Error    $response    WordPress HTTP API response
    119119     * @return   array             Decoded JSON response
     
    155155     * the headers required for EuroParcel API authentication.
    156156     *
    157      * @since    1.0.7
     157     * @since    1.0.8
    158158     * @return   array    HTTP headers array with API key
    159159     */
  • europarcel-com/trunk/includes/class-europarcel-main.php

    r3441645 r3478259  
    1313 *
    1414 * @link       https://eawb.ro
    15  * @since      1.0.7
     15 * @since      1.0.8
    1616 *
    1717 * @package    Europarcel
     
    2626 * both classic and blocks checkout types.
    2727 *
    28  * @since      1.0.7
     28 * @since      1.0.8
    2929 * @package    Europarcel
    3030 * @subpackage Europarcel/includes
     
    3636     * The plugin name
    3737     *
    38      * @since    1.0.7
     38     * @since    1.0.8
    3939     * @access   protected
    4040     * @var      string    $plugin_name    The plugin identifier name
     
    4545     * The plugin version
    4646     *
    47      * @since    1.0.7
     47     * @since    1.0.8
    4848     * @access   protected
    4949     * @var      string    $version    The current plugin version
     
    5454     * The checkout handler instance
    5555     *
    56      * @since    1.0.7
     56     * @since    1.0.8
    5757     * @access   protected
    5858     * @var      EuroparcelCheckout    $checkout_handler    Handles checkout functionality
     
    6666     * and defines WooCommerce hooks for checkout functionality.
    6767     *
    68      * @since    1.0.7
     68     * @since    1.0.8
    6969     */
    7070    public function __construct() {
     
    7272            $this->version = EUROPARCELCOM_WC_VERSION;
    7373        } else {
    74             $this->version = '1.0.7';
     74            $this->version = '1.0.8';
    7575        }
    7676        $this->plugin_name = 'europarcel-com';
     
    8686     * managing checkout functionality and locker selection.
    8787     *
    88      * @since    1.0.7
     88     * @since    1.0.8
    8989     */
    9090    private function load_dependencies() {
     
    9999     * WordPress hooks for AJAX functionality and checkout integration.
    100100     *
    101      * @since    1.0.7
     101     * @since    1.0.8
    102102     */
    103103    private function define_woocommerce_hooks() {
     
    123123     * so this method is available for future use if needed.
    124124     *
    125      * @since    1.0.7
     125     * @since    1.0.8
    126126     */
    127127    public function run() {
     
    132132     * Get the plugin name
    133133     *
    134      * @since     1.0.7
     134     * @since     1.0.8
    135135     * @return    string    The plugin name
    136136     */
     
    142142     * Get the plugin version
    143143     *
    144      * @since     1.0.7
     144     * @since     1.0.8
    145145     * @return    string    The plugin version number
    146146     */
  • europarcel-com/trunk/includes/class-europarcel-request-data.php

    r3441645 r3478259  
    99 *
    1010 * @link       https://eawb.ro
    11  * @since      1.0.7
     11 * @since      1.0.8
    1212 *
    1313 * @package    Europarcel
     
    2929 * based on WooCommerce shipping instance configuration.
    3030 *
    31  * @since      1.0.7
     31 * @since      1.0.8
    3232 * @package    Europarcel
    3333 * @subpackage Europarcel/includes
     
    3939     * The WooCommerce shipping instance ID
    4040     *
    41      * @since    1.0.7
     41     * @since    1.0.8
    4242     * @access   private
    4343     * @var      int    $instance_id    WooCommerce shipping method instance ID
     
    5151     * including carrier info, addresses, content details, and extra options.
    5252     *
    53      * @since    1.0.7
     53     * @since    1.0.8
    5454     * @access   private
    5555     * @var      array    $request_data    Complete shipping request data
     
    117117     * parcel specifications.
    118118     *
    119      * @since    1.0.7
     119     * @since    1.0.8
    120120     * @param    int     $instance_id     WooCommerce shipping method instance ID
    121121     * @param    bool    $allow_locker    Whether to allow locker delivery services
     
    176176     * Set the carrier ID for the shipping request
    177177     *
    178      * @since    1.0.7
     178     * @since    1.0.8
    179179     * @param    int    $carrier_id    The carrier ID from EuroParcel
    180180     */
     
    186186     * Set the service ID for the shipping request
    187187     *
    188      * @since    1.0.7
     188     * @since    1.0.8
    189189     * @param    int    $service_id    The service ID (1=standard, 2=locker)
    190190     */
     
    196196     * Set the delivery address for the shipping request
    197197     *
    198      * @since    1.0.7
     198     * @since    1.0.8
    199199     * @param    array    $delivery_address    Complete delivery address data
    200200     */
     
    208208     * Returns the prepared shipping request data ready for EuroParcel API calls.
    209209     *
    210      * @since    1.0.7
     210     * @since    1.0.8
    211211     * @return   array    Complete shipping request data
    212212     */
  • europarcel-com/trunk/includes/class-europarcel-shipping.php

    r3441645 r3478259  
    1313 *
    1414 * @link       https://eawb.ro
    15  * @since      1.0.7
     15 * @since      1.0.8
    1616 *
    1717 * @package    Europarcel
     
    2929 * and both standard and locker delivery options.
    3030 *
    31  * @since      1.0.7
     31 * @since      1.0.8
    3232 * @package    Europarcel
    3333 * @subpackage Europarcel/includes
     
    4242     * instance ID, method title, description, and supported features.
    4343     *
    44      * @since    1.0.7
     44     * @since    1.0.8
    4545     * @param    int    $instance_id    WooCommerce shipping zone instance ID
    4646     */
     
    6767     * and initializes the admin form fields.
    6868     *
    69      * @since    1.0.7
     69     * @since    1.0.8
    7070     */
    7171    public function init() {
     
    8787     * Dynamically loads customer information when API key is provided.
    8888     *
    89      * @since    1.0.7
     89     * @since    1.0.8
    9090     */
    9191    public function init_form_fields() {
     
    221221                'description' => __('Set the fixed shipping cost for address deliveries', 'europarcel-com'),
    222222                'desc_tip' => false,
     223                'custom_attributes' => array('step' => '0.01'),
    223224            ),
    224225            'free_shipping_amount_to_home' => array(
     
    228229                'description' => __('Minimum order amount required to qualify for free home delivery (leave empty for no free shipping)', 'europarcel-com'),
    229230                'desc_tip' => false,
     231                'custom_attributes' => array('step' => '0.01'),
    230232            ),
    231233            'free_shipping_classes_to_home' => array(
     
    258260                'description' => __('Set the fixed shipping cost for locker deliveries', 'europarcel-com'),
    259261                'desc_tip' => false,
     262                'custom_attributes' => array('step' => '0.01'),
    260263            ),
    261264            'free_shipping_amount_to_locker' => array(
     
    265268                'description' => __('Minimum order amount required to qualify for free locker delivery (leave empty for no free shipping)', 'europarcel-com'),
    266269                'desc_tip' => false,
     270                'custom_attributes' => array('step' => '0.01'),
    267271            ),
    268272            'free_shipping_classes_to_locker' => array(
     
    295299     * Validates nonce for security and processes each form field.
    296300     *
    297      * @since    1.0.7
     301     * @since    1.0.8
    298302     * @return   bool    True if options were saved successfully, false otherwise
    299303     */
     
    335339     * Creates shipping rates for both standard and locker delivery options.
    336340     *
    337      * @since    1.0.7
     341     * @since    1.0.8
    338342     * @param    array    $package    WooCommerce package data with contents and destination
    339343     */
  • europarcel-com/trunk/languages/europarcel-com-ro_RO.po

    r3441645 r3478259  
    44msgid ""
    55msgstr ""
    6 "Project-Id-Version: EuroParcel Integration for WooCommerce 1.0.7\n"
     6"Project-Id-Version: EuroParcel Integration for WooCommerce 1.0.8\n"
    77"Report-Msgid-Bugs-To: cs@europarcel.com\n"
    88"POT-Creation-Date: 2026-01-17 19:00+0200\n"
  • europarcel-com/trunk/uninstall.php

    r3408287 r3478259  
    1010 *
    1111 * @link       https://eawb.ro
    12  * @since      1.0.6
     12 * @since      1.0.8
    1313 *
    1414 * @package    Europarcel
Note: See TracChangeset for help on using the changeset viewer.