Changeset 3028308
- Timestamp:
- 01/29/2024 02:42:31 PM (2 years ago)
- Location:
- setary
- Files:
-
- 8 edited
- 1 copied
-
tags/1.11.4 (copied) (copied from setary/trunk)
-
tags/1.11.4/README.md (modified) (2 diffs)
-
tags/1.11.4/inc/class-product-controller.php (modified) (2 diffs)
-
tags/1.11.4/inc/class-product-tools.php (modified) (2 diffs)
-
tags/1.11.4/setary.php (modified) (2 diffs)
-
trunk/README.md (modified) (2 diffs)
-
trunk/inc/class-product-controller.php (modified) (2 diffs)
-
trunk/inc/class-product-tools.php (modified) (2 diffs)
-
trunk/setary.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
setary/tags/1.11.4/README.md
r3021062 r3028308 5 5 Tested up to: 6.2.2 6 6 Requires PHP: 7.1 7 Stable tag: 1.11. 37 Stable tag: 1.11.4 8 8 License: MIT 9 9 License URI: https://opensource.org/licenses/MIT … … 90 90 91 91 == Changelog == 92 93 = v1.11.4 (2024-01-29) = 94 * [fix] Import issue with variations/variable products 92 95 93 96 = v1.11.3 (2024-01-12) = -
setary/tags/1.11.4/inc/class-product-controller.php
r3017317 r3028308 148 148 */ 149 149 public function pre_insert_product_object( $product, $request, $creating ) { 150 150 151 if ( ! empty( $request['type'] ) && empty( $request['product_type'] ) ) { 151 152 $request['product_type'] = $request['type']; … … 153 154 154 155 // Change variation to product, or product to variation. 155 if ( ! $creating && !empty( $request['product_type'] ) ) {156 if ( ! empty( $request['product_type'] ) ) { 156 157 $product = $this->change_type( $product, $request['product_type'] ); 157 158 } -
setary/tags/1.11.4/inc/class-product-tools.php
r3021062 r3028308 77 77 78 78 if( $new_id ) { 79 $request->offsetSet('isNew', true); 79 80 $request->offsetUnset('id'); 80 81 } … … 109 110 } 110 111 } 111 } else if ( ! empty( $request['sku'] ) ) {112 } else if ( ! empty( $request['sku'] ) && ! empty( $request['isNew'] ) ) { 112 113 $id = wc_get_product_id_by_sku( $request->get_param('sku') ); 113 114 -
setary/tags/1.11.4/setary.php
r3021062 r3028308 11 11 * Author URI: https://setary.com/ 12 12 * 13 * Version: 1.11. 313 * Version: 1.11.4 14 14 * WC requires at least: 6.0.0 15 15 * WC tested up to: 8.0.1 … … 23 23 define( 'SETARY_PATH', \plugin_dir_path( __FILE__ ) ); 24 24 define( 'SETARY_URL', \plugins_url( '/', __FILE__ ) ); 25 define( 'SETARY_VERSION', '1.11. 3' );25 define( 'SETARY_VERSION', '1.11.4' ); 26 26 define( 'SETARY_SITE_URL', 'https://setary.com/' ); 27 27 define( 'SETARY_APP_URL', 'https://setary.com/app/' ); -
setary/trunk/README.md
r3021062 r3028308 5 5 Tested up to: 6.2.2 6 6 Requires PHP: 7.1 7 Stable tag: 1.11. 37 Stable tag: 1.11.4 8 8 License: MIT 9 9 License URI: https://opensource.org/licenses/MIT … … 90 90 91 91 == Changelog == 92 93 = v1.11.4 (2024-01-29) = 94 * [fix] Import issue with variations/variable products 92 95 93 96 = v1.11.3 (2024-01-12) = -
setary/trunk/inc/class-product-controller.php
r3017317 r3028308 148 148 */ 149 149 public function pre_insert_product_object( $product, $request, $creating ) { 150 150 151 if ( ! empty( $request['type'] ) && empty( $request['product_type'] ) ) { 151 152 $request['product_type'] = $request['type']; … … 153 154 154 155 // Change variation to product, or product to variation. 155 if ( ! $creating && !empty( $request['product_type'] ) ) {156 if ( ! empty( $request['product_type'] ) ) { 156 157 $product = $this->change_type( $product, $request['product_type'] ); 157 158 } -
setary/trunk/inc/class-product-tools.php
r3021062 r3028308 77 77 78 78 if( $new_id ) { 79 $request->offsetSet('isNew', true); 79 80 $request->offsetUnset('id'); 80 81 } … … 109 110 } 110 111 } 111 } else if ( ! empty( $request['sku'] ) ) {112 } else if ( ! empty( $request['sku'] ) && ! empty( $request['isNew'] ) ) { 112 113 $id = wc_get_product_id_by_sku( $request->get_param('sku') ); 113 114 -
setary/trunk/setary.php
r3021062 r3028308 11 11 * Author URI: https://setary.com/ 12 12 * 13 * Version: 1.11. 313 * Version: 1.11.4 14 14 * WC requires at least: 6.0.0 15 15 * WC tested up to: 8.0.1 … … 23 23 define( 'SETARY_PATH', \plugin_dir_path( __FILE__ ) ); 24 24 define( 'SETARY_URL', \plugins_url( '/', __FILE__ ) ); 25 define( 'SETARY_VERSION', '1.11. 3' );25 define( 'SETARY_VERSION', '1.11.4' ); 26 26 define( 'SETARY_SITE_URL', 'https://setary.com/' ); 27 27 define( 'SETARY_APP_URL', 'https://setary.com/app/' );
Note: See TracChangeset
for help on using the changeset viewer.