Showing with 25 additions and 6 deletions.
  1. +6 −0 CHANGELOG.md
  2. +2 −0 inc/woocommerce.php
  3. +3 −1 js/ppom-conditions-v2.js
  4. +1 −1 package.json
  5. +10 −1 readme.txt
  6. +1 −1 templates/admin/ppom-fields.php
  7. +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.6](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.5...v32.0.6) (2023-04-19)

- [Fix] Resolved an issue where the Edit Cart feature was losing the value of certain fields based on conditional logic.
- [Fix] Fixed a bug where the Edit Cart feature was not working when no changes were made to product options. (P.S.: PPOM Pro side of this issue was released with PPOM Pro v25.1.3)
- [Fix] Implemented a security fix

##### [Version 32.0.5](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.4...v32.0.5) (2023-04-11)

* [Fix] Implemented input sanitization for PPOM Field Input during the first save on PPOM Group creation.
Expand Down
2 changes: 2 additions & 0 deletions inc/woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ function ppom_woocommerce_add_cart_item_data( $cart, $product_id ) {
return $cart;
}

WC()->cart->remove_cart_item( $_POST['ppom_cart_key'] );

// ADDED WC BUNDLES COMPATIBILITY
if ( function_exists( 'wc_pb_is_bundled_cart_item' ) && wc_pb_is_bundled_cart_item( $cart ) ) {
return $cart;
Expand Down
4 changes: 3 additions & 1 deletion js/ppom-conditions-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,9 @@ function ppom_set_default_option(field_id) {
break;

case 'select':
jQuery("#" + field.data_name).val(field.selected);
if ( '' === jQuery("#" + field.data_name).val() ) {
jQuery("#" + field.data_name).val(field.selected);
}
break;

case 'image':
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.5",
"version": "32.0.6",
"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.2
Stable tag: 32.0.5
Stable tag: 32.0.6
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.6](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.5...v32.0.6) (2023-04-19)

- [Fix] Resolved an issue where the Edit Cart feature was losing the value of certain fields based on conditional logic.
- [Fix] Fixed a bug where the Edit Cart feature was not working when no changes were made to product options. (P.S.: PPOM Pro side of this issue was released with PPOM Pro v25.1.3)
- [Fix] Implemented a security fix




##### [Version 32.0.5](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.4...v32.0.5) (2023-04-11)

* [Fix] Implemented input sanitization for PPOM Field Input during the first save on PPOM Group creation.
Expand Down
2 changes: 1 addition & 1 deletion templates/admin/ppom-fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ class="onoffswitch-checkbox"
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
<input type="hidden" value="<?php echo $field_status; ?>"
<input type="hidden" value="<?php echo esc_attr( $field_status ); ?>"
name="ppom[<?php echo esc_attr( $f_index ); ?>][status]">
</div>
</td>
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.5
* Version: 32.0.6
* 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.5' );
define( 'PPOM_VERSION', '32.0.6' );
define( 'PPOM_DB_VERSION', '30.1.0' );
define( 'PPOM_PRODUCT_META_KEY', '_product_meta_id' );
define( 'PPOM_TABLE_META', 'nm_personalized' );
Expand Down