Skip to content

Commit b6db13e

Browse files
author
Woo
committed
Updates to 5.0.1
1 parent fd221f2 commit b6db13e

File tree

3 files changed

+31
-26
lines changed

3 files changed

+31
-26
lines changed

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
*** Woo Min/Max Quantities Changelog ***
22

3+
2024.07.31 - version 5.0.1
4+
* Fix - Deactivate plugin for WooCommerce versions prior to 8.2 to avoid fatal errors.
5+
36
2024.07.30 - version 5.0.0
47
* Important - New: PHP 7.4+ is now required.
58
* Important - New: WooCommerce 8.2+ is now required.

languages/woocommerce-min-max-quantities.pot

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# This file is distributed under the GNU General Public License v3.0.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Woo Min/Max Quantities 5.0.0\n"
5+
"Project-Id-Version: Woo Min/Max Quantities 5.0.1\n"
66
"Report-Msgid-Bugs-To: https://woocommerce.com/my-account/create-a-ticket/\n"
77
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
88
"Language-Team: LANGUAGE <LL@li.org>\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2024-07-30T07:54:56+00:00\n"
12+
"POT-Creation-Date: 2024-07-31T09:46:40+00:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"X-Generator: WP-CLI 2.10.0\n"
1515
"language-team: LANGUAGE <EMAIL@ADDRESS>\n"
@@ -365,105 +365,105 @@ msgstr ""
365365
msgid "Foul!"
366366
msgstr ""
367367

368-
#: woocommerce-min-max-quantities.php:275
368+
#: woocommerce-min-max-quantities.php:277
369369
msgid "<strong>Min/Max Quantities</strong> requires at least WooCommerce <strong>%s</strong>."
370370
msgstr ""
371371

372372
#. translators: Minimum required PHP version
373-
#: woocommerce-min-max-quantities.php:295
373+
#: woocommerce-min-max-quantities.php:297
374374
msgid "Woo Min/Max Quantities requires at least PHP <strong>%1$s</strong>. Learn <a href=\"%2$s\">how to update PHP</a>."
375375
msgstr ""
376376

377-
#: woocommerce-min-max-quantities.php:745
377+
#: woocommerce-min-max-quantities.php:747
378378
msgid "excludes "
379379
msgstr ""
380380

381381
#. translators: %d: Minimum amount of items in the cart
382-
#: woocommerce-min-max-quantities.php:750
382+
#: woocommerce-min-max-quantities.php:752
383383
msgid "To place an order, your cart must contain at least %d items."
384384
msgstr ""
385385

386386
#. translators: %d: Maximum amount of items in the cart
387-
#: woocommerce-min-max-quantities.php:756
387+
#: woocommerce-min-max-quantities.php:758
388388
msgid "Your cart must not contain more than %d items to place an order."
389389
msgstr ""
390390

391391
#. translators: %s: Minimum order value
392-
#: woocommerce-min-max-quantities.php:765
392+
#: woocommerce-min-max-quantities.php:767
393393
msgid "To place an order, your cart total must be at least %s."
394394
msgstr ""
395395

396396
#. translators: %s: Maximum order value
397-
#: woocommerce-min-max-quantities.php:772
397+
#: woocommerce-min-max-quantities.php:774
398398
msgid "Your cart total must not be higher than %s to place an order."
399399
msgstr ""
400400

401401
#. translators: %1$s: Category name, %2$s: Comma separated list of product names, %3$d: Group amount
402-
#: woocommerce-min-max-quantities.php:802
402+
#: woocommerce-min-max-quantities.php:804
403403
msgid "Products in the <strong>%1$s</strong> category (<em>%2$s</em>) must be bought in multiples of %3$d."
404404
msgstr ""
405405

406-
#: woocommerce-min-max-quantities.php:855
406+
#: woocommerce-min-max-quantities.php:857
407407
msgid "Available on backorder"
408408
msgstr ""
409409

410-
#: woocommerce-min-max-quantities.php:860
410+
#: woocommerce-min-max-quantities.php:862
411411
msgid "Out of stock"
412412
msgstr ""
413413

414414
#. translators: %1$s: Product name, %2$s: Minimum order quantity, %3$s: Total cart quantity
415-
#: woocommerce-min-max-quantities.php:909
415+
#: woocommerce-min-max-quantities.php:911
416416
msgid "To place an order, the quantity of \"%1$s\" must be at least %2$s. You currently have %3$s in your cart."
417417
msgstr ""
418418

