Changeset 2842491
- Timestamp:
- 01/02/2023 07:49:27 PM (3 years ago)
- Location:
- wooms
- Files:
-
- 18 edited
- 1 copied
-
tags/9.1.rc1 (copied) (copied from wooms/trunk)
-
tags/9.1.rc1/includes/MenuSettings.php (modified) (1 diff)
-
tags/9.1.rc1/includes/MenuTools.php (modified) (1 diff)
-
tags/9.1.rc1/includes/ProductStocks.php (modified) (1 diff)
-
tags/9.1.rc1/includes/ProductVariable.php (modified) (1 diff)
-
tags/9.1.rc1/includes/Products.php (modified) (13 diffs)
-
tags/9.1.rc1/includes/ProductsCategories.php (modified) (3 diffs)
-
tags/9.1.rc1/includes/ProductsHiding.php (modified) (1 diff)
-
tags/9.1.rc1/includes/ProductsImage.php (modified) (1 diff)
-
tags/9.1.rc1/readme.txt (modified) (1 diff)
-
trunk/includes/MenuSettings.php (modified) (1 diff)
-
trunk/includes/MenuTools.php (modified) (1 diff)
-
trunk/includes/ProductStocks.php (modified) (1 diff)
-
trunk/includes/ProductVariable.php (modified) (1 diff)
-
trunk/includes/Products.php (modified) (13 diffs)
-
trunk/includes/ProductsCategories.php (modified) (3 diffs)
-
trunk/includes/ProductsHiding.php (modified) (1 diff)
-
trunk/includes/ProductsImage.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wooms/tags/9.1.rc1/includes/MenuSettings.php
r2828881 r2842491 259 259 260 260 printf('<p><a href="%s">Управление синхронизацией</a></p>', admin_url('admin.php?page=moysklad')); 261 printf('<p><a href="%s" target="_blank">Расширен ная версия с дополнительными возможностями</a></p>', "https://wpcraft.ru/product/wooms-extra/");261 printf('<p><a href="%s" target="_blank">Расширения и дополнения</a></p>', "https://github.com/topics/wooms"); 262 262 printf('<p><a href="%s" target="_blank">Предложения по улучшению и запросы на доработку</a></p>', "https://github.com/wpcraft-ru/wooms/issues"); 263 printf('<p><a href="%s" target="_blank">Рекомендуемые хостинги</a></p>', "https://wpcraft.ru/wordpress/hosting/"); 264 printf('<p><a href="%s" target="_blank">Сопровождение магазинов и консалтинг</a></p>', "https://wpcraft.ru/wordpress-woocommerce-mentoring/"); 265 printf('<p><a href="%s" target="_blank">Помощь и техическая поддержка</a></p>', "https://wpcraft.ru/contacts/"); 263 printf('<p><a href="%s" target="_blank">Рекомендуемые хостинги</a></p>', "https://wpcraft.ru/hosting-wordpress-woocommerce/"); 264 printf('<p><a href="%s" target="_blank">Контакты</a></p>', "https://wpcraft.ru/contacts/"); 266 265 } 267 266 } -
wooms/tags/9.1.rc1/includes/MenuTools.php
r2826440 r2842491 54 54 '<a href="https://online.moysklad.ru/app/" target="_blank">Вход в МойСклад</a>', 55 55 sprintf('<a href="%s">Диагностика проблем</a>', admin_url("site-health.php") ), 56 '<a href="https://wpcraft.ru/ wordpress/hosting/" target="_blank">Рекомендуемые хостинги</a>',57 '<a href="https://wpcraft.ru/ wordpress-woocommerce-mentoring/" target="_blank">Сопровождение магазинов и консалтинг</a>',56 '<a href="https://wpcraft.ru/hosting-wordpress-woocommerce/" target="_blank">Рекомендуемые хостинги</a>', 57 '<a href="https://wpcraft.ru/contacts/" target="_blank">Контакты</a>', 58 58 ]; 59 59 60 60 printf( '<p>%s</p>', implode('<span> | </span>', $items) ); 61 61 62 if( empty($_GET['a']) ){ 63 do_action('woomss_tool_actions_btns'); 62 if(empty(get_option('woomss_pass'))){ 63 printf('<p>Укажите логин и пароль на <a href="%s">странице настроек</a></p>', admin_url('admin.php?page=mss-settings')); 64 } else { 65 if( empty($_GET['a']) ){ 64 66 65 do_action('wooms_tools_sections');67 do_action('wooms_tools_sections'); 66 68 67 } else { 69 // deprecated 70 do_action('woomss_tool_actions_btns'); 68 71 69 printf('<a href="%s">Вернуться...</a>', remove_query_arg( 'a', self::$url)); 70 do_action('woomss_tool_actions'); 71 do_action('woomss_tool_actions_' . $_GET['a']); 72 } else { 72 73 74 printf('<a href="%s">Вернуться...</a>', remove_query_arg( 'a', self::$url)); 75 do_action('woomss_tool_actions'); 76 do_action('woomss_tool_actions_' . $_GET['a']); 77 78 } 73 79 } 80 74 81 75 82 } -
wooms/tags/9.1.rc1/includes/ProductStocks.php
r2826440 r2842491 44 44 45 45 add_action('admin_init', array(__CLASS__, 'add_settings'), 30); 46 add_action('wooms s_tool_actions_btns', array(__CLASS__, 'display_state'), 17);46 add_action('wooms_tools_sections', array(__CLASS__, 'display_state'), 17); 47 47 48 48 add_filter('wooms_stock_type', array(__CLASS__, 'select_type_stock')); -
wooms/tags/9.1.rc1/includes/ProductVariable.php
r2826597 r2842491 46 46 add_action('wooms_main_walker_started', array(__CLASS__, 'set_wait')); 47 47 48 add_action('wooms s_tool_actions_btns', array(__CLASS__, 'display_state'), 15);48 add_action('wooms_tools_sections', array(__CLASS__, 'display_state'), 15); 49 49 50 50 add_action('woocommerce_variation_header', array(__CLASS__, 'variation_sync_id'), 10); -
wooms/tags/9.1.rc1/includes/Products.php
r2826597 r2842491 15 15 add_filter('wooms_product_save', __NAMESPACE__ . '\\update_product', 9, 3); 16 16 17 add_action('wooms s_tool_actions_btns', __NAMESPACE__ . '\\render_ui', 9);17 add_action('wooms_tools_sections', __NAMESPACE__ . '\\render_ui', 9); 18 18 add_action('woomss_tool_actions_wooms_products_start_import', __NAMESPACE__ . '\\start_manually'); 19 19 add_action('woomss_tool_actions_wooms_products_stop_import', __NAMESPACE__ . '\\stop_manually'); 20 20 21 add_action('init', function(){ 21 add_action('add_meta_boxes', function () { 22 add_meta_box('wooms_product', 'МойСклад', __NAMESPACE__ . '\\display_metabox_for_product', 'product', 'side', 'low'); 23 }); 24 25 add_action('init', function () { 22 26 if (!wp_next_scheduled('wooms_monitoring')) { 23 wp_schedule_event( time(), 'every_minute', 'wooms_monitoring');27 wp_schedule_event(time(), 'every_minute', 'wooms_monitoring'); 24 28 } 25 29 }); 26 add_action('wooms_monitoring', __NAMESPACE__ . '\\check_and_restart_job_queue');27 30 28 31 /** … … 31 34 function walker($args = []) 32 35 { 33 if (empty($args)){36 if (empty($args)) { 34 37 walker_started(); 35 38 $state = get_state(); … … 64 67 $data = wooms_request($url); 65 68 66 if (isset($data['errors'])){69 if (isset($data['errors'])) { 67 70 throw new \Exception(print_r($data['errors'], true)); 68 71 } … … 105 108 function process_rows($rows = []) 106 109 { 107 if (empty($rows)){110 if (empty($rows)) { 108 111 return false; 109 112 } … … 166 169 } 167 170 168 function get_session_id(){ 171 function get_session_id() 172 { 169 173 return get_state('session_id'); 170 174 } … … 233 237 $product->set_catalog_visibility('visible'); 234 238 235 if ( apply_filters('wooms_reset_state_products', true)) {239 if (apply_filters('wooms_reset_state_products', true)) { 236 240 $product->set_stock_status('instock'); 237 241 $product->set_manage_stock('no'); … … 292 296 $product_id = get_product_id_by_uuid($value['id']); 293 297 294 if (empty($product_id) && !empty($value['article'])){298 if (empty($product_id) && !empty($value['article'])) { 295 299 $product_id = wc_get_product_id_by_sku($value['article']); 296 300 } … … 462 466 $query_arg_default = [ 463 467 'offset' => 0, 464 'limit' => apply_filters('wooms_iteration_size', $batch_size),468 'limit' => apply_filters('wooms_iteration_size', $batch_size), 465 469 ]; 466 470 // set_state('query_arg', ); … … 506 510 507 511 //if no password 508 if (empty(get_option('woomss_pass'))){512 if (empty(get_option('woomss_pass'))) { 509 513 return true; 510 514 } … … 542 546 543 547 544 function check_and_restart_job_queue(){ 548 function check_and_restart_job_queue() 549 { 545 550 $end_timestamp = get_state('end_timestamp'); 546 551 $is_enable_cron = get_option('woomss_walker_cron_enabled', false); 547 if (empty($end_timestamp)){548 return false; 549 } 550 if (empty($is_enable_cron)){552 if (empty($end_timestamp)) { 553 return false; 554 } 555 if (empty($is_enable_cron)) { 551 556 return false; 552 557 } … … 555 560 $time_has_passed = time() - $end_timestamp; 556 561 557 if ($time_has_passed < $timer){562 if ($time_has_passed < $timer) { 558 563 return false; 559 564 } … … 581 586 { 582 587 $option_key = HOOK_NAME . '_state'; 583 if (empty($value) && is_array($key)){588 if (empty($value) && is_array($key)) { 584 589 return update_option($option_key, $key); 585 590 } … … 592 597 return update_option($option_key, $state); 593 598 } 599 600 /** 601 * Meta box in product 602 */ 603 function display_metabox_for_product() 604 { 605 $post = get_post(); 606 $box_data = ''; 607 $data_id = get_post_meta($post->ID, 'wooms_id', true); 608 $data_meta = get_post_meta($post->ID, 'wooms_meta', true); 609 $data_updated = get_post_meta($post->ID, 'wooms_updated', true); 610 if ($data_id) { 611 printf('<div>ID товара в МойСклад: <div><strong>%s</strong></div></div>', $data_id); 612 } else { 613 echo '<p>Товар еще не синхронизирован с МойСклад.</p> <p>Ссылка на товар отсутствует</p>'; 614 } 615 616 if ($data_meta) { 617 printf('<p><a href="%s" target="_blank">Посмотреть товар в МойСклад</a></p>', $data_meta['uuidHref']); 618 } 619 620 if ($data_updated) { 621 printf('<div>Дата последнего обновления товара в МойСклад: <strong>%s</strong></div>', $data_updated); 622 } 623 624 do_action('wooms_display_product_metabox', $post->ID); 625 } -
wooms/tags/9.1.rc1/includes/ProductsCategories.php
r2826440 r2842491 3 3 namespace WooMS; 4 4 5 if (!defined('ABSPATH')) { 6 exit; // Exit if accessed directly 7 } 5 defined('ABSPATH') || exit; 8 6 9 7 /** … … 18 16 public static function init() 19 17 { 20 21 // add_action('init', function () {22 // if (!isset($_GET['dd'])) {23 // return;24 // }25 26 // dd(get_option());27 28 // dd(0);29 // });30 18 31 19 add_filter('wooms_product_save', array(__CLASS__, 'product_save'), 10, 3); … … 333 321 { 334 322 335 add_settings_section('wooms_product_cat', 'Категории продуктов', null, 'mss-settings');323 add_settings_section('wooms_product_cat', 'Категории продуктов', __return_empty_string(), 'mss-settings'); 336 324 337 325 self::add_setting_categories_sync_enabled(); -
wooms/tags/9.1.rc1/includes/ProductsHiding.php
r2826597 r2842491 10 10 add_action('wooms_main_walker_started', __NAMESPACE__ . '\\remove_task_for_hide'); 11 11 add_action('admin_init', __NAMESPACE__ . '\\add_settings'); 12 add_action('wooms s_tool_actions_btns', __NAMESPACE__ . '\\display_state', 22);12 add_action('wooms_tools_sections', __NAMESPACE__ . '\\display_state', 22); 13 13 }); 14 14 -
wooms/tags/9.1.rc1/includes/ProductsImage.php
r2826440 r2842491 8 8 add_action('wooms_product_image_sync', __NAMESPACE__ . '\\walker'); 9 9 add_filter('wooms_product_save', __NAMESPACE__ . '\\add_image_task_to_product', 35, 2); 10 add_action('wooms s_tool_actions_btns', __NAMESPACE__ . '\\render_ui', 15);10 add_action('wooms_tools_sections', __NAMESPACE__ . '\\render_ui', 15); 11 11 add_action('admin_init', __NAMESPACE__ . '\\add_settings', 50); 12 12 add_action('wooms_main_walker_finish', __NAMESPACE__ . '\\restart'); -
wooms/tags/9.1.rc1/readme.txt
r2826597 r2842491 81 81 == Changelog == 82 82 83 = 9.0.1 = 83 = 9.1 = 84 - возврат опции про пропуск продуктов без артикула https://github.com/wpcraft-ru/wooms/issues/461 85 - из карточки товара в WP пропал блок с ссылкой на этот же товар в МС https://github.com/wpcraft-ru/wooms/issues/468 86 - тест WooCommerce 7.2.2 84 87 - исправлена ошибка синхронизации вариаций 88 - мелкие исправления и рефакторинг 85 89 86 90 = 9.0 = -
wooms/trunk/includes/MenuSettings.php
r2828881 r2842491 259 259 260 260 printf('<p><a href="%s">Управление синхронизацией</a></p>', admin_url('admin.php?page=moysklad')); 261 printf('<p><a href="%s" target="_blank">Расширен ная версия с дополнительными возможностями</a></p>', "https://wpcraft.ru/product/wooms-extra/");261 printf('<p><a href="%s" target="_blank">Расширения и дополнения</a></p>', "https://github.com/topics/wooms"); 262 262 printf('<p><a href="%s" target="_blank">Предложения по улучшению и запросы на доработку</a></p>', "https://github.com/wpcraft-ru/wooms/issues"); 263 printf('<p><a href="%s" target="_blank">Рекомендуемые хостинги</a></p>', "https://wpcraft.ru/wordpress/hosting/"); 264 printf('<p><a href="%s" target="_blank">Сопровождение магазинов и консалтинг</a></p>', "https://wpcraft.ru/wordpress-woocommerce-mentoring/"); 265 printf('<p><a href="%s" target="_blank">Помощь и техическая поддержка</a></p>', "https://wpcraft.ru/contacts/"); 263 printf('<p><a href="%s" target="_blank">Рекомендуемые хостинги</a></p>', "https://wpcraft.ru/hosting-wordpress-woocommerce/"); 264 printf('<p><a href="%s" target="_blank">Контакты</a></p>', "https://wpcraft.ru/contacts/"); 266 265 } 267 266 } -
wooms/trunk/includes/MenuTools.php
r2826440 r2842491 54 54 '<a href="https://online.moysklad.ru/app/" target="_blank">Вход в МойСклад</a>', 55 55 sprintf('<a href="%s">Диагностика проблем</a>', admin_url("site-health.php") ), 56 '<a href="https://wpcraft.ru/ wordpress/hosting/" target="_blank">Рекомендуемые хостинги</a>',57 '<a href="https://wpcraft.ru/ wordpress-woocommerce-mentoring/" target="_blank">Сопровождение магазинов и консалтинг</a>',56 '<a href="https://wpcraft.ru/hosting-wordpress-woocommerce/" target="_blank">Рекомендуемые хостинги</a>', 57 '<a href="https://wpcraft.ru/contacts/" target="_blank">Контакты</a>', 58 58 ]; 59 59 60 60 printf( '<p>%s</p>', implode('<span> | </span>', $items) ); 61 61 62 if( empty($_GET['a']) ){ 63 do_action('woomss_tool_actions_btns'); 62 if(empty(get_option('woomss_pass'))){ 63 printf('<p>Укажите логин и пароль на <a href="%s">странице настроек</a></p>', admin_url('admin.php?page=mss-settings')); 64 } else { 65 if( empty($_GET['a']) ){ 64 66 65 do_action('wooms_tools_sections');67 do_action('wooms_tools_sections'); 66 68 67 } else { 69 // deprecated 70 do_action('woomss_tool_actions_btns'); 68 71 69 printf('<a href="%s">Вернуться...</a>', remove_query_arg( 'a', self::$url)); 70 do_action('woomss_tool_actions'); 71 do_action('woomss_tool_actions_' . $_GET['a']); 72 } else { 72 73 74 printf('<a href="%s">Вернуться...</a>', remove_query_arg( 'a', self::$url)); 75 do_action('woomss_tool_actions'); 76 do_action('woomss_tool_actions_' . $_GET['a']); 77 78 } 73 79 } 80 74 81 75 82 } -
wooms/trunk/includes/ProductStocks.php
r2826440 r2842491 44 44 45 45 add_action('admin_init', array(__CLASS__, 'add_settings'), 30); 46 add_action('wooms s_tool_actions_btns', array(__CLASS__, 'display_state'), 17);46 add_action('wooms_tools_sections', array(__CLASS__, 'display_state'), 17); 47 47 48 48 add_filter('wooms_stock_type', array(__CLASS__, 'select_type_stock')); -
wooms/trunk/includes/ProductVariable.php
r2826597 r2842491 46 46 add_action('wooms_main_walker_started', array(__CLASS__, 'set_wait')); 47 47 48 add_action('wooms s_tool_actions_btns', array(__CLASS__, 'display_state'), 15);48 add_action('wooms_tools_sections', array(__CLASS__, 'display_state'), 15); 49 49 50 50 add_action('woocommerce_variation_header', array(__CLASS__, 'variation_sync_id'), 10); -
wooms/trunk/includes/Products.php
r2826597 r2842491 15 15 add_filter('wooms_product_save', __NAMESPACE__ . '\\update_product', 9, 3); 16 16 17 add_action('wooms s_tool_actions_btns', __NAMESPACE__ . '\\render_ui', 9);17 add_action('wooms_tools_sections', __NAMESPACE__ . '\\render_ui', 9); 18 18 add_action('woomss_tool_actions_wooms_products_start_import', __NAMESPACE__ . '\\start_manually'); 19 19 add_action('woomss_tool_actions_wooms_products_stop_import', __NAMESPACE__ . '\\stop_manually'); 20 20 21 add_action('init', function(){ 21 add_action('add_meta_boxes', function () { 22 add_meta_box('wooms_product', 'МойСклад', __NAMESPACE__ . '\\display_metabox_for_product', 'product', 'side', 'low'); 23 }); 24 25 add_action('init', function () { 22 26 if (!wp_next_scheduled('wooms_monitoring')) { 23 wp_schedule_event( time(), 'every_minute', 'wooms_monitoring');27 wp_schedule_event(time(), 'every_minute', 'wooms_monitoring'); 24 28 } 25 29 }); 26 add_action('wooms_monitoring', __NAMESPACE__ . '\\check_and_restart_job_queue');27 30 28 31 /** … … 31 34 function walker($args = []) 32 35 { 33 if (empty($args)){36 if (empty($args)) { 34 37 walker_started(); 35 38 $state = get_state(); … … 64 67 $data = wooms_request($url); 65 68 66 if (isset($data['errors'])){69 if (isset($data['errors'])) { 67 70 throw new \Exception(print_r($data['errors'], true)); 68 71 } … … 105 108 function process_rows($rows = []) 106 109 { 107 if (empty($rows)){110 if (empty($rows)) { 108 111 return false; 109 112 } … … 166 169 } 167 170 168 function get_session_id(){ 171 function get_session_id() 172 { 169 173 return get_state('session_id'); 170 174 } … … 233 237 $product->set_catalog_visibility('visible'); 234 238 235 if ( apply_filters('wooms_reset_state_products', true)) {239 if (apply_filters('wooms_reset_state_products', true)) { 236 240 $product->set_stock_status('instock'); 237 241 $product->set_manage_stock('no'); … … 292 296 $product_id = get_product_id_by_uuid($value['id']); 293 297 294 if (empty($product_id) && !empty($value['article'])){298 if (empty($product_id) && !empty($value['article'])) { 295 299 $product_id = wc_get_product_id_by_sku($value['article']); 296 300 } … … 462 466 $query_arg_default = [ 463 467 'offset' => 0, 464 'limit' => apply_filters('wooms_iteration_size', $batch_size),468 'limit' => apply_filters('wooms_iteration_size', $batch_size), 465 469 ]; 466 470 // set_state('query_arg', ); … … 506 510 507 511 //if no password 508 if (empty(get_option('woomss_pass'))){512 if (empty(get_option('woomss_pass'))) { 509 513 return true; 510 514 } … … 542 546 543 547 544 function check_and_restart_job_queue(){ 548 function check_and_restart_job_queue() 549 { 545 550 $end_timestamp = get_state('end_timestamp'); 546 551 $is_enable_cron = get_option('woomss_walker_cron_enabled', false); 547 if (empty($end_timestamp)){548 return false; 549 } 550 if (empty($is_enable_cron)){552 if (empty($end_timestamp)) { 553 return false; 554 } 555 if (empty($is_enable_cron)) { 551 556 return false; 552 557 } … … 555 560 $time_has_passed = time() - $end_timestamp; 556 561 557 if ($time_has_passed < $timer){562 if ($time_has_passed < $timer) { 558 563 return false; 559 564 } … … 581 586 { 582 587 $option_key = HOOK_NAME . '_state'; 583 if (empty($value) && is_array($key)){588 if (empty($value) && is_array($key)) { 584 589 return update_option($option_key, $key); 585 590 } … … 592 597 return update_option($option_key, $state); 593 598 } 599 600 /** 601 * Meta box in product 602 */ 603 function display_metabox_for_product() 604 { 605 $post = get_post(); 606 $box_data = ''; 607 $data_id = get_post_meta($post->ID, 'wooms_id', true); 608 $data_meta = get_post_meta($post->ID, 'wooms_meta', true); 609 $data_updated = get_post_meta($post->ID, 'wooms_updated', true); 610 if ($data_id) { 611 printf('<div>ID товара в МойСклад: <div><strong>%s</strong></div></div>', $data_id); 612 } else { 613 echo '<p>Товар еще не синхронизирован с МойСклад.</p> <p>Ссылка на товар отсутствует</p>'; 614 } 615 616 if ($data_meta) { 617 printf('<p><a href="%s" target="_blank">Посмотреть товар в МойСклад</a></p>', $data_meta['uuidHref']); 618 } 619 620 if ($data_updated) { 621 printf('<div>Дата последнего обновления товара в МойСклад: <strong>%s</strong></div>', $data_updated); 622 } 623 624 do_action('wooms_display_product_metabox', $post->ID); 625 } -
wooms/trunk/includes/ProductsCategories.php
r2826440 r2842491 3 3 namespace WooMS; 4 4 5 if (!defined('ABSPATH')) { 6 exit; // Exit if accessed directly 7 } 5 defined('ABSPATH') || exit; 8 6 9 7 /** … … 18 16 public static function init() 19 17 { 20 21 // add_action('init', function () {22 // if (!isset($_GET['dd'])) {23 // return;24 // }25 26 // dd(get_option());27 28 // dd(0);29 // });30 18 31 19 add_filter('wooms_product_save', array(__CLASS__, 'product_save'), 10, 3); … … 333 321 { 334 322 335 add_settings_section('wooms_product_cat', 'Категории продуктов', null, 'mss-settings');323 add_settings_section('wooms_product_cat', 'Категории продуктов', __return_empty_string(), 'mss-settings'); 336 324 337 325 self::add_setting_categories_sync_enabled(); -
wooms/trunk/includes/ProductsHiding.php
r2826597 r2842491 10 10 add_action('wooms_main_walker_started', __NAMESPACE__ . '\\remove_task_for_hide'); 11 11 add_action('admin_init', __NAMESPACE__ . '\\add_settings'); 12 add_action('wooms s_tool_actions_btns', __NAMESPACE__ . '\\display_state', 22);12 add_action('wooms_tools_sections', __NAMESPACE__ . '\\display_state', 22); 13 13 }); 14 14 -
wooms/trunk/includes/ProductsImage.php
r2826440 r2842491 8 8 add_action('wooms_product_image_sync', __NAMESPACE__ . '\\walker'); 9 9 add_filter('wooms_product_save', __NAMESPACE__ . '\\add_image_task_to_product', 35, 2); 10 add_action('wooms s_tool_actions_btns', __NAMESPACE__ . '\\render_ui', 15);10 add_action('wooms_tools_sections', __NAMESPACE__ . '\\render_ui', 15); 11 11 add_action('admin_init', __NAMESPACE__ . '\\add_settings', 50); 12 12 add_action('wooms_main_walker_finish', __NAMESPACE__ . '\\restart'); -
wooms/trunk/readme.txt
r2826597 r2842491 81 81 == Changelog == 82 82 83 = 9.0.1 = 83 = 9.1 = 84 - возврат опции про пропуск продуктов без артикула https://github.com/wpcraft-ru/wooms/issues/461 85 - из карточки товара в WP пропал блок с ссылкой на этот же товар в МС https://github.com/wpcraft-ru/wooms/issues/468 86 - тест WooCommerce 7.2.2 84 87 - исправлена ошибка синхронизации вариаций 88 - мелкие исправления и рефакторинг 85 89 86 90 = 9.0 =
Note: See TracChangeset
for help on using the changeset viewer.