Plugin Directory

Changeset 3122012


Ignore:
Timestamp:
07/19/2024 11:48:24 AM (21 months ago)
Author:
antidot-dev
Message:

Release 3.1.8

Location:
bpost-shipping/trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • bpost-shipping/trunk/bpost-shipping.php

    r3119293 r3122012  
    66 * Author: bpost
    77 * Author URI: https://www.bpost.be/
    8  * Version: 3.1.7
     8 * Version: 3.1.8
    99 * WC requires at least: 3.0
    1010 * WC tested up to: 8.9
     
    1515define( 'BPOST_PLUGIN_DIR', __DIR__ );
    1616define( 'BPOST_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    17 define( 'BPOST_PLUGIN_VERSION', '3.1.7' );
     17define( 'BPOST_PLUGIN_VERSION', '3.1.8' );
    1818
    1919/**
  • bpost-shipping/trunk/classes/factory/class-wc-bpost-shipping-factory-form.php

    r2890340 r3122012  
    7272                'desc_tip'    => true,
    7373                'default'     => '',
    74             ),
    75             'api_url'        => array(
    76                 'title'       => bpost__( 'bpost API URL' ),
    77                 'type'        => 'text',
    78                 'description' => bpost__( 'Enter the front-end URL of the API' ),
    79                 'desc_tip'    => true,
    80                 // TODO Bpost::API_URL is repeated at three linked position. Is it really needed ?
    81                 'default'     => Bpost::API_URL,
    8274            ),
    8375        );
  • bpost-shipping/trunk/classes/options/class-wc-bpost-shipping-options-base.php

    r2890340 r3122012  
    7171    private function migrate_option( $old_key, $new_key ) {
    7272        if ( $this->has_option( $old_key ) ) {
    73             $this->options[ $new_key ] = $this->options[ $old_key ];
     73            if ( ! empty( $new_key ) ) {
     74                $this->options[ $new_key ] = $this->options[ $old_key ];
     75            }
    7476            unset( $this->options[ $old_key ] );
    7577
     
    147149
    148150    /**
    149      * TODO Bpost::API_URL is repeated at three linked position. Is it really needed?
    150151     * @return string
    151152     */
    152153    public function get_api_url() {
    153         if ( $api_url = $this->get_option( 'api_url' ) ) {
    154             // remove spaces to avoid stupid curl errors
    155             return str_replace( ' ', '', $api_url );
    156         }
    157 
    158         return \Bpost\BpostApiClient\Bpost::API_URL;
     154        // Remove the option "api_url"
     155        $this->migrate_option( 'api_url', '' ); // To delete after 2025-06-05
     156
     157        return 'https://shm-rest.bpost.cloud/services/shm';
    159158    }
    160159
     
    173172        WC_BPost_Shipping_Delivery_Methods $delivery_methods
    174173    ) {
    175 
    176174        if ( $this->is_free_shipping(
    177175            $shipping_address->get_shipping_country(),
     
    198196     */
    199197    public function is_free_shipping( $country_iso_2, $amount, array $free_shipping_coupons ) {
    200         return $this->is_free_country_for_amount( $country_iso_2, $amount ) || $this->has_free_shipping_coupon( $free_shipping_coupons );
     198        return $this->is_free_country_for_amount( $country_iso_2, $amount )
     199               || $this->has_free_shipping_coupon( $free_shipping_coupons );
    201200    }
    202201
  • bpost-shipping/trunk/languages/bpost_shipping.pot

    r3119293 r3122012  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: bpost shipping 3.1.7\n"
     5"Project-Id-Version: bpost shipping 3.1.8\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/package\n"
    7 "POT-Creation-Date: 2024-07-16 14:14:10+00:00\n"
     7"POT-Creation-Date: 2024-07-19 11:47:38+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=UTF-8\n"
     
    197197msgstr ""
    198198
    199 #. #-#-#-#-#  bpost_shipping.pot (bpost shipping 3.1.7)  #-#-#-#-#
     199#. #-#-#-#-#  bpost_shipping.pot (bpost shipping 3.1.8)  #-#-#-#-#
    200200#. Author of the plugin/theme
    201201#: classes/class-wc-bpost-shipping-method.php:264
     
    259259msgstr ""
    260260
    261 #: classes/factory/class-wc-bpost-shipping-factory-form.php:76
    262 msgid "bpost API URL"
    263 msgstr ""
    264 
    265 #: classes/factory/class-wc-bpost-shipping-factory-form.php:78
    266 msgid "Enter the front-end URL of the API"
    267 msgstr ""
    268 
    269 #: classes/factory/class-wc-bpost-shipping-factory-form.php:93
     261#: classes/factory/class-wc-bpost-shipping-factory-form.php:85
    270262msgid "Free shipping"
    271263msgstr ""
    272264
    273 #: classes/factory/class-wc-bpost-shipping-factory-form.php:96
     265#: classes/factory/class-wc-bpost-shipping-factory-form.php:88
    274266msgid ""
    275267"This plugin supports the free shipping options. Setup them %s here %s\n"
     
    282274msgstr ""
    283275
    284 #: classes/factory/class-wc-bpost-shipping-factory-form.php:101
     276#: classes/factory/class-wc-bpost-shipping-factory-form.php:93
    285277msgid "Go to the coupons management page"
    286278msgstr ""
    287279
    288 #: classes/factory/class-wc-bpost-shipping-factory-form.php:110
     280#: classes/factory/class-wc-bpost-shipping-factory-form.php:102
    289281msgid "Free shipping settings"
    290282msgstr ""
    291283
    292 #: classes/factory/class-wc-bpost-shipping-factory-form.php:124
     284#: classes/factory/class-wc-bpost-shipping-factory-form.php:116
    293285msgid "bpost labels settings"
    294286msgstr ""
    295287
    296 #: classes/factory/class-wc-bpost-shipping-factory-form.php:129
     288#: classes/factory/class-wc-bpost-shipping-factory-form.php:121
    297289msgid "bpost labels size"
    298290msgstr ""
    299291
    300 #: classes/factory/class-wc-bpost-shipping-factory-form.php:133
     292#: classes/factory/class-wc-bpost-shipping-factory-form.php:125
    301293msgid "A4"
    302294msgstr ""
    303295
    304 #: classes/factory/class-wc-bpost-shipping-factory-form.php:134
     296#: classes/factory/class-wc-bpost-shipping-factory-form.php:126
    305297msgid "A6"
    306298msgstr ""
    307299
    308 #: classes/factory/class-wc-bpost-shipping-factory-form.php:139
     300#: classes/factory/class-wc-bpost-shipping-factory-form.php:131
    309301msgid "Enable return labels"
    310302msgstr ""
    311303
     304#: classes/factory/class-wc-bpost-shipping-factory-form.php:138
     305msgid "Cache duration"
     306msgstr ""
     307
     308#: classes/factory/class-wc-bpost-shipping-factory-form.php:141
     309msgid "No cache (could be slower)"
     310msgstr ""
     311
     312#: classes/factory/class-wc-bpost-shipping-factory-form.php:142
     313msgid "1 week"
     314msgstr ""
     315
     316#: classes/factory/class-wc-bpost-shipping-factory-form.php:143
     317msgid "2 weeks"
     318msgstr ""
     319
     320#: classes/factory/class-wc-bpost-shipping-factory-form.php:144
     321msgid "3 weeks"
     322msgstr ""
     323
     324#: classes/factory/class-wc-bpost-shipping-factory-form.php:145
     325msgid "1 month"
     326msgstr ""
     327
    312328#: classes/factory/class-wc-bpost-shipping-factory-form.php:146
    313 msgid "Cache duration"
     329msgid "2 month"
     330msgstr ""
     331
     332#: classes/factory/class-wc-bpost-shipping-factory-form.php:147
     333msgid "6 months"
     334msgstr ""
     335
     336#: classes/factory/class-wc-bpost-shipping-factory-form.php:148
     337msgid "1 year"
    314338msgstr ""
    315339
    316340#: classes/factory/class-wc-bpost-shipping-factory-form.php:149
    317 msgid "No cache (could be slower)"
    318 msgstr ""
    319 
    320 #: classes/factory/class-wc-bpost-shipping-factory-form.php:150
    321 msgid "1 week"
    322 msgstr ""
    323 
    324 #: classes/factory/class-wc-bpost-shipping-factory-form.php:151
    325 msgid "2 weeks"
    326 msgstr ""
    327 
    328 #: classes/factory/class-wc-bpost-shipping-factory-form.php:152
    329 msgid "3 weeks"
    330 msgstr ""
    331 
    332 #: classes/factory/class-wc-bpost-shipping-factory-form.php:153
    333 msgid "1 month"
    334 msgstr ""
    335 
    336 #: classes/factory/class-wc-bpost-shipping-factory-form.php:154
    337 msgid "2 month"
    338 msgstr ""
    339 
    340 #: classes/factory/class-wc-bpost-shipping-factory-form.php:155
    341 msgid "6 months"
    342 msgstr ""
    343 
    344 #: classes/factory/class-wc-bpost-shipping-factory-form.php:156
    345 msgid "1 year"
    346 msgstr ""
    347 
    348 #: classes/factory/class-wc-bpost-shipping-factory-form.php:157
    349341msgid "Infinity (never clear cache)"
    350342msgstr ""
    351343
    352 #: classes/factory/class-wc-bpost-shipping-factory-form.php:172
     344#: classes/factory/class-wc-bpost-shipping-factory-form.php:164
    353345msgid "bpost labels local storage location (advanced setting)"
    354346msgstr ""
    355347
    356 #: classes/factory/class-wc-bpost-shipping-factory-form.php:174
     348#: classes/factory/class-wc-bpost-shipping-factory-form.php:166
    357349msgid ""
    358350"\n"
     
    375367msgstr ""
    376368
    377 #: classes/factory/class-wc-bpost-shipping-factory-form.php:188
     369#: classes/factory/class-wc-bpost-shipping-factory-form.php:180
    378370msgid "Store bpost labels as simple files"
    379371msgstr ""
    380372
    381 #: classes/factory/class-wc-bpost-shipping-factory-form.php:194
     373#: classes/factory/class-wc-bpost-shipping-factory-form.php:186
    382374msgid "Labels stored as simple files: root folder path"
    383375msgstr ""
    384376
    385 #: classes/factory/class-wc-bpost-shipping-factory-form.php:207
     377#: classes/factory/class-wc-bpost-shipping-factory-form.php:199
    386378msgid "Labels website API"
    387379msgstr ""
    388380
    389 #: classes/factory/class-wc-bpost-shipping-factory-form.php:209
     381#: classes/factory/class-wc-bpost-shipping-factory-form.php:201
    390382msgid ""
    391383"\n"
     
    400392msgstr ""
    401393
    402 #: classes/factory/class-wc-bpost-shipping-factory-form.php:218
     394#: classes/factory/class-wc-bpost-shipping-factory-form.php:210
    403395msgid "Website API key"
    404396msgstr ""
    405397
    406 #: classes/factory/class-wc-bpost-shipping-factory-form.php:230
     398#: classes/factory/class-wc-bpost-shipping-factory-form.php:222
    407399msgid "Google"
    408400msgstr ""
    409401
    410 #: classes/factory/class-wc-bpost-shipping-factory-form.php:235
     402#: classes/factory/class-wc-bpost-shipping-factory-form.php:227
    411403msgid "API key for maps"
    412404msgstr ""
    413405
    414 #: classes/factory/class-wc-bpost-shipping-factory-form.php:248
     406#: classes/factory/class-wc-bpost-shipping-factory-form.php:240
    415407msgid "bpost transactions logs"
    416408msgstr ""
    417409
    418 #: classes/factory/class-wc-bpost-shipping-factory-form.php:251
     410#: classes/factory/class-wc-bpost-shipping-factory-form.php:243
    419411msgid ""
    420412"<p>When errors occur, the plugin write logs in an file. You can see the file "
     
    426418msgstr ""
    427419
     420#: classes/factory/class-wc-bpost-shipping-factory-form.php:248
     421msgid "Go to the logs page"
     422msgstr ""
     423
     424#: classes/factory/class-wc-bpost-shipping-factory-form.php:253
     425msgid "Debug mode"
     426msgstr ""
     427
    428428#: classes/factory/class-wc-bpost-shipping-factory-form.php:256
    429 msgid "Go to the logs page"
     429msgid ""
     430"Log interactions between plugin and bpost services (API/Shipping Manager)"
     431msgstr ""
     432
     433#: classes/factory/class-wc-bpost-shipping-factory-form.php:259
     434msgid "Clean"
    430435msgstr ""
    431436
    432437#: classes/factory/class-wc-bpost-shipping-factory-form.php:261
    433 msgid "Debug mode"
    434 msgstr ""
    435 
    436 #: classes/factory/class-wc-bpost-shipping-factory-form.php:264
    437 msgid ""
    438 "Log interactions between plugin and bpost services (API/Shipping Manager)"
    439 msgstr ""
    440 
    441 #: classes/factory/class-wc-bpost-shipping-factory-form.php:267
    442 msgid "Clean"
    443 msgstr ""
    444 
    445 #: classes/factory/class-wc-bpost-shipping-factory-form.php:269
    446438msgid "Clear the log file"
    447439msgstr ""
  • bpost-shipping/trunk/readme.txt

    r3119293 r3122012  
    88Tested up to: 6.5
    99Requires PHP: 7.4
    10 Stable tag: 3.1.7
     10Stable tag: 3.1.8
    1111License: GPLv2 or later
    1212License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1201205. Configure your bpost shipping settings under the Woocommerce shipping > bpost shipping tab
    121121== Changelog ==
     122
     123#### 3.1.8
     124
     125*Release date: 2024-07-19*
     126
     127* bpost API URL is now https://shm-rest.bpost.cloud/services/shm
    122128
    123129#### 3.1.7
Note: See TracChangeset for help on using the changeset viewer.