Showing with 70 additions and 32 deletions.
  1. +14 −1 .github/ISSUE_TEMPLATE/Feature_request.yml
  2. +4 −1 .github/labeler.yml
  3. +1 −1 .github/workflows/new-issues.yml
  4. +5 −0 CHANGELOG.md
  5. +1 −1 composer.json
  6. +20 −20 composer.lock
  7. +2 −2 inc/validation.php
  8. +1 −1 package.json
  9. +10 −2 readme.txt
  10. +12 −3 woocommerce-product-addon.php
15 changes: 14 additions & 1 deletion .github/ISSUE_TEMPLATE/Feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,17 @@ body:
label: What is your proposed solution?
description: Can you please specify the desired feature or improvement and how it resolves the problem mentioned?
validations:
required: false
required: false
- type: dropdown
id: doc-needed
attributes:
label: Will this feature require documentation? (Optional)
description: |
Does this feature require the creation or update of documentation? If you're unsure, feel free to skip this.
multiple: false
options:
- 'I dont know.'
- 'No.'
- 'Yes, it requires documentation.'
validations:
required: false
5 changes: 4 additions & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ regression:
- '(Yes, this is a regression)'

customer report:
- '(helpscout)'
- '(helpscout|wordpress.org/support)'

doc-needed:
- '(Yes, it requires documentation.)'
2 changes: 1 addition & 1 deletion .github/workflows/new-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ jobs:
id
}
}
}' -f project=${{ secrets.PROJECT_PLANNING_ID }} -f item=${{ steps.add_project.outputs.itemId }} -f status_field=${{ secrets.PLANNING_TEAM_FIELD_ID }} -f status_value=f0658f06 --silent
}' -f project=${{ secrets.PROJECT_PLANNING_ID }} -f item=${{ steps.add_project.outputs.itemId }} -f status_field=${{ secrets.PLANNING_TEAM_FIELD_ID }} -f status_value=ed46988b --silent
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
##### [Version 32.0.9](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.8...v32.0.9) (2023-08-31)

- Fix: Do not enforce step min quantity if quantity is already set
- Fixed compatibility issue with HPOS

##### [Version 32.0.8](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.7...v32.0.8) (2023-06-06)

- Fix: group being duplicated
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"require-dev": {
"phpunit/phpunit": "^8.5",
"yoast/phpunit-polyfills": "^1.0",
"yoast/phpunit-polyfills": "^2.0",
"codeinwp/phpcs-ruleset": "dev-main"
}
}
40 changes: 20 additions & 20 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions inc/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function ppom_validation_product_limits( $data, $product ) {
}
}

if ( empty( $limits['min_qty'] ) && ! $product->is_type( 'group' ) && $limits['step'] > 0 ) {
if ( empty( $limits['min_qty'] ) && ! $product->is_type( 'group' ) && $limits['step'] > 0 && $data['min_value'] <= 1 ) {
$data['min_value'] = $limits['step'];
}

Expand Down Expand Up @@ -227,7 +227,7 @@ function ppom_validation_variation_limits( $data, $product, $variation ) {
}
}

if ( empty( $limits['min_qty'] ) && ! $product->is_type( 'group' ) && $limits['step'] > 0 ) {
if ( empty( $limits['min_qty'] ) && ! $product->is_type( 'group' ) && $limits['step'] > 0 && $data['min_qty'] <= 1 ) {
$data['min_qty'] = $limits['step'];
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "woocommerce-product-addon",
"version": "32.0.8",
"version": "32.0.9",
"description": "PPOM for WooCommerce",
"main": "index.js",
"repository": "https://github.com/Codeinwp/woocommerce-product-addon",
Expand Down
12 changes: 10 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: themeisle
Tags: woocommerce product addons, woocommerce product options, woocommerce product fields, woocommerce product, woocommerce product addon
Requires at least: 3.5
Tested up to: 6.2
Stable tag: 32.0.8
Tested up to: 6.3
Stable tag: 32.0.9
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Requires PHP: 7.2
Expand Down Expand Up @@ -122,6 +122,14 @@ If you feels that PPOM Free or PPOM PRO versions are not enough for your needs,

== Changelog ==

##### [Version 32.0.9](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.8...v32.0.9) (2023-08-31)

- Fix: Do not enforce step min quantity if quantity is already set
- Fixed compatibility issue with HPOS




##### [Version 32.0.8](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.7...v32.0.8) (2023-06-06)

- Fix: group being duplicated
Expand Down
15 changes: 12 additions & 3 deletions woocommerce-product-addon.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
* Plugin Name: PPOM for WooCommerce
* Plugin URI: https://themeisle.com/plugins/ppom-pro/
* Description: PPOM (Personalized Product Meta Manager) plugin allow WooCommerce Store Admin to create unlimited input fields and files to attach with Product Pages.
* Version: 32.0.8
* Version: 32.0.9
* Author: Themeisle
* Text Domain: woocommerce-product-addon
* Domain Path: /languages
* Author URI: https://themeisle.com/
* Requires PHP: 7.2
*
* WC requires at least: 6.5
* WC tested up to: 7.4
* WC tested up to: 8.0
*
* WordPress Available: yes
* Requires License: no
Expand All @@ -26,7 +26,7 @@
define( 'PPOM_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
define( 'PPOM_WP_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __DIR__ ) ) );
define( 'PPOM_BASENAME', basename( PPOM_WP_PLUGIN_DIR ) );
define( 'PPOM_VERSION', '32.0.8' );
define( 'PPOM_VERSION', '32.0.9' );
define( 'PPOM_DB_VERSION', '30.1.0' );
define( 'PPOM_PRODUCT_META_KEY', '_product_meta_id' );
define( 'PPOM_TABLE_META', 'nm_personalized' );
Expand Down Expand Up @@ -121,5 +121,14 @@ function ( $compatibilities ) {
);
add_action( 'woocommerce_init', 'PPOM' );

add_action(
'before_woocommerce_init',
function () {
if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
}
}
);

register_activation_hook( __FILE__, array( 'NM_PersonalizedProduct', 'activate_plugin' ) );
register_deactivation_hook( __FILE__, array( 'NM_PersonalizedProduct', 'deactivate_plugin' ) );