Changeset 3094664
- Timestamp:
- 05/29/2024 02:20:13 PM (22 months ago)
- Location:
- woo-parcel-pro
- Files:
-
- 2 added
- 8 edited
- 1 copied
-
tags/1.8.3 (copied) (copied from woo-parcel-pro/trunk)
-
tags/1.8.3/admin/class-parcelpro-shipping.php (modified) (4 diffs)
-
tags/1.8.3/changelog.md (modified) (1 diff)
-
tags/1.8.3/composer.json (modified) (1 diff)
-
tags/1.8.3/includes/class-parcelpro-shipping-method.php (added)
-
tags/1.8.3/woocommerce-parcelpro.php (modified) (2 diffs)
-
trunk/admin/class-parcelpro-shipping.php (modified) (4 diffs)
-
trunk/changelog.md (modified) (1 diff)
-
trunk/composer.json (modified) (1 diff)
-
trunk/includes/class-parcelpro-shipping-method.php (added)
-
trunk/woocommerce-parcelpro.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-parcel-pro/tags/1.8.3/admin/class-parcelpro-shipping.php
r3054433 r3094664 37 37 public $countries; 38 38 39 40 41 39 /** 42 40 * Initialize the class and set its properties. … … 58 56 { 59 57 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' )); 60 59 } 61 60 … … 74 73 75 74 $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'); 76 76 77 77 $this->enabled = $this->get_option('enabled', 'no'); … … 92 92 { 93 93 $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()); 94 101 } 95 102 -
woo-parcel-pro/tags/1.8.3/changelog.md
r3077397 r3094664 1 1 # 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 2 5 3 6 ## 1.8.2 - 2024-04-23 -
woo-parcel-pro/tags/1.8.3/composer.json
r3077397 r3094664 3 3 "description": "Verzendmodule om gemakkelijk orders in te laden in het verzendsysteem van Parcel Pro.", 4 4 "type": "wordpress-plugin", 5 "version": "1.8. 2",5 "version": "1.8.3", 6 6 "require": { 7 7 "php": ">=7.1", -
woo-parcel-pro/tags/1.8.3/woocommerce-parcelpro.php
r3077397 r3094664 17 17 * Plugin URI: https://www.parcelpro.nl/koppelingen/woocommerce/ 18 18 * 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. 219 * Version: 1.8.3 20 20 * Author: Parcel Pro 21 21 * Author URI: https://parcelpro.nl/ … … 31 31 32 32 define('PARCELPRO_NAME', 'WooCommerce Parcel Pro'); 33 define('PARCELPRO_VERSION', '1.8. 2');33 define('PARCELPRO_VERSION', '1.8.3'); 34 34 define('PARCELPRO_REQUIRED_PHP_VERSION', '5.3'); 35 35 define('PARCELPRO_REQUIRED_WP_VERSION', '3.1'); -
woo-parcel-pro/trunk/admin/class-parcelpro-shipping.php
r3054433 r3094664 37 37 public $countries; 38 38 39 40 41 39 /** 42 40 * Initialize the class and set its properties. … … 58 56 { 59 57 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' )); 60 59 } 61 60 … … 74 73 75 74 $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'); 76 76 77 77 $this->enabled = $this->get_option('enabled', 'no'); … … 92 92 { 93 93 $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()); 94 101 } 95 102 -
woo-parcel-pro/trunk/changelog.md
r3077397 r3094664 1 1 # 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 2 5 3 6 ## 1.8.2 - 2024-04-23 -
woo-parcel-pro/trunk/composer.json
r3077397 r3094664 3 3 "description": "Verzendmodule om gemakkelijk orders in te laden in het verzendsysteem van Parcel Pro.", 4 4 "type": "wordpress-plugin", 5 "version": "1.8. 2",5 "version": "1.8.3", 6 6 "require": { 7 7 "php": ">=7.1", -
woo-parcel-pro/trunk/woocommerce-parcelpro.php
r3077397 r3094664 17 17 * Plugin URI: https://www.parcelpro.nl/koppelingen/woocommerce/ 18 18 * 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. 219 * Version: 1.8.3 20 20 * Author: Parcel Pro 21 21 * Author URI: https://parcelpro.nl/ … … 31 31 32 32 define('PARCELPRO_NAME', 'WooCommerce Parcel Pro'); 33 define('PARCELPRO_VERSION', '1.8. 2');33 define('PARCELPRO_VERSION', '1.8.3'); 34 34 define('PARCELPRO_REQUIRED_PHP_VERSION', '5.3'); 35 35 define('PARCELPRO_REQUIRED_WP_VERSION', '3.1');
Note: See TracChangeset
for help on using the changeset viewer.