419419
#. translators: %1$s: Product name, %2$s: Minimum order quantity
420-
#: woocommerce-min-max-quantities.php:917
420+
#: woocommerce-min-max-quantities.php:919
421421
msgid "The quantity of \"%1$s\" has been increased to %2$s. This is the minimum required quantity."
422422
msgstr ""
423423

424424
#. translators: %1$s: Product name, %2$s: Minimum order quantity
425-
#: woocommerce-min-max-quantities.php:920
425+
#: woocommerce-min-max-quantities.php:922
426426
msgid "To place an order, the quantity of \"%1$s\" must be at least %2$s."
427427
msgstr ""
428428

429429
#. translators: %1$s: Product name, %2$s: Maximum order quantity, %3$s: Total cart quantity
430-
#: woocommerce-min-max-quantities.php:930
430+
#: woocommerce-min-max-quantities.php:932
431431
msgid "The quantity of \"%1$s\" cannot be higher than %2$s to place an order. You currently have %3$s in your cart."
432432
msgstr ""
433433

434434
#. translators: %1$s: Product name, %2$s: Maximum order quantity
435-
#: woocommerce-min-max-quantities.php:938
435+
#: woocommerce-min-max-quantities.php:940
436436
msgid "The quantity of \"%1$s\" has been decreased to %2$s. This is the maximum allowed quantity."
437437
msgstr ""
438438

439439
#. translators: %1$s: Product name, %2$s: Maximum order quantity
440-
#: woocommerce-min-max-quantities.php:941
440+
#: woocommerce-min-max-quantities.php:943
441441
msgid "The quantity of \"%1$s\" cannot be higher than %2$s to place an order."
442442
msgstr ""
443443

444444
#. translators: %1$s: Product name, %2$d: Group amount
445-
#: woocommerce-min-max-quantities.php:953
446-
#: woocommerce-min-max-quantities.php:964
445+
#: woocommerce-min-max-quantities.php:955
446+
#: woocommerce-min-max-quantities.php:966
447447
msgid "\"%1$s\" must be bought in multiples of %2$d. Please adjust its quantity to continue."
448448
msgstr ""
449449

450450
#. translators: %1$s: Product name, %2$d: Group amount
451-
#: woocommerce-min-max-quantities.php:961
451+
#: woocommerce-min-max-quantities.php:963
452452
msgid "The quantity of \"%1$s\" has been adjusted. \"%1$s\" must be bought in multiples of %2$d."
453453
msgstr ""
454454

455455
#. translators: %1$s: Product name, %2$d: Group of quantity
456-
#: woocommerce-min-max-quantities.php:1062
456+
#: woocommerce-min-max-quantities.php:1064
457457
msgid "\"%1$s\" can only be bought in multiples of %2$d."
458458
msgstr ""
459459

460460
#. translators: %1$s: Product name, %2$d: Minimum Quantity
461-
#: woocommerce-min-max-quantities.php:1083
461+
#: woocommerce-min-max-quantities.php:1085
462462
msgid "The minimum required quantity for \"%1$s\" is %2$d."
463463
msgstr ""
464464

465465
#. translators: %1$s: Product name, %2$d: Maximum quantity
466-
#: woocommerce-min-max-quantities.php:1106
466+
#: woocommerce-min-max-quantities.php:1108
467467
msgid "The maximum allowed quantity for \"%1$s\" is %2$d."
468468
msgstr ""
469469

woocommerce-min-max-quantities.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Woo Min/Max Quantities
44
* Plugin URI: https://woocommerce.com/products/minmax-quantities/
55
* Description: Define minimum/maximum allowed quantities for products, variations and orders.
6-
* Version: 5.0.0
6+
* Version: 5.0.1
77
* Author: Woo
88
* Author URI: https://woocommerce.com
99
*
@@ -30,7 +30,7 @@
3030

3131
if ( ! class_exists( 'WC_Min_Max_Quantities' ) ) :
3232

33-
define( 'WC_MIN_MAX_QUANTITIES', '5.0.0' ); // WRCS: DEFINED_VERSION.
33+
define( 'WC_MIN_MAX_QUANTITIES', '5.0.1' ); // WRCS: DEFINED_VERSION.
3434

3535
/**
3636
* Min Max Quantities class.
@@ -117,6 +117,8 @@ public function __construct() {
117117

118118
if ( ! function_exists( 'WC' ) || version_compare( WC()->version, $this->min_wc_version ) < 0 ) {
119119
add_action( 'admin_notices', array( $this, 'woocommerce_required_notice' ) );
120+
121+
return;
120122
}
121123

122124
if ( ! function_exists( 'phpversion' ) || version_compare( phpversion(), '7.4.0', '<' ) ) {

0 commit comments

Comments
 (0)