Plugin Directory

Changeset 3454305


Ignore:
Timestamp:
02/05/2026 07:07:23 AM (8 weeks ago)
Author:
webcodist
Message:

Update to version 5.1.1 from GitHub

Location:
e-commerce-data-interchange
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • e-commerce-data-interchange/tags/5.1.1/e-commerce-data-interchange.php

    r3454088 r3454305  
    44 * Plugin URI:           https://ediplugin.org/
    55 * Description:          The plugin provides data interchange between the WooCommerce plugin and 1С.
    6  * Version:              5.1.0
     6 * Version:              5.1.1
    77 * Author:               Aleksandr Levashov <aleksandr@byteperfect.dev>
    88 * Author URI:           https://ediplugin.org/
  • e-commerce-data-interchange/tags/5.1.1/readme.txt

    r3454088 r3454305  
    66Tested up to: 6.9.1
    77Requires PHP: 7.4
    8 Stable tag: 5.1.0
     8Stable tag: 5.1.1
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    8484== Changelog ==
    8585
     86= 5.1.1 =
     87Дата релиза: 05 февраля 2026
     88- Исправлена ошибка сопоставления товаров.
     89
    8690= 5.1.0 =
    8791Дата релиза: 04 февраля 2026
  • e-commerce-data-interchange/tags/5.1.1/src/Matchers/ProductMatcher.php

    r3416737 r3454305  
    55
    66
     7use BytePerfect\EDI\EDI;
    78use Exception;
    89
     
    2728
    2829        $product_id = self::get_product_id_by_sku( $sku, $parent_product_id );
    29         if ( $product_id ) {
     30        if ( $product_id && ! self::product_has_guid( $product_id ) ) {
    3031            self::update_product_match_meta(
    3132                $product_id,
     
    3940
    4041        $product_id = self::get_product_id_by_name( $name, $parent_product_id );
    41         if ( $product_id ) {
     42        if ( $product_id && ! self::product_has_guid( $product_id ) ) {
    4243            self::update_product_match_meta(
    4344                $product_id,
     
    5051        }
    5152
    52         return $product_id;
     53        return null;
    5354    }
    5455
     
    8485
    8586        return is_string( $product_map_key ) ? $product_map_key : '_edi_1c_guid';
     87    }
     88
     89   
     90    protected static function product_has_guid( int $product_id ): bool {
     91        $existing_guid = get_post_meta( $product_id, self::get_product_map_key(), true );
     92        return ! empty( $existing_guid );
    8693    }
    8794
     
    166173        update_post_meta( $product_id, '_edi_guid_match_source', $source );
    167174        update_post_meta( $product_id, '_edi_guid_match_synced_at', $timestamp );
     175
     176        EDI::log()->debug(
     177            sprintf(
     178               
     179                __( 'Product was matched by %s. GUID %s, Product ID %d.', 'edi' ),
     180                $source,
     181                $guid,
     182                $product_id
     183            )
     184        );
    168185    }
    169186}
  • e-commerce-data-interchange/tags/5.1.1/vendor/composer/installed.php

    r3454088 r3454305  
    22    'root' => array(
    33        'name' => 'byteperfect/edi',
    4         'pretty_version' => 'v5.1.0',
    5         'version' => '5.1.0.0',
    6         'reference' => '290e18fdbf297dab4a0cfd6064f7a6b8f1789eaf',
     4        'pretty_version' => 'v5.1.1',
     5        'version' => '5.1.1.0',
     6        'reference' => 'b11cc232b8a1f60d12c0acf470e977e7bb3443d9',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'byteperfect/edi' => array(
    14             'pretty_version' => 'v5.1.0',
    15             'version' => '5.1.0.0',
    16             'reference' => '290e18fdbf297dab4a0cfd6064f7a6b8f1789eaf',
     14            'pretty_version' => 'v5.1.1',
     15            'version' => '5.1.1.0',
     16            'reference' => 'b11cc232b8a1f60d12c0acf470e977e7bb3443d9',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • e-commerce-data-interchange/trunk/e-commerce-data-interchange.php

    r3454088 r3454305  
    44 * Plugin URI:           https://ediplugin.org/
    55 * Description:          The plugin provides data interchange between the WooCommerce plugin and 1С.
    6  * Version:              5.1.0
     6 * Version:              5.1.1
    77 * Author:               Aleksandr Levashov <aleksandr@byteperfect.dev>
    88 * Author URI:           https://ediplugin.org/
  • e-commerce-data-interchange/trunk/readme.txt

    r3454088 r3454305  
    66Tested up to: 6.9.1
    77Requires PHP: 7.4
    8 Stable tag: 5.1.0
     8Stable tag: 5.1.1
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    8484== Changelog ==
    8585
     86= 5.1.1 =
     87Дата релиза: 05 февраля 2026
     88- Исправлена ошибка сопоставления товаров.
     89
    8690= 5.1.0 =
    8791Дата релиза: 04 февраля 2026
  • e-commerce-data-interchange/trunk/src/Matchers/ProductMatcher.php

    r3416737 r3454305  
    55
    66
     7use BytePerfect\EDI\EDI;
    78use Exception;
    89
     
    2728
    2829        $product_id = self::get_product_id_by_sku( $sku, $parent_product_id );
    29         if ( $product_id ) {
     30        if ( $product_id && ! self::product_has_guid( $product_id ) ) {
    3031            self::update_product_match_meta(
    3132                $product_id,
     
    3940
    4041        $product_id = self::get_product_id_by_name( $name, $parent_product_id );
    41         if ( $product_id ) {
     42        if ( $product_id && ! self::product_has_guid( $product_id ) ) {
    4243            self::update_product_match_meta(
    4344                $product_id,
     
    5051        }
    5152
    52         return $product_id;
     53        return null;
    5354    }
    5455
     
    8485
    8586        return is_string( $product_map_key ) ? $product_map_key : '_edi_1c_guid';
     87    }
     88
     89   
     90    protected static function product_has_guid( int $product_id ): bool {
     91        $existing_guid = get_post_meta( $product_id, self::get_product_map_key(), true );
     92        return ! empty( $existing_guid );
    8693    }
    8794
     
    166173        update_post_meta( $product_id, '_edi_guid_match_source', $source );
    167174        update_post_meta( $product_id, '_edi_guid_match_synced_at', $timestamp );
     175
     176        EDI::log()->debug(
     177            sprintf(
     178               
     179                __( 'Product was matched by %s. GUID %s, Product ID %d.', 'edi' ),
     180                $source,
     181                $guid,
     182                $product_id
     183            )
     184        );
    168185    }
    169186}
  • e-commerce-data-interchange/trunk/vendor/composer/installed.php

    r3454088 r3454305  
    22    'root' => array(
    33        'name' => 'byteperfect/edi',
    4         'pretty_version' => 'v5.1.0',
    5         'version' => '5.1.0.0',
    6         'reference' => '290e18fdbf297dab4a0cfd6064f7a6b8f1789eaf',
     4        'pretty_version' => 'v5.1.1',
     5        'version' => '5.1.1.0',
     6        'reference' => 'b11cc232b8a1f60d12c0acf470e977e7bb3443d9',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'byteperfect/edi' => array(
    14             'pretty_version' => 'v5.1.0',
    15             'version' => '5.1.0.0',
    16             'reference' => '290e18fdbf297dab4a0cfd6064f7a6b8f1789eaf',
     14            'pretty_version' => 'v5.1.1',
     15            'version' => '5.1.1.0',
     16            'reference' => 'b11cc232b8a1f60d12c0acf470e977e7bb3443d9',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.