Plugin Directory

Changeset 3028308


Ignore:
Timestamp:
01/29/2024 02:42:31 PM (2 years ago)
Author:
setaryapp
Message:

Update to version 1.11.4 from GitHub

Location:
setary
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • setary/tags/1.11.4/README.md

    r3021062 r3028308  
    55Tested up to: 6.2.2
    66Requires PHP: 7.1
    7 Stable tag: 1.11.3
     7Stable tag: 1.11.4
    88License: MIT
    99License URI: https://opensource.org/licenses/MIT
     
    9090
    9191== Changelog ==
     92
     93= v1.11.4 (2024-01-29) =
     94* [fix] Import issue with variations/variable products
    9295
    9396= v1.11.3 (2024-01-12) =
  • setary/tags/1.11.4/inc/class-product-controller.php

    r3017317 r3028308  
    148148     */
    149149    public function pre_insert_product_object( $product, $request, $creating ) {
     150       
    150151        if ( ! empty( $request['type'] ) && empty( $request['product_type'] ) ) {
    151152            $request['product_type'] = $request['type'];
     
    153154   
    154155        // Change variation to product, or product to variation.
    155         if ( ! $creating && ! empty( $request['product_type'] ) ) {
     156        if ( ! empty( $request['product_type'] ) ) {
    156157            $product = $this->change_type( $product, $request['product_type'] );
    157158        }
  • setary/tags/1.11.4/inc/class-product-tools.php

    r3021062 r3028308  
    7777
    7878        if( $new_id ) {
     79            $request->offsetSet('isNew', true);
    7980            $request->offsetUnset('id');
    8081        }
     
    109110                }
    110111            }
    111         } else if ( ! empty( $request['sku'] ) ) {
     112        } else if ( ! empty( $request['sku'] ) && ! empty( $request['isNew'] ) ) {
    112113            $id = wc_get_product_id_by_sku( $request->get_param('sku') );
    113114
  • setary/tags/1.11.4/setary.php

    r3021062 r3028308  
    1111 * Author URI:           https://setary.com/
    1212 *
    13  * Version:              1.11.3
     13 * Version:              1.11.4
    1414 * WC requires at least: 6.0.0
    1515 * WC tested up to:      8.0.1
     
    2323define( 'SETARY_PATH', \plugin_dir_path( __FILE__ ) );
    2424define( 'SETARY_URL', \plugins_url( '/', __FILE__ ) );
    25 define( 'SETARY_VERSION', '1.11.3' );
     25define( 'SETARY_VERSION', '1.11.4' );
    2626define( 'SETARY_SITE_URL', 'https://setary.com/' );
    2727define( 'SETARY_APP_URL', 'https://setary.com/app/' );
  • setary/trunk/README.md

    r3021062 r3028308  
    55Tested up to: 6.2.2
    66Requires PHP: 7.1
    7 Stable tag: 1.11.3
     7Stable tag: 1.11.4
    88License: MIT
    99License URI: https://opensource.org/licenses/MIT
     
    9090
    9191== Changelog ==
     92
     93= v1.11.4 (2024-01-29) =
     94* [fix] Import issue with variations/variable products
    9295
    9396= v1.11.3 (2024-01-12) =
  • setary/trunk/inc/class-product-controller.php

    r3017317 r3028308  
    148148     */
    149149    public function pre_insert_product_object( $product, $request, $creating ) {
     150       
    150151        if ( ! empty( $request['type'] ) && empty( $request['product_type'] ) ) {
    151152            $request['product_type'] = $request['type'];
     
    153154   
    154155        // Change variation to product, or product to variation.
    155         if ( ! $creating && ! empty( $request['product_type'] ) ) {
     156        if ( ! empty( $request['product_type'] ) ) {
    156157            $product = $this->change_type( $product, $request['product_type'] );
    157158        }
  • setary/trunk/inc/class-product-tools.php

    r3021062 r3028308  
    7777
    7878        if( $new_id ) {
     79            $request->offsetSet('isNew', true);
    7980            $request->offsetUnset('id');
    8081        }
     
    109110                }
    110111            }
    111         } else if ( ! empty( $request['sku'] ) ) {
     112        } else if ( ! empty( $request['sku'] ) && ! empty( $request['isNew'] ) ) {
    112113            $id = wc_get_product_id_by_sku( $request->get_param('sku') );
    113114
  • setary/trunk/setary.php

    r3021062 r3028308  
    1111 * Author URI:           https://setary.com/
    1212 *
    13  * Version:              1.11.3
     13 * Version:              1.11.4
    1414 * WC requires at least: 6.0.0
    1515 * WC tested up to:      8.0.1
     
    2323define( 'SETARY_PATH', \plugin_dir_path( __FILE__ ) );
    2424define( 'SETARY_URL', \plugins_url( '/', __FILE__ ) );
    25 define( 'SETARY_VERSION', '1.11.3' );
     25define( 'SETARY_VERSION', '1.11.4' );
    2626define( 'SETARY_SITE_URL', 'https://setary.com/' );
    2727define( 'SETARY_APP_URL', 'https://setary.com/app/' );
Note: See TracChangeset for help on using the changeset viewer.