Skip to content

Commit

Permalink
Updates to 5.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Woo committed Aug 1, 2024
1 parent fd221f2 commit b6db13e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 26 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
48 changes: 24 additions & 24 deletions languages/woocommerce-min-max-quantities.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 <EMAIL@ADDRESS>\n"
Expand Down Expand Up @@ -365,105 +365,105 @@ msgstr ""
msgid "Foul!"
msgstr ""

#: woocommerce-min-max-quantities.php:275
#: woocommerce-min-max-quantities.php:277
msgid "<strong>Min/Max Quantities</strong> requires at least WooCommerce <strong>%s</strong>."
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 <strong>%1$s</strong>. Learn <a href=\"%2$s\">how to update PHP</a>."
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 <strong>%1$s</strong> category (<em>%2$s</em>) 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 ""

Expand Down
6 changes: 4 additions & 2 deletions woocommerce-min-max-quantities.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand All @@ -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.
Expand Down Expand Up @@ -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', '<' ) ) {
Expand Down

0 comments on commit b6db13e

Please sign in to comment.