From da8cccb180eb82871f67860551080d9c9b5cca35 Mon Sep 17 00:00:00 2001 From: Sergey Date: Thu, 30 Aug 2018 14:52:48 +0300 Subject: [PATCH] v3.3.3 --- .gitignore | 2 +- CHANGELOG.md | 4 +++ VERSION | 2 +- src/include/class-wc-retailcrm-base.php | 38 +++++++++++++++++++++-- src/include/class-wc-retailcrm-orders.php | 31 ++++++++++++------ src/readme.txt | 8 +++++ src/uninstall.php | 2 +- 7 files changed, 73 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index c809c58..6a4befe 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -/nbproject/private/ +/nbproject/ /vendor/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 88cc48e..e2dfba6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2018-08-30 v3.3.3 +* Добавлены кнопки для перехода в настройки плагина и для генерации каталога в админ-панели wordpress +* Добавлена передача статуса оплаты на v5 + ## 2018-08-22 v3.3.2 * Убрана проверка существования задач в wp-cron при каждой загрузке страницы * Задачи в wp-cron теперь активируются в настройках плагина diff --git a/VERSION b/VERSION index 5436ea0..3f09e91 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.3.2 \ No newline at end of file +3.3.3 \ No newline at end of file diff --git a/src/include/class-wc-retailcrm-base.php b/src/include/class-wc-retailcrm-base.php index ed1cfe3..e8fca93 100644 --- a/src/include/class-wc-retailcrm-base.php +++ b/src/include/class-wc-retailcrm-base.php @@ -50,7 +50,7 @@ if (!class_exists('WC_Retailcrm_Base')) { // Actions. add_action('woocommerce_update_options_integration_' . $this->id, array($this, 'process_admin_options')); add_filter('woocommerce_settings_api_sanitized_fields_' . $this->id, array($this, 'api_sanitized')); - + add_action('admin_bar_menu', array($this, 'add_retailcrm_button'), 100 ); add_action('woocommerce_checkout_order_processed', array($this, 'retailcrm_process_order'), 10, 1); add_action('retailcrm_history', array($this, 'retailcrm_history_get')); add_action('retailcrm_icml', array($this, 'generate_icml')); @@ -227,7 +227,7 @@ if (!class_exists('WC_Retailcrm_Base')) { $ajax_url = admin_url('admin-ajax.php'); ?>