Plugin Directory

Changeset 2842491


Ignore:
Timestamp:
01/02/2023 07:49:27 PM (3 years ago)
Author:
casepress
Message:

Update to version 9.1.rc1 from GitHub

Location:
wooms
Files:
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wooms/tags/9.1.rc1/includes/MenuSettings.php

    r2828881 r2842491  
    259259
    260260        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");
    262262        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/");
    266265    }
    267266}
  • wooms/tags/9.1.rc1/includes/MenuTools.php

    r2826440 r2842491  
    5454      '<a href="https://online.moysklad.ru/app/" target="_blank">Вход в МойСклад</a>',
    5555      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>',
    5858    ];
    5959
    6060    printf( '<p>%s</p>', implode('<span> | </span>', $items) );
    6161
    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']) ){
    6466
    65       do_action('wooms_tools_sections');
     67        do_action('wooms_tools_sections');
    6668
    67     } else {
     69        // deprecated
     70        do_action('woomss_tool_actions_btns');
    6871
    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 {
    7273
     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      }
    7379    }
     80
    7481
    7582  }
  • wooms/tags/9.1.rc1/includes/ProductStocks.php

    r2826440 r2842491  
    4444
    4545    add_action('admin_init', array(__CLASS__, 'add_settings'), 30);
    46     add_action('woomss_tool_actions_btns', array(__CLASS__, 'display_state'), 17);
     46    add_action('wooms_tools_sections', array(__CLASS__, 'display_state'), 17);
    4747
    4848    add_filter('wooms_stock_type', array(__CLASS__, 'select_type_stock'));
  • wooms/tags/9.1.rc1/includes/ProductVariable.php

    r2826597 r2842491  
    4646    add_action('wooms_main_walker_started', array(__CLASS__, 'set_wait'));
    4747
    48     add_action('woomss_tool_actions_btns', array(__CLASS__, 'display_state'), 15);
     48    add_action('wooms_tools_sections', array(__CLASS__, 'display_state'), 15);
    4949
    5050    add_action('woocommerce_variation_header', array(__CLASS__, 'variation_sync_id'), 10);
  • wooms/tags/9.1.rc1/includes/Products.php

    r2826597 r2842491  
    1515add_filter('wooms_product_save', __NAMESPACE__ . '\\update_product', 9, 3);
    1616
    17 add_action('woomss_tool_actions_btns', __NAMESPACE__ . '\\render_ui', 9);
     17add_action('wooms_tools_sections', __NAMESPACE__ . '\\render_ui', 9);
    1818add_action('woomss_tool_actions_wooms_products_start_import', __NAMESPACE__ . '\\start_manually');
    1919add_action('woomss_tool_actions_wooms_products_stop_import', __NAMESPACE__ . '\\stop_manually');
    2020
    21 add_action('init', function(){
     21add_action('add_meta_boxes', function () {
     22  add_meta_box('wooms_product', 'МойСклад', __NAMESPACE__ . '\\display_metabox_for_product', 'product', 'side', 'low');
     23});
     24
     25add_action('init', function () {
    2226  if (!wp_next_scheduled('wooms_monitoring')) {
    23     wp_schedule_event( time(), 'every_minute', 'wooms_monitoring' );
     27    wp_schedule_event(time(), 'every_minute', 'wooms_monitoring');
    2428  }
    2529});
    26 add_action('wooms_monitoring', __NAMESPACE__ . '\\check_and_restart_job_queue');
    2730
    2831/**
     
    3134function walker($args = [])
    3235{
    33   if(empty($args)){
     36  if (empty($args)) {
    3437    walker_started();
    3538    $state = get_state();
     
    6467    $data = wooms_request($url);
    6568
    66     if(isset($data['errors'])){
     69    if (isset($data['errors'])) {
    6770      throw new \Exception(print_r($data['errors'], true));
    6871    }
     
    105108function process_rows($rows = [])
    106109{
    107   if(empty($rows)){
     110  if (empty($rows)) {
    108111    return false;
    109112  }
     
    166169}
    167170
    168 function get_session_id(){
     171function get_session_id()
     172{
    169173  return get_state('session_id');
    170174}
     
    233237  $product->set_catalog_visibility('visible');
    234238
    235   if ( apply_filters('wooms_reset_state_products', true) ) {
     239  if (apply_filters('wooms_reset_state_products', true)) {
    236240    $product->set_stock_status('instock');
    237241    $product->set_manage_stock('no');
     
    292296  $product_id = get_product_id_by_uuid($value['id']);
    293297
    294   if(empty($product_id) && !empty($value['article'])){
     298  if (empty($product_id) && !empty($value['article'])) {
    295299    $product_id = wc_get_product_id_by_sku($value['article']);
    296300  }
     
    462466  $query_arg_default = [
    463467    'offset' => 0,
    464     'limit'  => apply_filters('wooms_iteration_size', $batch_size),
     468    'limit' => apply_filters('wooms_iteration_size', $batch_size),
    465469  ];
    466470  // set_state('query_arg', );
     
    506510
    507511  //if no password
    508   if(empty(get_option('woomss_pass'))){
     512  if (empty(get_option('woomss_pass'))) {
    509513    return true;
    510514  }
     
    542546
    543547
    544 function check_and_restart_job_queue(){
     548function check_and_restart_job_queue()
     549{
    545550  $end_timestamp = get_state('end_timestamp');
    546551  $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)) {
    551556    return false;
    552557  }
     
    555560  $time_has_passed = time() - $end_timestamp;
    556561
    557   if($time_has_passed < $timer){
     562  if ($time_has_passed < $timer) {
    558563    return false;
    559564  }
     
    581586{
    582587  $option_key = HOOK_NAME . '_state';
    583   if(empty($value) && is_array($key)){
     588  if (empty($value) && is_array($key)) {
    584589    return update_option($option_key, $key);
    585590  }
     
    592597  return update_option($option_key, $state);
    593598}
     599
     600/**
     601 * Meta box in product
     602 */
     603function 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  
    33namespace WooMS;
    44
    5 if (!defined('ABSPATH')) {
    6   exit; // Exit if accessed directly
    7 }
     5defined('ABSPATH') || exit;
    86
    97/**
     
    1816  public static function init()
    1917  {
    20 
    21     // add_action('init', function () {
    22     //   if (!isset($_GET['dd'])) {
    23     //     return;
    24     //   }
    25 
    26     //   dd(get_option());
    27 
    28     //   dd(0);
    29     // });
    3018
    3119    add_filter('wooms_product_save', array(__CLASS__, 'product_save'), 10, 3);
     
    333321  {
    334322
    335     add_settings_section('wooms_product_cat', 'Категории продуктов', null, 'mss-settings');
     323    add_settings_section('wooms_product_cat', 'Категории продуктов', __return_empty_string(), 'mss-settings');
    336324
    337325    self::add_setting_categories_sync_enabled();
  • wooms/tags/9.1.rc1/includes/ProductsHiding.php

    r2826597 r2842491  
    1010  add_action('wooms_main_walker_started', __NAMESPACE__ . '\\remove_task_for_hide');
    1111  add_action('admin_init', __NAMESPACE__ . '\\add_settings');
    12   add_action('woomss_tool_actions_btns', __NAMESPACE__ . '\\display_state', 22);
     12  add_action('wooms_tools_sections', __NAMESPACE__ . '\\display_state', 22);
    1313});
    1414
  • wooms/tags/9.1.rc1/includes/ProductsImage.php

    r2826440 r2842491  
    88    add_action('wooms_product_image_sync', __NAMESPACE__ . '\\walker');
    99    add_filter('wooms_product_save', __NAMESPACE__ . '\\add_image_task_to_product', 35, 2);
    10     add_action('woomss_tool_actions_btns', __NAMESPACE__ . '\\render_ui', 15);
     10    add_action('wooms_tools_sections', __NAMESPACE__ . '\\render_ui', 15);
    1111    add_action('admin_init', __NAMESPACE__ . '\\add_settings', 50);
    1212    add_action('wooms_main_walker_finish', __NAMESPACE__ . '\\restart');
  • wooms/tags/9.1.rc1/readme.txt

    r2826597 r2842491  
    8181== Changelog ==
    8282
    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
    8487- исправлена ошибка синхронизации вариаций
     88- мелкие исправления и рефакторинг
    8589
    8690= 9.0 =
  • wooms/trunk/includes/MenuSettings.php

    r2828881 r2842491  
    259259
    260260        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");
    262262        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/");
    266265    }
    267266}
  • wooms/trunk/includes/MenuTools.php

    r2826440 r2842491  
    5454      '<a href="https://online.moysklad.ru/app/" target="_blank">Вход в МойСклад</a>',
    5555      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>',
    5858    ];
    5959
    6060    printf( '<p>%s</p>', implode('<span> | </span>', $items) );
    6161
    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']) ){
    6466
    65       do_action('wooms_tools_sections');
     67        do_action('wooms_tools_sections');
    6668
    67     } else {
     69        // deprecated
     70        do_action('woomss_tool_actions_btns');
    6871
    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 {
    7273
     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      }
    7379    }
     80
    7481
    7582  }
  • wooms/trunk/includes/ProductStocks.php

    r2826440 r2842491  
    4444
    4545    add_action('admin_init', array(__CLASS__, 'add_settings'), 30);
    46     add_action('woomss_tool_actions_btns', array(__CLASS__, 'display_state'), 17);
     46    add_action('wooms_tools_sections', array(__CLASS__, 'display_state'), 17);
    4747
    4848    add_filter('wooms_stock_type', array(__CLASS__, 'select_type_stock'));
  • wooms/trunk/includes/ProductVariable.php

    r2826597 r2842491  
    4646    add_action('wooms_main_walker_started', array(__CLASS__, 'set_wait'));
    4747
    48     add_action('woomss_tool_actions_btns', array(__CLASS__, 'display_state'), 15);
     48    add_action('wooms_tools_sections', array(__CLASS__, 'display_state'), 15);
    4949
    5050    add_action('woocommerce_variation_header', array(__CLASS__, 'variation_sync_id'), 10);
  • wooms/trunk/includes/Products.php

    r2826597 r2842491  
    1515add_filter('wooms_product_save', __NAMESPACE__ . '\\update_product', 9, 3);
    1616
    17 add_action('woomss_tool_actions_btns', __NAMESPACE__ . '\\render_ui', 9);
     17add_action('wooms_tools_sections', __NAMESPACE__ . '\\render_ui', 9);
    1818add_action('woomss_tool_actions_wooms_products_start_import', __NAMESPACE__ . '\\start_manually');
    1919add_action('woomss_tool_actions_wooms_products_stop_import', __NAMESPACE__ . '\\stop_manually');
    2020
    21 add_action('init', function(){
     21add_action('add_meta_boxes', function () {
     22  add_meta_box('wooms_product', 'МойСклад', __NAMESPACE__ . '\\display_metabox_for_product', 'product', 'side', 'low');
     23});
     24
     25add_action('init', function () {
    2226  if (!wp_next_scheduled('wooms_monitoring')) {
    23     wp_schedule_event( time(), 'every_minute', 'wooms_monitoring' );
     27    wp_schedule_event(time(), 'every_minute', 'wooms_monitoring');
    2428  }
    2529});
    26 add_action('wooms_monitoring', __NAMESPACE__ . '\\check_and_restart_job_queue');
    2730
    2831/**
     
    3134function walker($args = [])
    3235{
    33   if(empty($args)){
     36  if (empty($args)) {
    3437    walker_started();
    3538    $state = get_state();
     
    6467    $data = wooms_request($url);
    6568
    66     if(isset($data['errors'])){
     69    if (isset($data['errors'])) {
    6770      throw new \Exception(print_r($data['errors'], true));
    6871    }
     
    105108function process_rows($rows = [])
    106109{
    107   if(empty($rows)){
     110  if (empty($rows)) {
    108111    return false;
    109112  }
     
    166169}
    167170
    168 function get_session_id(){
     171function get_session_id()
     172{
    169173  return get_state('session_id');
    170174}
     
    233237  $product->set_catalog_visibility('visible');
    234238
    235   if ( apply_filters('wooms_reset_state_products', true) ) {
     239  if (apply_filters('wooms_reset_state_products', true)) {
    236240    $product->set_stock_status('instock');
    237241    $product->set_manage_stock('no');
     
    292296  $product_id = get_product_id_by_uuid($value['id']);
    293297
    294   if(empty($product_id) && !empty($value['article'])){
     298  if (empty($product_id) && !empty($value['article'])) {
    295299    $product_id = wc_get_product_id_by_sku($value['article']);
    296300  }
     
    462466  $query_arg_default = [
    463467    'offset' => 0,
    464     'limit'  => apply_filters('wooms_iteration_size', $batch_size),
     468    'limit' => apply_filters('wooms_iteration_size', $batch_size),
    465469  ];
    466470  // set_state('query_arg', );
     
    506510
    507511  //if no password
    508   if(empty(get_option('woomss_pass'))){
     512  if (empty(get_option('woomss_pass'))) {
    509513    return true;
    510514  }
     
    542546
    543547
    544 function check_and_restart_job_queue(){
     548function check_and_restart_job_queue()
     549{
    545550  $end_timestamp = get_state('end_timestamp');
    546551  $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)) {
    551556    return false;
    552557  }
     
    555560  $time_has_passed = time() - $end_timestamp;
    556561
    557   if($time_has_passed < $timer){
     562  if ($time_has_passed < $timer) {
    558563    return false;
    559564  }
     
    581586{
    582587  $option_key = HOOK_NAME . '_state';
    583   if(empty($value) && is_array($key)){
     588  if (empty($value) && is_array($key)) {
    584589    return update_option($option_key, $key);
    585590  }
     
    592597  return update_option($option_key, $state);
    593598}
     599
     600/**
     601 * Meta box in product
     602 */
     603function 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  
    33namespace WooMS;
    44
    5 if (!defined('ABSPATH')) {
    6   exit; // Exit if accessed directly
    7 }
     5defined('ABSPATH') || exit;
    86
    97/**
     
    1816  public static function init()
    1917  {
    20 
    21     // add_action('init', function () {
    22     //   if (!isset($_GET['dd'])) {
    23     //     return;
    24     //   }
    25 
    26     //   dd(get_option());
    27 
    28     //   dd(0);
    29     // });
    3018
    3119    add_filter('wooms_product_save', array(__CLASS__, 'product_save'), 10, 3);
     
    333321  {
    334322
    335     add_settings_section('wooms_product_cat', 'Категории продуктов', null, 'mss-settings');
     323    add_settings_section('wooms_product_cat', 'Категории продуктов', __return_empty_string(), 'mss-settings');
    336324
    337325    self::add_setting_categories_sync_enabled();
  • wooms/trunk/includes/ProductsHiding.php

    r2826597 r2842491  
    1010  add_action('wooms_main_walker_started', __NAMESPACE__ . '\\remove_task_for_hide');
    1111  add_action('admin_init', __NAMESPACE__ . '\\add_settings');
    12   add_action('woomss_tool_actions_btns', __NAMESPACE__ . '\\display_state', 22);
     12  add_action('wooms_tools_sections', __NAMESPACE__ . '\\display_state', 22);
    1313});
    1414
  • wooms/trunk/includes/ProductsImage.php

    r2826440 r2842491  
    88    add_action('wooms_product_image_sync', __NAMESPACE__ . '\\walker');
    99    add_filter('wooms_product_save', __NAMESPACE__ . '\\add_image_task_to_product', 35, 2);
    10     add_action('woomss_tool_actions_btns', __NAMESPACE__ . '\\render_ui', 15);
     10    add_action('wooms_tools_sections', __NAMESPACE__ . '\\render_ui', 15);
    1111    add_action('admin_init', __NAMESPACE__ . '\\add_settings', 50);
    1212    add_action('wooms_main_walker_finish', __NAMESPACE__ . '\\restart');
  • wooms/trunk/readme.txt

    r2826597 r2842491  
    8181== Changelog ==
    8282
    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
    8487- исправлена ошибка синхронизации вариаций
     88- мелкие исправления и рефакторинг
    8589
    8690= 9.0 =
Note: See TracChangeset for help on using the changeset viewer.