diff --git a/changelog.txt b/changelog.txt index d15b087..6873133 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,8 @@ *** Woo Min/Max Quantities Changelog *** +2024.07.31 - version 5.0.1 +* Fix - Deactivate plugin for WooCommerce versions prior to 8.2 to avoid fatal errors. + 2024.07.30 - version 5.0.0 * Important - New: PHP 7.4+ is now required. * Important - New: WooCommerce 8.2+ is now required. diff --git a/languages/woocommerce-min-max-quantities.pot b/languages/woocommerce-min-max-quantities.pot index 6e254c9..f4036fc 100644 --- a/languages/woocommerce-min-max-quantities.pot +++ b/languages/woocommerce-min-max-quantities.pot @@ -2,14 +2,14 @@ # This file is distributed under the GNU General Public License v3.0. msgid "" msgstr "" -"Project-Id-Version: Woo Min/Max Quantities 5.0.0\n" +"Project-Id-Version: Woo Min/Max Quantities 5.0.1\n" "Report-Msgid-Bugs-To: https://woocommerce.com/my-account/create-a-ticket/\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-07-30T07:54:56+00:00\n" +"POT-Creation-Date: 2024-07-31T09:46:40+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.10.0\n" "language-team: LANGUAGE \n" @@ -365,105 +365,105 @@ msgstr "" msgid "Foul!" msgstr "" -#: woocommerce-min-max-quantities.php:275 +#: woocommerce-min-max-quantities.php:277 msgid "Min/Max Quantities requires at least WooCommerce %s." msgstr "" #. translators: Minimum required PHP version -#: woocommerce-min-max-quantities.php:295 +#: woocommerce-min-max-quantities.php:297 msgid "Woo Min/Max Quantities requires at least PHP %1$s. Learn how to update PHP." msgstr "" -#: woocommerce-min-max-quantities.php:745 +#: woocommerce-min-max-quantities.php:747 msgid "excludes " msgstr "" #. translators: %d: Minimum amount of items in the cart -#: woocommerce-min-max-quantities.php:750 +#: woocommerce-min-max-quantities.php:752 msgid "To place an order, your cart must contain at least %d items." msgstr "" #. translators: %d: Maximum amount of items in the cart -#: woocommerce-min-max-quantities.php:756 +#: woocommerce-min-max-quantities.php:758 msgid "Your cart must not contain more than %d items to place an order." msgstr "" #. translators: %s: Minimum order value -#: woocommerce-min-max-quantities.php:765 +#: woocommerce-min-max-quantities.php:767 msgid "To place an order, your cart total must be at least %s." msgstr "" #. translators: %s: Maximum order value -#: woocommerce-min-max-quantities.php:772 +#: woocommerce-min-max-quantities.php:774 msgid "Your cart total must not be higher than %s to place an order." msgstr "" #. translators: %1$s: Category name, %2$s: Comma separated list of product names, %3$d: Group amount -#: woocommerce-min-max-quantities.php:802 +#: woocommerce-min-max-quantities.php:804 msgid "Products in the %1$s category (%2$s) must be bought in multiples of %3$d." msgstr "" -#: woocommerce-min-max-quantities.php:855 +#: woocommerce-min-max-quantities.php:857 msgid "Available on backorder" msgstr "" -#: woocommerce-min-max-quantities.php:860 +#: woocommerce-min-max-quantities.php:862 msgid "Out of stock" msgstr "" #. translators: %1$s: Product name, %2$s: Minimum order quantity, %3$s: Total cart quantity -#: woocommerce-min-max-quantities.php:909 +#: woocommerce-min-max-quantities.php:911 msgid "To place an order, the quantity of \"%1$s\" must be at least %2$s. You currently have %3$s in your cart." msgstr "" #. translators: %1$s: Product name, %2$s: Minimum order quantity -#: woocommerce-min-max-quantities.php:917 +#: woocommerce-min-max-quantities.php:919 msgid "The quantity of \"%1$s\" has been increased to %2$s. This is the minimum required quantity." msgstr "" #. translators: %1$s: Product name, %2$s: Minimum order quantity -#: woocommerce-min-max-quantities.php:920 +#: woocommerce-min-max-quantities.php:922 msgid "To place an order, the quantity of \"%1$s\" must be at least %2$s." msgstr "" #. translators: %1$s: Product name, %2$s: Maximum order quantity, %3$s: Total cart quantity -#: woocommerce-min-max-quantities.php:930 +#: woocommerce-min-max-quantities.php:932 msgid "The quantity of \"%1$s\" cannot be higher than %2$s to place an order. You currently have %3$s in your cart." msgstr "" #. translators: %1$s: Product name, %2$s: Maximum order quantity -#: woocommerce-min-max-quantities.php:938 +#: woocommerce-min-max-quantities.php:940 msgid "The quantity of \"%1$s\" has been decreased to %2$s. This is the maximum allowed quantity." msgstr "" #. translators: %1$s: Product name, %2$s: Maximum order quantity -#: woocommerce-min-max-quantities.php:941 +#: woocommerce-min-max-quantities.php:943 msgid "The quantity of \"%1$s\" cannot be higher than %2$s to place an order." msgstr "" #. translators: %1$s: Product name, %2$d: Group amount -#: woocommerce-min-max-quantities.php:953 -#: woocommerce-min-max-quantities.php:964 +#: woocommerce-min-max-quantities.php:955 +#: woocommerce-min-max-quantities.php:966 msgid "\"%1$s\" must be bought in multiples of %2$d. Please adjust its quantity to continue." msgstr "" #. translators: %1$s: Product name, %2$d: Group amount -#: woocommerce-min-max-quantities.php:961 +#: woocommerce-min-max-quantities.php:963 msgid "The quantity of \"%1$s\" has been adjusted. \"%1$s\" must be bought in multiples of %2$d." msgstr "" #. translators: %1$s: Product name, %2$d: Group of quantity -#: woocommerce-min-max-quantities.php:1062 +#: woocommerce-min-max-quantities.php:1064 msgid "\"%1$s\" can only be bought in multiples of %2$d." msgstr "" #. translators: %1$s: Product name, %2$d: Minimum Quantity -#: woocommerce-min-max-quantities.php:1083 +#: woocommerce-min-max-quantities.php:1085 msgid "The minimum required quantity for \"%1$s\" is %2$d." msgstr "" #. translators: %1$s: Product name, %2$d: Maximum quantity -#: woocommerce-min-max-quantities.php:1106 +#: woocommerce-min-max-quantities.php:1108 msgid "The maximum allowed quantity for \"%1$s\" is %2$d." msgstr "" diff --git a/woocommerce-min-max-quantities.php b/woocommerce-min-max-quantities.php index 096f558..94dd2f6 100644 --- a/woocommerce-min-max-quantities.php +++ b/woocommerce-min-max-quantities.php @@ -3,7 +3,7 @@ * Plugin Name: Woo Min/Max Quantities * Plugin URI: https://woocommerce.com/products/minmax-quantities/ * Description: Define minimum/maximum allowed quantities for products, variations and orders. - * Version: 5.0.0 + * Version: 5.0.1 * Author: Woo * Author URI: https://woocommerce.com * @@ -30,7 +30,7 @@ if ( ! class_exists( 'WC_Min_Max_Quantities' ) ) : - define( 'WC_MIN_MAX_QUANTITIES', '5.0.0' ); // WRCS: DEFINED_VERSION. + define( 'WC_MIN_MAX_QUANTITIES', '5.0.1' ); // WRCS: DEFINED_VERSION. /** * Min Max Quantities class. @@ -117,6 +117,8 @@ public function __construct() { if ( ! function_exists( 'WC' ) || version_compare( WC()->version, $this->min_wc_version ) < 0 ) { add_action( 'admin_notices', array( $this, 'woocommerce_required_notice' ) ); + + return; } if ( ! function_exists( 'phpversion' ) || version_compare( phpversion(), '7.4.0', '<' ) ) {