Plugin Directory

Changeset 3094664


Ignore:
Timestamp:
05/29/2024 02:20:13 PM (22 months ago)
Author:
parcelpro
Message:

Update to version 1.8.3 from GitHub

Location:
woo-parcel-pro
Files:
2 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • woo-parcel-pro/tags/1.8.3/admin/class-parcelpro-shipping.php

    r3054433 r3094664  
    3737    public $countries;
    3838
    39 
    40 
    4139    /**
    4240     * Initialize the class and set its properties.
     
    5856    {
    5957        add_action('woocommerce_update_options_shipping_parcelpro_shipping', array( $this, 'process_admin_options' ));
     58        add_action('woocommerce_load_shipping_methods', array( $this, 'load_shipping_methods' ));
    6059    }
    6160
     
    7473
    7574        $this->services = include(plugin_dir_path(__FILE__) . 'data/parcelpro-shipping-settings-services.php');
     75        require_once(plugin_dir_path(dirname(__FILE__)) . 'includes/class-parcelpro-shipping-method.php');
    7676
    7777        $this->enabled = $this->get_option('enabled', 'no');
     
    9292    {
    9393        $this->form_fields = include(plugin_dir_path(__FILE__) . 'data/parcelpro-shipping-settings-fields.php');
     94    }
     95
     96    public function load_shipping_methods()
     97    {
     98        // We have to register a custom shipping method, to ensure the shipping method validation passes.
     99        // See error code "woocommerce_rest_invalid_shipping_option" in the WooCommerce function `OrderController::validate_selected_shipping_methods`.
     100        WC()->shipping()->register_shipping_method(new Parcelpro_Shipping_Method());
    94101    }
    95102
  • woo-parcel-pro/tags/1.8.3/changelog.md

    r3077397 r3094664  
    11# Changelog
     2
     3## 1.8.3 - 2024-05-29
     4* Fix "this order requires a shipping option" error in checkout for WooCommerce 8.8.0
    25
    36## 1.8.2 - 2024-04-23
  • woo-parcel-pro/tags/1.8.3/composer.json

    r3077397 r3094664  
    33  "description": "Verzendmodule om gemakkelijk orders in te laden in het verzendsysteem van Parcel Pro.",
    44  "type": "wordpress-plugin",
    5   "version": "1.8.2",
     5  "version": "1.8.3",
    66  "require": {
    77    "php": ">=7.1",
  • woo-parcel-pro/tags/1.8.3/woocommerce-parcelpro.php

    r3077397 r3094664  
    1717 * Plugin URI:      https://www.parcelpro.nl/koppelingen/woocommerce/
    1818 * Description:     Geef klanten de mogelijkheid om hun pakket af te halen bij een afhaalpunt in de buurt. Daarnaast exporteert de plug-in uw zendingen direct in het verzendsysteem van Parcel Pro.
    19  * Version:         1.8.2
     19 * Version:         1.8.3
    2020 * Author:          Parcel Pro
    2121 * Author URI:      https://parcelpro.nl/
     
    3131
    3232define('PARCELPRO_NAME', 'WooCommerce Parcel Pro');
    33 define('PARCELPRO_VERSION', '1.8.2');
     33define('PARCELPRO_VERSION', '1.8.3');
    3434define('PARCELPRO_REQUIRED_PHP_VERSION', '5.3');
    3535define('PARCELPRO_REQUIRED_WP_VERSION', '3.1');
  • woo-parcel-pro/trunk/admin/class-parcelpro-shipping.php

    r3054433 r3094664  
    3737    public $countries;
    3838
    39 
    40 
    4139    /**
    4240     * Initialize the class and set its properties.
     
    5856    {
    5957        add_action('woocommerce_update_options_shipping_parcelpro_shipping', array( $this, 'process_admin_options' ));
     58        add_action('woocommerce_load_shipping_methods', array( $this, 'load_shipping_methods' ));
    6059    }
    6160
     
    7473
    7574        $this->services = include(plugin_dir_path(__FILE__) . 'data/parcelpro-shipping-settings-services.php');
     75        require_once(plugin_dir_path(dirname(__FILE__)) . 'includes/class-parcelpro-shipping-method.php');
    7676
    7777        $this->enabled = $this->get_option('enabled', 'no');
     
    9292    {
    9393        $this->form_fields = include(plugin_dir_path(__FILE__) . 'data/parcelpro-shipping-settings-fields.php');
     94    }
     95
     96    public function load_shipping_methods()
     97    {
     98        // We have to register a custom shipping method, to ensure the shipping method validation passes.
     99        // See error code "woocommerce_rest_invalid_shipping_option" in the WooCommerce function `OrderController::validate_selected_shipping_methods`.
     100        WC()->shipping()->register_shipping_method(new Parcelpro_Shipping_Method());
    94101    }
    95102
  • woo-parcel-pro/trunk/changelog.md

    r3077397 r3094664  
    11# Changelog
     2
     3## 1.8.3 - 2024-05-29
     4* Fix "this order requires a shipping option" error in checkout for WooCommerce 8.8.0
    25
    36## 1.8.2 - 2024-04-23
  • woo-parcel-pro/trunk/composer.json

    r3077397 r3094664  
    33  "description": "Verzendmodule om gemakkelijk orders in te laden in het verzendsysteem van Parcel Pro.",
    44  "type": "wordpress-plugin",
    5   "version": "1.8.2",
     5  "version": "1.8.3",
    66  "require": {
    77    "php": ">=7.1",
  • woo-parcel-pro/trunk/woocommerce-parcelpro.php

    r3077397 r3094664  
    1717 * Plugin URI:      https://www.parcelpro.nl/koppelingen/woocommerce/
    1818 * Description:     Geef klanten de mogelijkheid om hun pakket af te halen bij een afhaalpunt in de buurt. Daarnaast exporteert de plug-in uw zendingen direct in het verzendsysteem van Parcel Pro.
    19  * Version:         1.8.2
     19 * Version:         1.8.3
    2020 * Author:          Parcel Pro
    2121 * Author URI:      https://parcelpro.nl/
     
    3131
    3232define('PARCELPRO_NAME', 'WooCommerce Parcel Pro');
    33 define('PARCELPRO_VERSION', '1.8.2');
     33define('PARCELPRO_VERSION', '1.8.3');
    3434define('PARCELPRO_REQUIRED_PHP_VERSION', '5.3');
    3535define('PARCELPRO_REQUIRED_WP_VERSION', '3.1');
Note: See TracChangeset for help on using the changeset viewer.