Changeset 3010225
- Timestamp:
- 12/14/2023 07:17:13 PM (2 years ago)
- Location:
- wooms
- Files:
-
- 6 edited
- 1 copied
-
tags/9.9 (copied) (copied from wooms/trunk)
-
tags/9.9/includes/ProductStocks.php (modified) (5 diffs)
-
tags/9.9/readme.txt (modified) (2 diffs)
-
tags/9.9/wooms.php (modified) (1 diff)
-
trunk/includes/ProductStocks.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wooms.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wooms/tags/9.9/includes/ProductStocks.php
r3002302 r3010225 84 84 } 85 85 86 $url = 'entity/assortment'; 86 // todo - переписать это как то лучше 87 $url = 'https://api.moysklad.ru/api/remap/1.2/entity/assortment'; 87 88 88 89 $filters = apply_filters( 'wooms_assortment_sync_filters', $filters ); … … 167 168 } 168 169 169 /**170 * update_stock171 */172 170 public static function update_stock( $product, $data_api ) { 173 171 $product = wc_get_product( $product ); … … 197 195 198 196 if ( empty( get_option( 'wooms_warehouse_count' ) ) ) { 199 $product->set_manage_stock( true );197 $product->set_manage_stock( false ); 200 198 } else { 201 199 if ( $product->is_type( 'variable' ) ) { 202 203 200 //для вариативных товаров доступность определяется наличием вариаций 204 201 $product->set_manage_stock( false ); … … 308 305 * Get product variant ID 309 306 * 310 * XXX move to trait311 *312 307 * @param $uuid 313 308 */ … … 316 311 $uuid = str_replace( 'https://online.moysklad.ru/api/remap/1.1/entity/product/', '', $uuid ); 317 312 $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 ); 318 314 $uuid = str_replace( 'https://api.moysklad.ru/api/remap/1.2/entity/product/', '', $uuid ); 319 315 } -
wooms/tags/9.9/readme.txt
r3002302 r3010225 4 4 Tags: moysklad, woocommerce, sync, integration 5 5 Requires at least: 6.0 6 Tested up to: 6.4 6 Tested up to: 6.4.2 7 7 Requires PHP: 8.0 8 8 License: GPLv2 or later … … 76 76 77 77 == Changelog == 78 79 = 9.9 = 80 - Исправление: Перестала работать синхронизация на версии 9.6 https://github.com/wpcraft-ru/wooms/issues/522 81 - Тест совместимости WooCommerce 8.4.0 78 82 79 83 = 9.8 = -
wooms/tags/9.9/wooms.php
r3002302 r3010225 16 16 * PHP requires at least: 7.0 17 17 * WP requires at least: 5.0 18 * Tested up to: 6. 118 * Tested up to: 6.4.2 19 19 * WC requires at least: 7.0 20 * WC tested up to: 7.2.220 * WC tested up to: 8.3.1 21 21 * 22 22 * Version: 9.8 -
wooms/trunk/includes/ProductStocks.php
r3002302 r3010225 84 84 } 85 85 86 $url = 'entity/assortment'; 86 // todo - переписать это как то лучше 87 $url = 'https://api.moysklad.ru/api/remap/1.2/entity/assortment'; 87 88 88 89 $filters = apply_filters( 'wooms_assortment_sync_filters', $filters ); … … 167 168 } 168 169 169 /**170 * update_stock171 */172 170 public static function update_stock( $product, $data_api ) { 173 171 $product = wc_get_product( $product ); … … 197 195 198 196 if ( empty( get_option( 'wooms_warehouse_count' ) ) ) { 199 $product->set_manage_stock( true );197 $product->set_manage_stock( false ); 200 198 } else { 201 199 if ( $product->is_type( 'variable' ) ) { 202 203 200 //для вариативных товаров доступность определяется наличием вариаций 204 201 $product->set_manage_stock( false ); … … 308 305 * Get product variant ID 309 306 * 310 * XXX move to trait311 *312 307 * @param $uuid 313 308 */ … … 316 311 $uuid = str_replace( 'https://online.moysklad.ru/api/remap/1.1/entity/product/', '', $uuid ); 317 312 $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 ); 318 314 $uuid = str_replace( 'https://api.moysklad.ru/api/remap/1.2/entity/product/', '', $uuid ); 319 315 } -
wooms/trunk/readme.txt
r3002302 r3010225 4 4 Tags: moysklad, woocommerce, sync, integration 5 5 Requires at least: 6.0 6 Tested up to: 6.4 6 Tested up to: 6.4.2 7 7 Requires PHP: 8.0 8 8 License: GPLv2 or later … … 76 76 77 77 == Changelog == 78 79 = 9.9 = 80 - Исправление: Перестала работать синхронизация на версии 9.6 https://github.com/wpcraft-ru/wooms/issues/522 81 - Тест совместимости WooCommerce 8.4.0 78 82 79 83 = 9.8 = -
wooms/trunk/wooms.php
r3002302 r3010225 16 16 * PHP requires at least: 7.0 17 17 * WP requires at least: 5.0 18 * Tested up to: 6. 118 * Tested up to: 6.4.2 19 19 * WC requires at least: 7.0 20 * WC tested up to: 7.2.220 * WC tested up to: 8.3.1 21 21 * 22 22 * Version: 9.8
Note: See TracChangeset
for help on using the changeset viewer.