Showing with 31 additions and 16 deletions.
  1. +6 −0 CHANGELOG.md
  2. +6 −6 composer.lock
  3. +6 −6 js/ppom-conditions-v2.js
  4. +1 −1 package.json
  5. +10 −1 readme.txt
  6. +2 −2 woocommerce-product-addon.php
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
##### [Version 32.0.15](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.14...v32.0.15) (2024-03-29)

### Fixes
- Fixed file input type matching on the frontend that was causing issues with file upload
- Updated internal dependencies

##### [Version 32.0.14](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.13...v32.0.14) (2024-03-26)

### Bug Fixes
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

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

12 changes: 6 additions & 6 deletions js/ppom-conditions-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,9 @@ function ppom_check_conditions(data_name, callback) {

let is_matched = false;
const ppom_type = jQuery(`.ppom-input[data-data_name="${data_name}"]`).data('type');

const is_file = jQuery("a.file.ppom-input").length > 0;
let event_type, element_data_name;
// const field_val = ppom_get_element_value(data_name);
// console.log('data_name',data_name);

jQuery(`div.ppom-cond-${data_name}`).each(function() {
// return this.data('cond-val1').match(/\w*-Back/);
// console.log(jQuery(this));
Expand Down Expand Up @@ -326,7 +325,7 @@ function ppom_check_conditions(data_name, callback) {
}
});

if (typeof callback == "function" && ( 'undefined' !== typeof ppom_type || element_data_name !== 'file') )
if (typeof callback == "function" && ( 'undefined' !== typeof ppom_type || !is_file ) )
callback(element_data_name, event_type);
// return is_matched;
}
Expand All @@ -340,13 +339,14 @@ function ppom_check_conditions(data_name, callback) {
jQuery(this).addClass(`ppom-locked-${data_name} ppom-c-hide`);
}

if (typeof callback == "function" && ( 'undefined' !== typeof ppom_type || element_data_name !== 'file') )
if (typeof callback == "function" && ( 'undefined' !== typeof ppom_type || !is_file) )
callback(element_data_name, event_type);
} else {

jQuery(this).removeClass(`ppom-locked-${data_name} ppom-c-hide`);
// console.log('event_type', event_type);
if (typeof callback == "function" && ( 'undefined' !== typeof ppom_type || element_data_name !== 'file') )

if (typeof callback == "function" && ( 'undefined' !== typeof ppom_type || !is_file) )
callback(element_data_name, event_type);
}
}
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.14",
"version": "32.0.15",
"description": "PPOM for WooCommerce",
"main": "index.js",
"repository": "https://github.com/Codeinwp/woocommerce-product-addon",
Expand Down
11 changes: 10 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ 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.4
Stable tag: 32.0.14
Stable tag: 32.0.15
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Requires PHP: 7.2
Expand Down Expand Up @@ -122,6 +122,15 @@ If you feels that PPOM Free or PPOM PRO versions are not enough for your needs,

== Changelog ==

##### [Version 32.0.15](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.14...v32.0.15) (2024-03-29)

### Fixes
- Fixed file input type matching on the frontend that was causing issues with file upload
- Updated internal dependencies




##### [Version 32.0.14](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.13...v32.0.14) (2024-03-26)

### Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions woocommerce-product-addon.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* 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.14
* Version: 32.0.15
* Author: Themeisle
* Text Domain: woocommerce-product-addon
* Domain Path: /languages
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.14' );
define( 'PPOM_VERSION', '32.0.15' );
define( 'PPOM_DB_VERSION', '30.1.0' );
define( 'PPOM_PRODUCT_META_KEY', '_product_meta_id' );
define( 'PPOM_TABLE_META', 'nm_personalized' );
Expand Down