Plugin Directory

Changeset 3010225


Ignore:
Timestamp:
12/14/2023 07:17:13 PM (2 years ago)
Author:
casepress
Message:

Update to version 9.9 from GitHub

Location:
wooms
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wooms/tags/9.9/includes/ProductStocks.php

    r3002302 r3010225  
    8484        }
    8585
    86         $url = 'entity/assortment';
     86        // todo - переписать это как то лучше
     87        $url = 'https://api.moysklad.ru/api/remap/1.2/entity/assortment';
    8788
    8889        $filters = apply_filters( 'wooms_assortment_sync_filters', $filters );
     
    167168    }
    168169
    169     /**
    170      * update_stock
    171      */
    172170    public static function update_stock( $product, $data_api ) {
    173171        $product = wc_get_product( $product );
     
    197195
    198196        if ( empty( get_option( 'wooms_warehouse_count' ) ) ) {
    199             $product->set_manage_stock( true );
     197            $product->set_manage_stock( false );
    200198        } else {
    201199            if ( $product->is_type( 'variable' ) ) {
    202 
    203200                //для вариативных товаров доступность определяется наличием вариаций
    204201                $product->set_manage_stock( false );
     
    308305     * Get product variant ID
    309306     *
    310      * XXX move to trait
    311      *
    312307     * @param $uuid
    313308     */
     
    316311            $uuid = str_replace( 'https://online.moysklad.ru/api/remap/1.1/entity/product/', '', $uuid );
    317312            $uuid = str_replace( 'https://online.moysklad.ru/api/remap/1.2/entity/product/', '', $uuid );
     313            $uuid = str_replace( 'https://api.moysklad.ru/api/remap/1.1/entity/product/', '', $uuid );
    318314            $uuid = str_replace( 'https://api.moysklad.ru/api/remap/1.2/entity/product/', '', $uuid );
    319315        }
  • wooms/tags/9.9/readme.txt

    r3002302 r3010225  
    44Tags: moysklad, woocommerce, sync, integration
    55Requires at least: 6.0
    6 Tested up to: 6.4
     6Tested up to: 6.4.2
    77Requires PHP: 8.0
    88License: GPLv2 or later
     
    7676
    7777== Changelog ==
     78
     79= 9.9 =
     80- Исправление: Перестала работать синхронизация на версии 9.6 https://github.com/wpcraft-ru/wooms/issues/522
     81- Тест совместимости WooCommerce 8.4.0
    7882
    7983= 9.8 =
  • wooms/tags/9.9/wooms.php

    r3002302 r3010225  
    1616 * PHP requires at least: 7.0
    1717 * WP requires at least: 5.0
    18  * Tested up to: 6.1
     18 * Tested up to: 6.4.2
    1919 * WC requires at least: 7.0
    20  * WC tested up to: 7.2.2
     20 * WC tested up to: 8.3.1
    2121 *
    2222 * Version: 9.8
  • wooms/trunk/includes/ProductStocks.php

    r3002302 r3010225  
    8484        }
    8585
    86         $url = 'entity/assortment';
     86        // todo - переписать это как то лучше
     87        $url = 'https://api.moysklad.ru/api/remap/1.2/entity/assortment';
    8788
    8889        $filters = apply_filters( 'wooms_assortment_sync_filters', $filters );
     
    167168    }
    168169
    169     /**
    170      * update_stock
    171      */
    172170    public static function update_stock( $product, $data_api ) {
    173171        $product = wc_get_product( $product );
     
    197195
    198196        if ( empty( get_option( 'wooms_warehouse_count' ) ) ) {
    199             $product->set_manage_stock( true );
     197            $product->set_manage_stock( false );
    200198        } else {
    201199            if ( $product->is_type( 'variable' ) ) {
    202 
    203200                //для вариативных товаров доступность определяется наличием вариаций
    204201                $product->set_manage_stock( false );
     
    308305     * Get product variant ID
    309306     *
    310      * XXX move to trait
    311      *
    312307     * @param $uuid
    313308     */
     
    316311            $uuid = str_replace( 'https://online.moysklad.ru/api/remap/1.1/entity/product/', '', $uuid );
    317312            $uuid = str_replace( 'https://online.moysklad.ru/api/remap/1.2/entity/product/', '', $uuid );
     313            $uuid = str_replace( 'https://api.moysklad.ru/api/remap/1.1/entity/product/', '', $uuid );
    318314            $uuid = str_replace( 'https://api.moysklad.ru/api/remap/1.2/entity/product/', '', $uuid );
    319315        }
  • wooms/trunk/readme.txt

    r3002302 r3010225  
    44Tags: moysklad, woocommerce, sync, integration
    55Requires at least: 6.0
    6 Tested up to: 6.4
     6Tested up to: 6.4.2
    77Requires PHP: 8.0
    88License: GPLv2 or later
     
    7676
    7777== Changelog ==
     78
     79= 9.9 =
     80- Исправление: Перестала работать синхронизация на версии 9.6 https://github.com/wpcraft-ru/wooms/issues/522
     81- Тест совместимости WooCommerce 8.4.0
    7882
    7983= 9.8 =
  • wooms/trunk/wooms.php

    r3002302 r3010225  
    1616 * PHP requires at least: 7.0
    1717 * WP requires at least: 5.0
    18  * Tested up to: 6.1
     18 * Tested up to: 6.4.2
    1919 * WC requires at least: 7.0
    20  * WC tested up to: 7.2.2
     20 * WC tested up to: 8.3.1
    2121 *
    2222 * Version: 9.8
Note: See TracChangeset for help on using the changeset viewer.