Plugin Directory

Changeset 3435070


Ignore:
Timestamp:
01/08/2026 11:09:01 AM (2 months ago)
Author:
webikon
Message:

Added free shipping threshold option for weight-based shipping rates

Location:
wc-dpd
Files:
94 added
6 edited

Legend:

Unmodified
Added
Removed
  • wc-dpd/trunk/includes/DpdParcelShopShippingMethod.php

    r3394309 r3435070  
    1010    public const SHIPPING_PRICE_TYPE_OPTION_KEY = 'wc_dpd_shipping_price_type';
    1111    public const FREE_FIXED_SHIPPING_OPTION_KEY = 'wc_dpd_free_shipping_price';
     12    public const FREE_WEIGHT_BASED_SHIPPING_OPTION_KEY = 'wc_dpd_free_weight_based_shipping_price';
    1213    public const DISALLOW_SHOPS_OPTION_KEY = 'wc_dpd_disallow_shops';
    1314    public const DISALLOW_LOCKERS_OPTION_KEY = 'wc_dpd_disallow_lockers';
     
    214215                'class' => 'js-dpd-weight-based-shipping-type'
    215216            ],
     217            self::FREE_WEIGHT_BASED_SHIPPING_OPTION_KEY => [
     218                'title' => __('Free shipping from', 'wc-dpd'),
     219                'type' => 'price',
     220                'description' => __('Set minimum cart value for free shipping. Leave empty to disable free shipping entirely.', 'wc-dpd'),
     221                'default' => '',
     222                'desc_tip' => true,
     223                'placeholder' => wc_format_localized_price(0),
     224                'class' => 'js-dpd-weight-based-shipping-type'
     225            ],
    216226            self::PACKAGE_WEIGHT_SHIPPING_LIMITS_OPTION_KEY => [
    217227                'title' => __('Setting the weight limits for packages', 'wc-dpd'),
     
    414424            !empty($this->instance_settings[self::PRODUCTS_WEIGHT_SHIPPING_RATES_OPTION_KEY])
    415425        ) {
    416             $items_total_weight = self::getCartTotalWeight();
    417             $products_weight_based_rates = maybe_unserialize($this->instance_settings[self::PRODUCTS_WEIGHT_SHIPPING_RATES_OPTION_KEY]);
    418 
    419             if (!empty($products_weight_based_rates)) {
    420                 foreach ($products_weight_based_rates as $products_weight_rate) {
    421                     $weight_rate_from = !empty($products_weight_rate['min']) ? (int) $products_weight_rate['min'] : 0;
    422                     $weight_rate_to = !empty($products_weight_rate['max']) ? (int) $products_weight_rate['max'] : 999;
    423 
    424                     if ($items_total_weight >= $weight_rate_from) {
    425                         $rate['cost'] = !empty($products_weight_rate['price']) ? number_format((float) $products_weight_rate['price'], wc_get_price_decimals(), '.', '') : 0;
    426                     }
    427 
    428                     if ($items_total_weight >= $weight_rate_from && $items_total_weight <= $weight_rate_to) {
    429                         $rate['cost'] = !empty($products_weight_rate['price']) ? number_format((float) $products_weight_rate['price'], wc_get_price_decimals(), '.', '') : 0;
     426            // Check if free shipping threshold for weight-based is set
     427            $free_weight_shipping_is_set = isset($this->instance_settings[self::FREE_WEIGHT_BASED_SHIPPING_OPTION_KEY]) &&
     428                                           $this->instance_settings[self::FREE_WEIGHT_BASED_SHIPPING_OPTION_KEY] !== '' &&
     429                                           $this->instance_settings[self::FREE_WEIGHT_BASED_SHIPPING_OPTION_KEY] !== null;
     430
     431            $free_weight_shipping = $free_weight_shipping_is_set ? (float) $this->instance_settings[self::FREE_WEIGHT_BASED_SHIPPING_OPTION_KEY] : false;
     432
     433            // Deduct tax from free shipping threshold if prices include tax
     434            if ($free_weight_shipping_is_set && wc_prices_include_tax()) {
     435                $tax_total = WC()->cart->get_cart_contents_tax();
     436                $free_weight_shipping -= $tax_total;
     437            }
     438
     439            // Check if cart total qualifies for free shipping
     440            if ($free_weight_shipping_is_set && $cart_total >= $free_weight_shipping) {
     441                $rate['cost'] = 0;
     442            } else {
     443                // Calculate weight-based rate
     444                $items_total_weight = self::getCartTotalWeight();
     445                $products_weight_based_rates = maybe_unserialize($this->instance_settings[self::PRODUCTS_WEIGHT_SHIPPING_RATES_OPTION_KEY]);
     446
     447                if (!empty($products_weight_based_rates)) {
     448                    foreach ($products_weight_based_rates as $products_weight_rate) {
     449                        $weight_rate_from = !empty($products_weight_rate['min']) ? (int) $products_weight_rate['min'] : 0;
     450                        $weight_rate_to = !empty($products_weight_rate['max']) ? (int) $products_weight_rate['max'] : 999;
     451
     452                        if ($items_total_weight >= $weight_rate_from) {
     453                            $rate['cost'] = !empty($products_weight_rate['price']) ? number_format((float) $products_weight_rate['price'], wc_get_price_decimals(), '.', '') : 0;
     454                        }
     455
     456                        if ($items_total_weight >= $weight_rate_from && $items_total_weight <= $weight_rate_to) {
     457                            $rate['cost'] = !empty($products_weight_rate['price']) ? number_format((float) $products_weight_rate['price'], wc_get_price_decimals(), '.', '') : 0;
     458                        }
    430459                    }
    431460                }
  • wc-dpd/trunk/languages/wc-dpd-sk_SK.po

    r3394309 r3435070  
    33"Project-Id-Version: DPD SK for WooCommerce - 8.3.0\n"
    44"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-dpd\n"
    5 "POT-Creation-Date: 2025-11-12T12:18:50+00:00\n"
    6 "PO-Revision-Date: 2025-11-12 13:19+0100\n"
     5"POT-Creation-Date: 2026-01-08T11:04:52+00:00\n"
     6"PO-Revision-Date: 2026-01-08 12:05+0100\n"
    77"Last-Translator: \n"
    88"Language-Team: Slovenčina\n"
     
    267267
    268268#: includes/DpdExportSettings.php:311
    269 #: includes/DpdParcelShopShippingMethod.php:591
     269#: includes/DpdParcelShopShippingMethod.php:620
    270270msgid "Remove"
    271271msgstr "Odstrániť"
     
    283283msgstr "ID Adresy"
    284284
    285 #: includes/DpdParcelShopShippingMethod.php:63
     285#: includes/DpdParcelShopShippingMethod.php:64
    286286msgid "DPD parcelshop"
    287287msgstr "DPD Pickup/Pickup Station"
    288288
    289 #: includes/DpdParcelShopShippingMethod.php:64
     289#: includes/DpdParcelShopShippingMethod.php:65
    290290msgid "Allow customers to deliver to the DPD parcelshops."
    291291msgstr "Umožnite zákazníkom doručovať zásielky do DPD Pickup/Pickup Station."
    292292
    293 #: includes/DpdParcelShopShippingMethod.php:86
     293#: includes/DpdParcelShopShippingMethod.php:87
    294294msgid "DPD Pickup/Pickup Station"
    295295msgstr "DPD Pickup/Pickup Station"
    296296
    297 #: includes/DpdParcelShopShippingMethod.php:123
    298 #: includes/DpdParcelShopShippingMethod.php:662
     297#: includes/DpdParcelShopShippingMethod.php:124
     298#: includes/DpdParcelShopShippingMethod.php:691
    299299msgid ""
    300300"At least one pickup point type must remain enabled. You cannot disable shops "
     
    304304"obchody a všetky typy boxov súčasne."
    305305
    306 #: includes/DpdParcelShopShippingMethod.php:139
    307 #: includes/DpdParcelShopShippingMethod.php:663
     306#: includes/DpdParcelShopShippingMethod.php:140
     307#: includes/DpdParcelShopShippingMethod.php:692
    308308msgid ""
    309309"You cannot disable all lockers globally and also disable all individual "
     
    313313"jednotlivé typy boxov. Táto konfigurácia je nadbytočná."
    314314
    315 #: includes/DpdParcelShopShippingMethod.php:163
     315#: includes/DpdParcelShopShippingMethod.php:164
    316316msgid "Tax status"
    317317msgstr "Zdaniteľnosť"
    318318
    319 #: includes/DpdParcelShopShippingMethod.php:168
     319#: includes/DpdParcelShopShippingMethod.php:169
    320320msgctxt "Tax status"
    321321msgid "None"
    322322msgstr "Nezdaňuje sa"
    323323
    324 #: includes/DpdParcelShopShippingMethod.php:169
     324#: includes/DpdParcelShopShippingMethod.php:170
    325325msgid "Taxable"
    326326msgstr "Zdaniteľný"
    327327
    328 #: includes/DpdParcelShopShippingMethod.php:173
     328#: includes/DpdParcelShopShippingMethod.php:174
    329329msgid "Shipping type"
    330330msgstr "Typ dopravy"
    331331
    332 #: includes/DpdParcelShopShippingMethod.php:176
     332#: includes/DpdParcelShopShippingMethod.php:177
    333333msgid "Fixed shipping price"
    334334msgstr "Pevná cena dopravy"
    335335
    336 #: includes/DpdParcelShopShippingMethod.php:177
     336#: includes/DpdParcelShopShippingMethod.php:178
    337337msgid "Products weight based shipping price"
    338338msgstr "Sadzba dopravy podľa hmotnosti produktov"
    339339
    340 #: includes/DpdParcelShopShippingMethod.php:179
     340#: includes/DpdParcelShopShippingMethod.php:180
    341341msgid "Choose type of the shipping."
    342342msgstr "Vyberte typ dopravy."
    343343
    344 #: includes/DpdParcelShopShippingMethod.php:184
     344#: includes/DpdParcelShopShippingMethod.php:185
    345345msgid "Delivery fee"
    346346msgstr "Poplatok"
    347347
    348 #: includes/DpdParcelShopShippingMethod.php:186
     348#: includes/DpdParcelShopShippingMethod.php:187
    349349msgid "What fee do you want to charge for shipping to the parcelshop."
    350350msgstr "Aký poplatok chcete účtovať za prepravu do DPD Pickup/Pickup Station."
    351351
    352 #: includes/DpdParcelShopShippingMethod.php:193
     352#: includes/DpdParcelShopShippingMethod.php:194
     353#: includes/DpdParcelShopShippingMethod.php:218
    353354msgid "Free shipping from"
    354355msgstr "Doprava zdarma od"
    355356
    356 #: includes/DpdParcelShopShippingMethod.php:195
     357#: includes/DpdParcelShopShippingMethod.php:196
     358#: includes/DpdParcelShopShippingMethod.php:220
    357359msgid ""
    358360"Set minimum cart value for free shipping. Leave empty to disable free "
     
    362364"zakázanie dopravy zdarma."
    363365
    364 #: includes/DpdParcelShopShippingMethod.php:202
     366#: includes/DpdParcelShopShippingMethod.php:203
    365367msgid "Products weight based shipping rates"
    366368msgstr "Sadzby dopravy podľa hmotnosti produktov"
    367369
    368 #: includes/DpdParcelShopShippingMethod.php:204
     370#: includes/DpdParcelShopShippingMethod.php:205
    369371msgid "Add shipping rates based on the weight of products in the cart."
    370372msgstr "Pridajte sadzby za dopravu na základe hmotnosti produktov v košíku."
    371373
    372 #: includes/DpdParcelShopShippingMethod.php:206
     374#: includes/DpdParcelShopShippingMethod.php:207
    373375msgid "Shipping rate"
    374376msgstr "Sadzba za prepravu"
    375377
    376 #: includes/DpdParcelShopShippingMethod.php:207
     378#: includes/DpdParcelShopShippingMethod.php:208
    377379msgid "Min weight (%s)"
    378380msgstr "Min. hmotnosť (%s)"
    379381
    380 #: includes/DpdParcelShopShippingMethod.php:208
     382#: includes/DpdParcelShopShippingMethod.php:209
    381383msgid "Max weight (%s)"
    382384msgstr "Max. hmotnosť (%s)"
    383385
    384 #: includes/DpdParcelShopShippingMethod.php:209
    385 #: includes/DpdParcelShopShippingMethod.php:212
     386#: includes/DpdParcelShopShippingMethod.php:210
     387#: includes/DpdParcelShopShippingMethod.php:213
    386388msgid "Price"
    387389msgstr "Cena"
    388390
    389 #: includes/DpdParcelShopShippingMethod.php:209
     391#: includes/DpdParcelShopShippingMethod.php:210
    390392msgid "with"
    391393msgstr "s"
    392394
    393 #: includes/DpdParcelShopShippingMethod.php:209
     395#: includes/DpdParcelShopShippingMethod.php:210
    394396msgid "without"
    395397msgstr "bez"
    396398
    397 #: includes/DpdParcelShopShippingMethod.php:209
     399#: includes/DpdParcelShopShippingMethod.php:210
    398400msgid "tax"
    399401msgstr "DPH"
    400402
    401 #: includes/DpdParcelShopShippingMethod.php:210
     403#: includes/DpdParcelShopShippingMethod.php:211
    402404msgid "Min weight"
    403405msgstr "Min. hmotnosť"
    404406
    405 #: includes/DpdParcelShopShippingMethod.php:211
     407#: includes/DpdParcelShopShippingMethod.php:212
    406408msgid "Max weight"
    407409msgstr "Max. hmotnosť"
    408410
    409 #: includes/DpdParcelShopShippingMethod.php:213
     411#: includes/DpdParcelShopShippingMethod.php:214
    410412msgid "Add a shipping rate"
    411413msgstr "Pridať sadzbu dopravy"
    412414
    413 #: includes/DpdParcelShopShippingMethod.php:217
     415#: includes/DpdParcelShopShippingMethod.php:227
    414416msgid "Setting the weight limits for packages"
    415417msgstr "Nastavenie hmotnostných limitov pre balíky"
    416418
    417 #: includes/DpdParcelShopShippingMethod.php:218
     419#: includes/DpdParcelShopShippingMethod.php:228
    418420msgid ""
    419421"If the shipment does not meet the conditions for delivery in a parcelbox, "
     
    423425"dopravy sa nezobrazí."
    424426
    425 #: includes/DpdParcelShopShippingMethod.php:225
     427#: includes/DpdParcelShopShippingMethod.php:235
    426428msgid "Maximum weight"
    427429msgstr "Maximálna hmotnosť"
    428430
    429 #: includes/DpdParcelShopShippingMethod.php:232
     431#: includes/DpdParcelShopShippingMethod.php:242
    430432msgid "Maximum weight for Alzabox"
    431433msgstr "Maximálna hmotnosť pre Alzabox"
    432434
    433 #: includes/DpdParcelShopShippingMethod.php:239
     435#: includes/DpdParcelShopShippingMethod.php:249
    434436msgid "Maximum weight for Slovenska Posta box"
    435437msgstr "Maximálna hmotnosť pre box Slovenskej Pošty"
    436438
    437 #: includes/DpdParcelShopShippingMethod.php:246
     439#: includes/DpdParcelShopShippingMethod.php:256
    438440msgid "Maximum weight for Z-Box (Packeta)"
    439441msgstr "Maximálna hmotnosť pre Z-Box (Packeta)"
    440442
    441 #: includes/DpdParcelShopShippingMethod.php:253
     443#: includes/DpdParcelShopShippingMethod.php:263
    442444msgid "Setting the dimension limits for packages"
    443445msgstr "Nastavenie rozmerových limitov pre balíky"
    444446
    445 #: includes/DpdParcelShopShippingMethod.php:254
     447#: includes/DpdParcelShopShippingMethod.php:264
    446448msgid ""
    447449"If the shipment does not meet the conditions for delivery in a box, this "
     
    451453"dopravy sa nezobrazí."
    452454
    453 #: includes/DpdParcelShopShippingMethod.php:261
     455#: includes/DpdParcelShopShippingMethod.php:271
    454456msgid "Maximum width"
    455457msgstr "Maximálna šírka"
    456458
    457 #: includes/DpdParcelShopShippingMethod.php:266
     459#: includes/DpdParcelShopShippingMethod.php:276
    458460msgid "Maximum height"
    459461msgstr "Maximálna výška"
    460462
    461 #: includes/DpdParcelShopShippingMethod.php:271
     463#: includes/DpdParcelShopShippingMethod.php:281
    462464msgid "Maximum length"
    463465msgstr "Maximálna dĺžka"
    464466
    465 #: includes/DpdParcelShopShippingMethod.php:276
     467#: includes/DpdParcelShopShippingMethod.php:286
    466468msgid "Maximum width for Alzabox"
    467469msgstr "Maximálna šírka pre Alzabox"
    468470
    469 #: includes/DpdParcelShopShippingMethod.php:281
     471#: includes/DpdParcelShopShippingMethod.php:291
    470472msgid "Maximum height for Alzabox"
    471473msgstr "Maximálna výška pre Alzabox"
    472474
    473 #: includes/DpdParcelShopShippingMethod.php:286
     475#: includes/DpdParcelShopShippingMethod.php:296
    474476msgid "Maximum length for Alzabox"
    475477msgstr "Maximálna dĺžka pre Alzabox"
    476478
    477 #: includes/DpdParcelShopShippingMethod.php:291
     479#: includes/DpdParcelShopShippingMethod.php:301
    478480msgid "Maximum width for Slovenska Posta box"
    479481msgstr "Maximálna šírka pre box Slovenskej Pošty"
    480482
    481 #: includes/DpdParcelShopShippingMethod.php:296
     483#: includes/DpdParcelShopShippingMethod.php:306
    482484msgid "Maximum height for Slovenska Posta box"
    483485msgstr "Maximálna výška pre box Slovenskej Pošty"
    484486
    485 #: includes/DpdParcelShopShippingMethod.php:301
     487#: includes/DpdParcelShopShippingMethod.php:311
    486488msgid "Maximum length for Slovenska Posta box"
    487489msgstr "Maximálna dĺžka pre box Slovenskej Pošty"
    488490
    489 #: includes/DpdParcelShopShippingMethod.php:306
     491#: includes/DpdParcelShopShippingMethod.php:316
    490492msgid "Maximum width for Z-Box (Packeta)"
    491493msgstr "Maximálna šírka pre Z-Box (Packeta)"
    492494
    493 #: includes/DpdParcelShopShippingMethod.php:311
     495#: includes/DpdParcelShopShippingMethod.php:321
    494496msgid "Maximum height for Z-Box (Packeta)"
    495497msgstr "Maximálna výška pre Z-Box (Packeta)"
    496498
    497 #: includes/DpdParcelShopShippingMethod.php:316
     499#: includes/DpdParcelShopShippingMethod.php:326
    498500msgid "Maximum length for Z-Box (Packeta)"
    499501msgstr "Maximálna dĺžka pre Z-Box (Packeta)"
    500502
    501 #: includes/DpdParcelShopShippingMethod.php:321
     503#: includes/DpdParcelShopShippingMethod.php:331
    502504msgid "Disallow Shops"
    503505msgstr "Zakázať odberné miesta"
    504506
    505 #: includes/DpdParcelShopShippingMethod.php:325
     507#: includes/DpdParcelShopShippingMethod.php:335
    506508msgid "If checked, DPD Pickup shops will be disabled."
    507509msgstr "Ak je začiarknuté, všetky DPD Pickup odberné miesta budú zakázané."
    508510
    509 #: includes/DpdParcelShopShippingMethod.php:329
     511#: includes/DpdParcelShopShippingMethod.php:339
    510512msgid "Disallow Lockers"
    511513msgstr "Zakázať samoobslužné boxy"
    512514
    513 #: includes/DpdParcelShopShippingMethod.php:333
     515#: includes/DpdParcelShopShippingMethod.php:343
    514516msgid "If checked, all locker types will be disabled."
    515517msgstr "Ak je začiarknuté, všetky samoobslužné boxy budú zakázané."
    516518
    517 #: includes/DpdParcelShopShippingMethod.php:337
     519#: includes/DpdParcelShopShippingMethod.php:347
    518520msgid "Disallow DPD Pickup Stations"
    519521msgstr "Zakázať DPD Pickup samoobslužné boxy"
    520522
    521 #: includes/DpdParcelShopShippingMethod.php:341
     523#: includes/DpdParcelShopShippingMethod.php:351
    522524msgid "If checked, DPD Pickup Stations will be disabled."
    523525msgstr "Ak je začiarknuté, samoobslužné boxy DPD Pickup budú zakázané."
    524526
    525 #: includes/DpdParcelShopShippingMethod.php:345
     527#: includes/DpdParcelShopShippingMethod.php:355
    526528msgid "Disallow Slovenská Pošta Boxes"
    527529msgstr "Zakázať samoobslužné boxy Slovenskej Pošty"
    528530
    529 #: includes/DpdParcelShopShippingMethod.php:349
     531#: includes/DpdParcelShopShippingMethod.php:359
    530532msgid "If checked, Slovenská Pošta boxes will be disabled."
    531533msgstr "Ak je začiarknuté, samoobslužné boxy Slovenskej Pošty budú zakázané."
    532534
    533 #: includes/DpdParcelShopShippingMethod.php:353
     535#: includes/DpdParcelShopShippingMethod.php:363
    534536msgid "Disallow Alza Boxes"
    535537msgstr "Zakázať Alza samoobslužné boxy"
    536538
    537 #: includes/DpdParcelShopShippingMethod.php:357
     539#: includes/DpdParcelShopShippingMethod.php:367
    538540msgid "If checked, Alza Boxes will be disabled."
    539541msgstr "Ak je začiarknuté, samoobslužné Alza boxy budú zakázané."
    540542
    541 #: includes/DpdParcelShopShippingMethod.php:361
     543#: includes/DpdParcelShopShippingMethod.php:371
    542544msgid "Disallow Z-Box (Packeta)"
    543545msgstr "Zakázať Z-Box (Packeta)"
    544546
    545 #: includes/DpdParcelShopShippingMethod.php:365
     547#: includes/DpdParcelShopShippingMethod.php:375
    546548msgid "If checked, Z-Box (Packeta) will be disabled."
    547549msgstr "Ak je začiarknuté, Z-Box (Packeta) budú zakázané."
    548550
    549 #: includes/DpdParcelShopShippingMethod.php:592
     551#: includes/DpdParcelShopShippingMethod.php:621
    550552msgid "Title"
    551553msgstr "Názov"
  • wc-dpd/trunk/languages/wc-dpd.pot

    r3394309 r3435070  
    1 # Copyright (C) 2025 Webikon
     1# Copyright (C) 2026 Webikon
    22# This file is distributed under the GPLv2.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: DPD SK for WooCommerce 8.3.0\n"
     5"Project-Id-Version: DPD SK for WooCommerce 8.4.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-dpd\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-11-12T12:18:50+00:00\n"
     12"POT-Creation-Date: 2026-01-08T11:04:52+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
     
    250250
    251251#: includes/DpdExportSettings.php:311
    252 #: includes/DpdParcelShopShippingMethod.php:591
     252#: includes/DpdParcelShopShippingMethod.php:620
    253253msgid "Remove"
    254254msgstr ""
     
    266266msgstr ""
    267267
    268 #: includes/DpdParcelShopShippingMethod.php:63
     268#: includes/DpdParcelShopShippingMethod.php:64
    269269msgid "DPD parcelshop"
    270270msgstr ""
    271271
    272 #: includes/DpdParcelShopShippingMethod.php:64
     272#: includes/DpdParcelShopShippingMethod.php:65
    273273msgid "Allow customers to deliver to the DPD parcelshops."
    274274msgstr ""
    275275
    276 #: includes/DpdParcelShopShippingMethod.php:86
     276#: includes/DpdParcelShopShippingMethod.php:87
    277277msgid "DPD Pickup/Pickup Station"
    278278msgstr ""
    279279
    280 #: includes/DpdParcelShopShippingMethod.php:123
    281 #: includes/DpdParcelShopShippingMethod.php:662
     280#: includes/DpdParcelShopShippingMethod.php:124
     281#: includes/DpdParcelShopShippingMethod.php:691
    282282msgid "At least one pickup point type must remain enabled. You cannot disable shops and all locker types at the same time."
    283283msgstr ""
    284284
    285 #: includes/DpdParcelShopShippingMethod.php:139
    286 #: includes/DpdParcelShopShippingMethod.php:663
     285#: includes/DpdParcelShopShippingMethod.php:140
     286#: includes/DpdParcelShopShippingMethod.php:692
    287287msgid "You cannot disable all lockers globally and also disable all individual locker types at the same time. This configuration is redundant."
    288288msgstr ""
    289289
    290 #: includes/DpdParcelShopShippingMethod.php:163
     290#: includes/DpdParcelShopShippingMethod.php:164
    291291msgid "Tax status"
    292292msgstr ""
    293293
    294 #: includes/DpdParcelShopShippingMethod.php:168
     294#: includes/DpdParcelShopShippingMethod.php:169
    295295msgctxt "Tax status"
    296296msgid "None"
    297297msgstr ""
    298298
    299 #: includes/DpdParcelShopShippingMethod.php:169
     299#: includes/DpdParcelShopShippingMethod.php:170
    300300msgid "Taxable"
    301301msgstr ""
    302302
    303 #: includes/DpdParcelShopShippingMethod.php:173
     303#: includes/DpdParcelShopShippingMethod.php:174
    304304msgid "Shipping type"
    305305msgstr ""
    306306
    307 #: includes/DpdParcelShopShippingMethod.php:176
     307#: includes/DpdParcelShopShippingMethod.php:177
    308308msgid "Fixed shipping price"
    309309msgstr ""
    310310
    311 #: includes/DpdParcelShopShippingMethod.php:177
     311#: includes/DpdParcelShopShippingMethod.php:178
    312312msgid "Products weight based shipping price"
    313313msgstr ""
    314314
    315 #: includes/DpdParcelShopShippingMethod.php:179
     315#: includes/DpdParcelShopShippingMethod.php:180
    316316msgid "Choose type of the shipping."
    317317msgstr ""
    318318
    319 #: includes/DpdParcelShopShippingMethod.php:184
     319#: includes/DpdParcelShopShippingMethod.php:185
    320320msgid "Delivery fee"
    321321msgstr ""
    322322
    323 #: includes/DpdParcelShopShippingMethod.php:186
     323#: includes/DpdParcelShopShippingMethod.php:187
    324324msgid "What fee do you want to charge for shipping to the parcelshop."
    325325msgstr ""
    326326
    327 #: includes/DpdParcelShopShippingMethod.php:193
     327#: includes/DpdParcelShopShippingMethod.php:194
     328#: includes/DpdParcelShopShippingMethod.php:218
    328329msgid "Free shipping from"
    329330msgstr ""
    330331
    331 #: includes/DpdParcelShopShippingMethod.php:195
     332#: includes/DpdParcelShopShippingMethod.php:196
     333#: includes/DpdParcelShopShippingMethod.php:220
    332334msgid "Set minimum cart value for free shipping. Leave empty to disable free shipping entirely."
    333335msgstr ""
    334336
    335 #: includes/DpdParcelShopShippingMethod.php:202
     337#: includes/DpdParcelShopShippingMethod.php:203
    336338msgid "Products weight based shipping rates"
    337339msgstr ""
    338340
    339 #: includes/DpdParcelShopShippingMethod.php:204
     341#: includes/DpdParcelShopShippingMethod.php:205
    340342msgid "Add shipping rates based on the weight of products in the cart."
    341343msgstr ""
    342344
    343 #: includes/DpdParcelShopShippingMethod.php:206
     345#: includes/DpdParcelShopShippingMethod.php:207
    344346msgid "Shipping rate"
    345347msgstr ""
    346348
    347 #: includes/DpdParcelShopShippingMethod.php:207
     349#: includes/DpdParcelShopShippingMethod.php:208
    348350msgid "Min weight (%s)"
    349351msgstr ""
    350352
    351 #: includes/DpdParcelShopShippingMethod.php:208
     353#: includes/DpdParcelShopShippingMethod.php:209
    352354msgid "Max weight (%s)"
    353355msgstr ""
    354356
    355 #: includes/DpdParcelShopShippingMethod.php:209
     357#: includes/DpdParcelShopShippingMethod.php:210
     358#: includes/DpdParcelShopShippingMethod.php:213
     359msgid "Price"
     360msgstr ""
     361
     362#: includes/DpdParcelShopShippingMethod.php:210
     363msgid "with"
     364msgstr ""
     365
     366#: includes/DpdParcelShopShippingMethod.php:210
     367msgid "without"
     368msgstr ""
     369
     370#: includes/DpdParcelShopShippingMethod.php:210
     371msgid "tax"
     372msgstr ""
     373
     374#: includes/DpdParcelShopShippingMethod.php:211
     375msgid "Min weight"
     376msgstr ""
     377
    356378#: includes/DpdParcelShopShippingMethod.php:212
    357 msgid "Price"
    358 msgstr ""
    359 
    360 #: includes/DpdParcelShopShippingMethod.php:209
    361 msgid "with"
    362 msgstr ""
    363 
    364 #: includes/DpdParcelShopShippingMethod.php:209
    365 msgid "without"
    366 msgstr ""
    367 
    368 #: includes/DpdParcelShopShippingMethod.php:209
    369 msgid "tax"
    370 msgstr ""
    371 
    372 #: includes/DpdParcelShopShippingMethod.php:210
    373 msgid "Min weight"
    374 msgstr ""
    375 
    376 #: includes/DpdParcelShopShippingMethod.php:211
    377379msgid "Max weight"
    378380msgstr ""
    379381
    380 #: includes/DpdParcelShopShippingMethod.php:213
     382#: includes/DpdParcelShopShippingMethod.php:214
    381383msgid "Add a shipping rate"
    382384msgstr ""
    383385
    384 #: includes/DpdParcelShopShippingMethod.php:217
     386#: includes/DpdParcelShopShippingMethod.php:227
    385387msgid "Setting the weight limits for packages"
    386388msgstr ""
    387389
    388 #: includes/DpdParcelShopShippingMethod.php:218
     390#: includes/DpdParcelShopShippingMethod.php:228
    389391msgid "If the shipment does not meet the conditions for delivery in a parcelbox, this shipping method will not be displayed."
    390392msgstr ""
    391393
    392 #: includes/DpdParcelShopShippingMethod.php:225
     394#: includes/DpdParcelShopShippingMethod.php:235
    393395msgid "Maximum weight"
    394396msgstr ""
    395397
    396 #: includes/DpdParcelShopShippingMethod.php:232
     398#: includes/DpdParcelShopShippingMethod.php:242
    397399msgid "Maximum weight for Alzabox"
    398400msgstr ""
    399401
    400 #: includes/DpdParcelShopShippingMethod.php:239
     402#: includes/DpdParcelShopShippingMethod.php:249
    401403msgid "Maximum weight for Slovenska Posta box"
    402404msgstr ""
    403405
    404 #: includes/DpdParcelShopShippingMethod.php:246
     406#: includes/DpdParcelShopShippingMethod.php:256
    405407msgid "Maximum weight for Z-Box (Packeta)"
    406408msgstr ""
    407409
    408 #: includes/DpdParcelShopShippingMethod.php:253
     410#: includes/DpdParcelShopShippingMethod.php:263
    409411msgid "Setting the dimension limits for packages"
    410412msgstr ""
    411413
    412 #: includes/DpdParcelShopShippingMethod.php:254
     414#: includes/DpdParcelShopShippingMethod.php:264
    413415msgid "If the shipment does not meet the conditions for delivery in a box, this shipping method will not be displayed."
    414416msgstr ""
    415417
    416 #: includes/DpdParcelShopShippingMethod.php:261
     418#: includes/DpdParcelShopShippingMethod.php:271
    417419msgid "Maximum width"
    418420msgstr ""
    419421
    420 #: includes/DpdParcelShopShippingMethod.php:266
     422#: includes/DpdParcelShopShippingMethod.php:276
    421423msgid "Maximum height"
    422424msgstr ""
    423425
    424 #: includes/DpdParcelShopShippingMethod.php:271
     426#: includes/DpdParcelShopShippingMethod.php:281
    425427msgid "Maximum length"
    426428msgstr ""
    427429
    428 #: includes/DpdParcelShopShippingMethod.php:276
     430#: includes/DpdParcelShopShippingMethod.php:286
    429431msgid "Maximum width for Alzabox"
    430432msgstr ""
    431433
    432 #: includes/DpdParcelShopShippingMethod.php:281
     434#: includes/DpdParcelShopShippingMethod.php:291
    433435msgid "Maximum height for Alzabox"
    434436msgstr ""
    435437
    436 #: includes/DpdParcelShopShippingMethod.php:286
     438#: includes/DpdParcelShopShippingMethod.php:296
    437439msgid "Maximum length for Alzabox"
    438440msgstr ""
    439441
    440 #: includes/DpdParcelShopShippingMethod.php:291
     442#: includes/DpdParcelShopShippingMethod.php:301
    441443msgid "Maximum width for Slovenska Posta box"
    442444msgstr ""
    443445
    444 #: includes/DpdParcelShopShippingMethod.php:296
     446#: includes/DpdParcelShopShippingMethod.php:306
    445447msgid "Maximum height for Slovenska Posta box"
    446448msgstr ""
    447449
    448 #: includes/DpdParcelShopShippingMethod.php:301
     450#: includes/DpdParcelShopShippingMethod.php:311
    449451msgid "Maximum length for Slovenska Posta box"
    450452msgstr ""
    451453
    452 #: includes/DpdParcelShopShippingMethod.php:306
     454#: includes/DpdParcelShopShippingMethod.php:316
    453455msgid "Maximum width for Z-Box (Packeta)"
    454456msgstr ""
    455457
    456 #: includes/DpdParcelShopShippingMethod.php:311
     458#: includes/DpdParcelShopShippingMethod.php:321
    457459msgid "Maximum height for Z-Box (Packeta)"
    458460msgstr ""
    459461
    460 #: includes/DpdParcelShopShippingMethod.php:316
     462#: includes/DpdParcelShopShippingMethod.php:326
    461463msgid "Maximum length for Z-Box (Packeta)"
    462464msgstr ""
    463465
    464 #: includes/DpdParcelShopShippingMethod.php:321
     466#: includes/DpdParcelShopShippingMethod.php:331
    465467msgid "Disallow Shops"
    466468msgstr ""
    467469
    468 #: includes/DpdParcelShopShippingMethod.php:325
     470#: includes/DpdParcelShopShippingMethod.php:335
    469471msgid "If checked, DPD Pickup shops will be disabled."
    470472msgstr ""
    471473
    472 #: includes/DpdParcelShopShippingMethod.php:329
     474#: includes/DpdParcelShopShippingMethod.php:339
    473475msgid "Disallow Lockers"
    474476msgstr ""
    475477
    476 #: includes/DpdParcelShopShippingMethod.php:333
     478#: includes/DpdParcelShopShippingMethod.php:343
    477479msgid "If checked, all locker types will be disabled."
    478480msgstr ""
    479481
    480 #: includes/DpdParcelShopShippingMethod.php:337
     482#: includes/DpdParcelShopShippingMethod.php:347
    481483msgid "Disallow DPD Pickup Stations"
    482484msgstr ""
    483485
    484 #: includes/DpdParcelShopShippingMethod.php:341
     486#: includes/DpdParcelShopShippingMethod.php:351
    485487msgid "If checked, DPD Pickup Stations will be disabled."
    486488msgstr ""
    487489
    488 #: includes/DpdParcelShopShippingMethod.php:345
     490#: includes/DpdParcelShopShippingMethod.php:355
    489491msgid "Disallow Slovenská Pošta Boxes"
    490492msgstr ""
    491493
    492 #: includes/DpdParcelShopShippingMethod.php:349
     494#: includes/DpdParcelShopShippingMethod.php:359
    493495msgid "If checked, Slovenská Pošta boxes will be disabled."
    494496msgstr ""
    495497
    496 #: includes/DpdParcelShopShippingMethod.php:353
     498#: includes/DpdParcelShopShippingMethod.php:363
    497499msgid "Disallow Alza Boxes"
    498500msgstr ""
    499501
    500 #: includes/DpdParcelShopShippingMethod.php:357
     502#: includes/DpdParcelShopShippingMethod.php:367
    501503msgid "If checked, Alza Boxes will be disabled."
    502504msgstr ""
    503505
    504 #: includes/DpdParcelShopShippingMethod.php:361
     506#: includes/DpdParcelShopShippingMethod.php:371
    505507msgid "Disallow Z-Box (Packeta)"
    506508msgstr ""
    507509
    508 #: includes/DpdParcelShopShippingMethod.php:365
     510#: includes/DpdParcelShopShippingMethod.php:375
    509511msgid "If checked, Z-Box (Packeta) will be disabled."
    510512msgstr ""
    511513
    512 #: includes/DpdParcelShopShippingMethod.php:592
     514#: includes/DpdParcelShopShippingMethod.php:621
    513515msgid "Title"
    514516msgstr ""
  • wc-dpd/trunk/readme.txt

    r3394309 r3435070  
    44Donate link: https://platobnebrany.sk/
    55Requires at least: 5.3
    6 Tested up to: 6.8
     6Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 8.3.0
     8Stable tag: 8.4.0
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    6262
    6363== Changelog ==
     64
     65= 8.4.0 =
     66* Added free shipping threshold option for weight-based shipping rates
    6467
    6568= 8.3.0 =
  • wc-dpd/trunk/wc-dpd.php

    r3394309 r3435070  
    44 * Plugin Name: DPD SK for WooCommerce
    55 * Description: DPD SK plugin for WooCommerce which exports orders to the DPD through their API
    6  * Version: 8.3.0
     6 * Version: 8.4.0
    77 * Author: Webikon
    88 * Author URI: https://www.webikon.sk
     
    1212 * Domain Path: /languages
    1313 * Requires at least: 5.3
    14  * Tested up to: 6.8
     14 * Tested up to: 6.9
    1515 * Requires PHP: 7.4
    1616 * WC requires at least: 7.0
    17  * WC tested up to: 10.3
     17 * WC tested up to: 10.4.3
    1818 */
    1919
Note: See TracChangeset for help on using the changeset viewer.