Changeset 2884676
- Timestamp:
- 03/22/2023 07:06:14 AM (3 years ago)
- Location:
- estonian-shipping-methods-for-woocommerce
- Files:
-
- 43 added
- 7 edited
-
tags/1.7.1 (added)
-
tags/1.7.1/estonian-shipping-methods-for-woocommerce.php (added)
-
tags/1.7.1/includes (added)
-
tags/1.7.1/includes/abstracts (added)
-
tags/1.7.1/includes/abstracts/class-wc-estonian-shipping-method-dpd-shops.php (added)
-
tags/1.7.1/includes/abstracts/class-wc-estonian-shipping-method-omniva.php (added)
-
tags/1.7.1/includes/abstracts/class-wc-estonian-shipping-method-smartpost.php (added)
-
tags/1.7.1/includes/abstracts/class-wc-estonian-shipping-method-terminals.php (added)
-
tags/1.7.1/includes/abstracts/class-wc-estonian-shipping-method.php (added)
-
tags/1.7.1/includes/compatibility-helpers.php (added)
-
tags/1.7.1/includes/methods (added)
-
tags/1.7.1/includes/methods/class-wc-estonian-shipping-method-collect-net.php (added)
-
tags/1.7.1/includes/methods/class-wc-estonian-shipping-method-dpd-shops-ee.php (added)
-
tags/1.7.1/includes/methods/class-wc-estonian-shipping-method-dpd-shops-lt.php (added)
-
tags/1.7.1/includes/methods/class-wc-estonian-shipping-method-dpd-shops-lv.php (added)
-
tags/1.7.1/includes/methods/class-wc-estonian-shipping-method-omniva-parcel-machines-ee.php (added)
-
tags/1.7.1/includes/methods/class-wc-estonian-shipping-method-omniva-parcel-machines-lt.php (added)
-
tags/1.7.1/includes/methods/class-wc-estonian-shipping-method-omniva-parcel-machines-lv.php (added)
-
tags/1.7.1/includes/methods/class-wc-estonian-shipping-method-omniva-post-offices-ee.php (added)
-
tags/1.7.1/includes/methods/class-wc-estonian-shipping-method-smartpost-courier.php (added)
-
tags/1.7.1/includes/methods/class-wc-estonian-shipping-method-smartpost-estonia.php (added)
-
tags/1.7.1/includes/methods/class-wc-estonian-shipping-method-smartpost-finland.php (added)
-
tags/1.7.1/includes/methods/class-wc-estonian-shipping-method-smartpost-latvia.php (added)
-
tags/1.7.1/includes/methods/class-wc-estonian-shipping-method-smartpost-lithuania.php (added)
-
tags/1.7.1/languages (added)
-
tags/1.7.1/languages/wc-estonian-shipping-methods-et.mo (added)
-
tags/1.7.1/languages/wc-estonian-shipping-methods-et.po (added)
-
tags/1.7.1/languages/wc-estonian-shipping-methods-lt_LT.mo (added)
-
tags/1.7.1/languages/wc-estonian-shipping-methods-lt_LT.po (added)
-
tags/1.7.1/languages/wc-estonian-shipping-methods-lv_LV.mo (added)
-
tags/1.7.1/languages/wc-estonian-shipping-methods-lv_LV.po (added)
-
tags/1.7.1/languages/wc-estonian-shipping-methods-ru_RU.mo (added)
-
tags/1.7.1/languages/wc-estonian-shipping-methods-ru_RU.po (added)
-
tags/1.7.1/languages/wc-estonian-shipping-methods.pot (added)
-
tags/1.7.1/readme.txt (added)
-
tags/1.7.1/woocommerce (added)
-
tags/1.7.1/woocommerce/checkout (added)
-
tags/1.7.1/woocommerce/checkout/form-shipping-collect-net.php (added)
-
tags/1.7.1/woocommerce/checkout/form-shipping-dpd.php (added)
-
tags/1.7.1/woocommerce/checkout/form-shipping-omniva-postoffice.php (added)
-
tags/1.7.1/woocommerce/checkout/form-shipping-omniva.php (added)
-
tags/1.7.1/woocommerce/checkout/form-shipping-smartpost-courier.php (added)
-
tags/1.7.1/woocommerce/checkout/form-shipping-smartpost.php (added)
-
trunk/estonian-shipping-methods-for-woocommerce.php (modified) (2 diffs)
-
trunk/includes/abstracts/class-wc-estonian-shipping-method-smartpost.php (modified) (2 diffs)
-
trunk/includes/methods/class-wc-estonian-shipping-method-smartpost-estonia.php (modified) (1 diff)
-
trunk/includes/methods/class-wc-estonian-shipping-method-smartpost-finland.php (modified) (1 diff)
-
trunk/includes/methods/class-wc-estonian-shipping-method-smartpost-latvia.php (modified) (1 diff)
-
trunk/includes/methods/class-wc-estonian-shipping-method-smartpost-lithuania.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
estonian-shipping-methods-for-woocommerce/trunk/estonian-shipping-methods-for-woocommerce.php
r2883818 r2884676 4 4 * Plugin URI: https://github.com/KonektOU/estonian-shipping-methods-for-woocommerce 5 5 * Description: Extends WooCommerce with most commonly used Estonian shipping methods. 6 * Version: 1.7 6 * Version: 1.7.1 7 7 * Author: Konekt OÜ 8 8 * Author URI: https://www.konekt.ee … … 12 12 * Domain Path: /languages 13 13 * WC requires at least: 3.3 14 * WC tested up to: 7. 214 * WC tested up to: 7.5.1 15 15 * 16 16 * @package Estonian_Shipping_Methods_For_WooCommerce -
estonian-shipping-methods-for-woocommerce/trunk/includes/abstracts/class-wc-estonian-shipping-method-smartpost.php
r2883818 r2884676 62 62 63 63 /** 64 * Prefix for terminal number in new system 65 * 66 * @var string 67 */ 68 public $country_prefix = '01007'; 69 70 /** 64 71 * Class constructor 65 72 */ … … 105 112 return apply_filters( "wc_shipping_{$this->id}_terminals", $terminals, $this->get_shipping_country() ); 106 113 } 114 115 /** 116 * Get selected terminal ID from order meta 117 * 118 * @param integer $order_id Order ID. 119 * 120 * @return integer Selected terminal 121 */ 122 public function get_order_terminal( $order_id ) { 123 $order = wc_get_order( $order_id ); 124 125 if ( $order ) { 126 $terminal_id = $order->get_meta( $this->field_name, true ); 127 128 if ( strlen( $terminal_id ) < 5 ) { 129 return $this->get_prefixed_order_terminal( $terminal_id ); 130 } 131 } 132 133 return false; 134 } 135 136 /** 137 * Prepend country prefix to terminal ID 138 * 139 * @param integer $terminal_id Terminal ID. 140 * 141 * @return integer 142 */ 143 public function get_prefixed_order_terminal( $terminal_id ) { 144 return $this->country_prefix . $terminal_id; 145 } 107 146 } -
estonian-shipping-methods-for-woocommerce/trunk/includes/methods/class-wc-estonian-shipping-method-smartpost-estonia.php
r2883818 r2884676 24 24 25 25 // Set country. 26 $this->country = 'EE'; 26 $this->country = 'EE'; 27 $this->country_prefix = '01007'; 27 28 28 29 // Add/merge form fields. -
estonian-shipping-methods-for-woocommerce/trunk/includes/methods/class-wc-estonian-shipping-method-smartpost-finland.php
r2883818 r2884676 23 23 parent::__construct(); 24 24 25 $this->country = 'FI'; 25 // Set country. 26 $this->country = 'FI'; 27 $this->country_prefix = ''; 26 28 27 29 // Add/merge form fields. -
estonian-shipping-methods-for-woocommerce/trunk/includes/methods/class-wc-estonian-shipping-method-smartpost-latvia.php
r2883818 r2884676 24 24 25 25 // Set country. 26 $this->country = 'LV'; 26 $this->country = 'LV'; 27 $this->country_prefix = '01008'; 27 28 } 28 29 -
estonian-shipping-methods-for-woocommerce/trunk/includes/methods/class-wc-estonian-shipping-method-smartpost-lithuania.php
r2883818 r2884676 24 24 25 25 // Set country. 26 $this->country = 'LT'; 26 $this->country = 'LT'; 27 $this->country_prefix = '01009'; 27 28 } 28 29 -
estonian-shipping-methods-for-woocommerce/trunk/readme.txt
r2883818 r2884676 4 4 Requires at least: 4.1 5 5 Tested up to: 6.1.1 6 Stable tag: 1.7 6 Stable tag: 1.7.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 17 17 * Omniva parcel terminals (Estonia, Latvia, Lithuania) 18 18 * Omniva post offices (Estonia) 19 * SmartPOST parcel terminals (Estonia, Finland )19 * SmartPOST parcel terminals (Estonia, Finland, Latvia, Lithuania) 20 20 * SmartPOST courier 21 21 * Collect.net packrobots (Estonia) … … 52 52 == Changelog == 53 53 54 = 1.7.1 = 55 * Add support for older orders locations (SmartPost) 56 54 57 = 1.7 = 55 58 * Use DPD API for pickup locations instead of soon-to-be-deprecated FTP json 56 59 * Use Smartpost API for pickup locations 57 60 * Add Smartpost Latvia 58 * Add Smartpost Lithuani e61 * Add Smartpost Lithuania 59 62 60 63 = 1.6.2 =
Note: See TracChangeset
for help on using the changeset viewer.