1
0
mirror of synced 2025-03-21 07:33:52 +03:00

Rebranding Simla.com

This commit is contained in:
Dima Uryvskiy 2021-06-30 13:06:18 +03:00 committed by GitHub
parent fca30cb4f7
commit e7b0d2b3ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 182 additions and 131 deletions

View File

@ -1,3 +1,9 @@
## 2021-06-30 4.3
* Ребрендинг модуля RetailCRM --> Simla.com
* Исправили баг в работе опции "Активировать связь по sku(xmlId)"
* Добавлена возможность использовать ссылку чат WhatsApp на сайте
* Исправили мелкие баги в работе истории и генерации каталога ICML
## 2021-03-15 4.2.4
* Добавили отображение общего количества вариативных товаров
* Добавили валидацию на дату создания заказа
@ -5,7 +11,6 @@
* Обновили версии WP и WC в локальных тестах
* Исправили баг в опции "Передача номера заказа"
## 2021-01-20 4.2.3
* Обновление версии в маркетплейсе

View File

@ -6,7 +6,7 @@
Woocommerce-module
==================
Integration plugin for WooCommerce and [RetailCRM](http://retailcrm.ru)
Integration plugin for WooCommerce and [Simla.com](https://www.simla.com)
[Documentation](https://docs.retailcrm.ru/Users/Integration/SiteModules/WooCommerce) page

View File

@ -1 +1 @@
4.2.4
4.3

View File

@ -1,5 +1,5 @@
# Translation of Plugins - Woocommerce RetailCRM - Development (trunk) in Spanish
# This file is distributed under the same license as the Plugins - Woocommerce RetailCRM - Development (trunk) package.
# Translation of Plugins - Woocommerce Simla.com - Development (trunk) in Spanish
# This file is distributed under the same license as the Plugins - Woocommerce Simla.com - Development (trunk) package.
msgid ""
msgstr ""
"PO-Revision-Date: 2018-06-06 08:53:26+0000\n"
@ -9,30 +9,30 @@ msgstr ""
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: GlotPress/2.4.0-alpha\n"
"Language: es\n"
"Project-Id-Version: Plugins - Woocommerce RetailCRM - Development (trunk)\n"
"Project-Id-Version: Plugins - Woocommerce Simla.com - Development (trunk)\n"
#. Author URI of the plugin/theme
msgid "https://retailcrm.pro/"
msgstr "https://retailcrm.pro/"
msgid "https://simla.com/"
msgstr "https://simla.com/"
#. Author of the plugin/theme
msgid "RetailDriver LLC"
msgstr "RetailDriver LLC"
#. Description of the plugin/theme
msgid "Integration plugin for WooCommerce & RetailCRM"
msgstr "El plugin de integración para WooCommerce & RetailCRM"
msgid "Integration plugin for WooCommerce & Simla.com"
msgstr "El plugin de integración para WooCommerce & Simla.com"
#. Plugin URI of the plugin/theme
msgid "https://wordpress.org/plugins/woo-retailcrm/"
msgstr "https://wordpress.org/plugins/woo-retailcrm/"
#. Plugin Name of the plugin/theme
msgid "WooCommerce RetailCRM"
msgstr "WooCommerce RetailCRM"
msgid "WooCommerce Simla.com"
msgstr "WooCommerce Simla.com"
msgid "This functionality allows to upload orders to RetailCRM differentially."
msgstr "Esta función permite la subida selectiva de los pedidos al RetailCRM."
msgid "This functionality allows to upload orders to Simla.com differentially."
msgstr "Esta función permite la subida selectiva de los pedidos al Simla.com."
msgid "Uploading orders by identifiers."
msgstr "Subida de los pedidos por identificadores."
@ -64,14 +64,14 @@ msgstr "Los clientes y pedidos están subidos"
msgid "Enter the correct API key"
msgstr "Introduce la llave API correcta"
msgid "Enter the correct URL of RetailCRM"
msgstr "Introduce el enlace del RetailCRM correcto"
msgid "Enter the correct URL of Simla.com"
msgstr "Introduce el enlace del Simla.com correcto"
msgid "The selected API version is unavailable"
msgstr "La versión de API elegida no está disponible"
msgid "This functionality allows to generate ICML products catalog for uploading to RetailCRM."
msgstr "Esta función permite generar los catálogos de pedidos ICML para subida al RetailCRM."
msgid "This functionality allows to generate ICML products catalog for uploading to Simla.com."
msgstr "Esta función permite generar los catálogos de pedidos ICML para subida al Simla.com."
msgid "Generating ICML"
msgstr "Generando ICML"
@ -85,8 +85,8 @@ msgstr "Generar catálogo ICML"
msgid "Settings"
msgstr "Ajustes"
msgid "Uploading the existing customers and orders to RetailCRM"
msgstr "Subida de los clientes existentes y pedidos al RetailCRM."
msgid "Uploading the existing customers and orders to Simla.com"
msgstr "Subida de los clientes existentes y pedidos al Simla.com."
msgid "Uploading all customers and orders"
msgstr "Subir todos los clientes y pedidos"
@ -115,8 +115,8 @@ msgstr "Activar UA"
msgid "UA settings"
msgstr "Ajustes de UA"
msgid "Enable this setting if you would like to get information on leftover stocks from RetailCRM to the website."
msgstr "Active esta opción si quiere recibir la información del stock de los productos desde RetailCRM a la página web."
msgid "Enable this setting if you would like to get information on leftover stocks from Simla.com to the website."
msgstr "Active esta opción si quiere recibir la información del stock de los productos desde Simla.com a la página web."
msgid "Stock balance"
msgstr "El stock"
@ -136,20 +136,20 @@ msgstr "Métodos de pago"
msgid "Delivery types"
msgstr "Métodos de envío"
msgid "Select client roles which will be uploaded from website to RetailCRM"
msgstr "Seleccione los roles del cliente que se cargarán desde el sitio web a RetailCRM"
msgid "Select client roles which will be uploaded from website to Simla.com"
msgstr "Seleccione los roles del cliente que se cargarán desde el sitio web a Simla.com"
msgid "Client roles available for uploading to RetailCRM"
msgstr "Roles del cliente disponibles para cargar en RetailCRM"
msgid "Client roles available for uploading to Simla.com"
msgstr "Roles del cliente disponibles para cargar en Simla.com"
msgid "Client roles"
msgstr "Roles del cliente"
msgid "Select order methods which will be uploaded from RetailCRM to the website"
msgstr "Elige el método de formalización de los pedidos que se van a subir desde RetailCRM a la página web"
msgid "Select order methods which will be uploaded from Simla.com to the website"
msgstr "Elige el método de formalización de los pedidos que se van a subir desde Simla.com a la página web"
msgid "Order methods available for uploading from RetailCRM"
msgstr "Los métodos de la formalización de los pedidos disponibles para subida desde RetailCRM"
msgid "Order methods available for uploading from Simla.com"
msgstr "Los métodos de la formalización de los pedidos disponibles para subida desde Simla.com"
msgid "Order methods"
msgstr "Los métodos de la formalización del pedido"
@ -172,14 +172,14 @@ msgstr "Versión de API"
msgid "API settings"
msgstr "Ajustes de API"
msgid "Enter your API key. You can find it in the administration section of RetailCRM"
msgstr "Introduce la llave API. Puede encontrarla en apartado administrativo del RetailCRM"
msgid "Enter your API key. You can find it in the administration section of Simla.com"
msgstr "Introduce la llave API. Puede encontrarla en apartado administrativo del Simla.com"
msgid "Enter with your API URL (https://yourdomain.retailcrm.pro)."
msgstr "Introduce enlace de API (https://yourdomain.retailcrm.pro)."
msgid "Enter with your API URL (https://yourdomain.simla.com)."
msgstr "Introduce enlace de API (https://yourdomain.simla.com)."
msgid "Integration with RetailCRM management system."
msgstr "La integración con el sistema de gestión del RetailCRM ."
msgid "Integration with Simla.com management system."
msgstr "La integración con el sistema de gestión del Simla.com ."
msgid "Every 15 minutes"
msgstr "Cada 15 minutos"
@ -199,8 +199,8 @@ msgstr "El enlace API"
msgid "Main settings"
msgstr "Los ajustes generales"
msgid "RetailCRM"
msgstr "RetailCRM"
msgid "Simla.com"
msgstr "Simla.com"
msgid "Daemon Collector settings"
msgstr "Ajustes de Daemon Collector"
@ -217,11 +217,11 @@ msgstr "Active esta configuración para activar Daemon Collector en la página w
msgid "Site key"
msgstr "Clave de la página web"
msgid "Disable data editing in RetailCRM"
msgstr "Desactivar edición de datos en RetailCRM"
msgid "Disable data editing in Simla.com"
msgstr "Desactivar edición de datos en Simla.com"
msgid "Data updating in RetailCRM"
msgstr "Actualización de datos en RetailCRM"
msgid "Data updating in Simla.com"
msgstr "Actualización de datos en Simla.com"
msgid "Activate the binding via sku (xml)"
msgstr "Activar conexión por sku (xmlId)"
@ -229,8 +229,8 @@ msgstr "Activar conexión por sku (xmlId)"
msgid "Stock synchronization and link between products"
msgstr "Sincronización de stock y conexión de productos"
msgid "Enable transferring the number to RetailCRM"
msgstr "Activar la transferencia de números en RetailCRM"
msgid "Enable transferring the number to Simla.com"
msgstr "Activar la transferencia de números en Simla.com"
msgid "Transferring the order number"
msgstr "Transferencia de un número de pedido"

View File

@ -1,5 +1,5 @@
# Translation of Plugins - Woocommerce RetailCRM - Development (trunk) in Russian
# This file is distributed under the same license as the Plugins - Woocommerce RetailCRM - Development (trunk) package.
# Translation of Plugins - Woocommerce Simla.com - Development (trunk) in Russian
# This file is distributed under the same license as the Plugins - Woocommerce Simla.com - Development (trunk) package.
msgid ""
msgstr ""
"PO-Revision-Date: 2018-06-06 08:53:26+0000\n"
@ -9,39 +9,39 @@ msgstr ""
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: GlotPress/2.4.0-alpha\n"
"Language: ru\n"
"Project-Id-Version: Plugins - Woocommerce RetailCRM - Development (trunk)\n"
"Project-Id-Version: Plugins - Woocommerce Simla.com - Development (trunk)\n"
#. Author URI of the plugin/theme
msgid "https://retailcrm.pro/"
msgstr "https://retailcrm.ru/"
msgid "https://simla.com/"
msgstr "https://simla.com/"
#. Author of the plugin/theme
msgid "RetailDriver LLC"
msgstr "RetailDriver LLC"
#. Description of the plugin/theme
msgid "Integration plugin for WooCommerce & RetailCRM"
msgstr "Интеграционный плагин для WooCommerce & RetailCRM"
msgid "Integration plugin for WooCommerce & Simla.com"
msgstr "Интеграционный плагин для WooCommerce & Simla.com"
#. Plugin URI of the plugin/theme
msgid "https://wordpress.org/plugins/woo-retailcrm/"
msgstr "https://wordpress.org/plugins/woo-retailcrm/"
#. Plugin Name of the plugin/theme
msgid "WooCommerce RetailCRM"
msgstr "WooCommerce RetailCRM"
msgid "WooCommerce Simla.com"
msgstr "WooCommerce Simla.com"
msgid "Activate history uploads"
msgstr "Активировать загрузку истории изменений"
msgid "Upload data from RetailCRM"
msgstr "Загрузка данных из RetailCRM"
msgid "Upload data from Simla.com"
msgstr "Загрузка данных из Simla.com"
msgid "Generating ICML catalog by wp-cron"
msgstr "Генерация ICML каталога товаров с помощью wp-cron"
msgid "This functionality allows to upload orders to RetailCRM differentially."
msgstr "Эта функция позволяет производить выборочную выгрузку заказов в RetailCRM"
msgid "This functionality allows to upload orders to Simla.com differentially."
msgstr "Эта функция позволяет производить выборочную выгрузку заказов в Simla.com"
msgid "Uploading orders by identifiers."
msgstr "Выгрузка заказов по идентификаторам"
@ -73,14 +73,14 @@ msgstr "Клиенты и заказы были выгружены"
msgid "Enter the correct API key"
msgstr "Введите корректный API ключ"
msgid "Enter the correct URL of RetailCRM"
msgstr "Введите корректный адрес RetailCRM"
msgid "Enter the correct URL of Simla.com"
msgstr "Введите корректный адрес Simla.com"
msgid "The selected API version is unavailable"
msgstr "Выбранная версия API недоступна"
msgid "This functionality allows to generate ICML products catalog for uploading to RetailCRM."
msgstr "Эта функция позволяет сгенерировать ICML каталог товаров для выгрузки в RetailCRM"
msgid "This functionality allows to generate ICML products catalog for uploading to Simla.com."
msgstr "Эта функция позволяет сгенерировать ICML каталог товаров для выгрузки в Simla.com"
msgid "Generating ICML"
msgstr "Генерация ICML"
@ -94,8 +94,8 @@ msgstr "Генерация ICML каталога"
msgid "Settings"
msgstr "Настройки"
msgid "Uploading the existing customers and orders to RetailCRM"
msgstr "Выгрузка существующих клиентов и заказов в RetailCRM"
msgid "Uploading the existing customers and orders to Simla.com"
msgstr "Выгрузка существующих клиентов и заказов в Simla.com"
msgid "Uploading all customers and orders"
msgstr "Выгрузка всех клиентов и заказов"
@ -124,8 +124,8 @@ msgstr "Активировать UA"
msgid "UA settings"
msgstr "Настройки UA"
msgid "Enable this setting if you would like to get information on leftover stocks from RetailCRM to the website."
msgstr "Активируйте данную настройку, если хотите получать остатки по товарам из RetailCRM на сайт."
msgid "Enable this setting if you would like to get information on leftover stocks from Simla.com to the website."
msgstr "Активируйте данную настройку, если хотите получать остатки по товарам из Simla.com на сайт."
msgid "Stock balance"
msgstr "Остатки"
@ -145,20 +145,20 @@ msgstr "Способы оплаты"
msgid "Delivery types"
msgstr "Способы доставки"
msgid "Select client roles which will be uploaded from website to RetailCRM"
msgstr "Выберите роли клиентов, которые будут выгружаться в RetailCRM"
msgid "Select client roles which will be uploaded from website to Simla.com"
msgstr "Выберите роли клиентов, которые будут выгружаться в Simla.com"
msgid "Client roles available for uploading to RetailCRM"
msgstr "Роли клиентов, доступные для выгрузки в RetailCRM"
msgid "Client roles available for uploading to Simla.com"
msgstr "Роли клиентов, доступные для выгрузки в Simla.com"
msgid "Client roles"
msgstr "Роли клиентов"
msgid "Select order methods which will be uploaded from RetailCRM to the website"
msgstr "Выберите способы оформления заказов, которые будут выгружаться из RetailCRM на сайт"
msgid "Select order methods which will be uploaded from Simla.com to the website"
msgstr "Выберите способы оформления заказов, которые будут выгружаться из Simla.com на сайт"
msgid "Order methods available for uploading from RetailCRM"
msgstr "Способы оформления заказа, доступные для выгрузки из RetailCRM"
msgid "Order methods available for uploading from Simla.com"
msgstr "Способы оформления заказа, доступные для выгрузки из Simla.com"
msgid "Order methods"
msgstr "Способы оформления заказа"
@ -181,14 +181,14 @@ msgstr "Версия API"
msgid "API settings"
msgstr "Настройки API"
msgid "Enter your API key. You can find it in the administration section of RetailCRM"
msgstr "Введите API ключ. Вы можете найти его в административном разделе RetailCRM."
msgid "Enter your API key. You can find it in the administration section of Simla.com"
msgstr "Введите API ключ. Вы можете найти его в административном разделе Simla.com."
msgid "Enter API of URL (https://yourdomain.retailcrm.pro)."
msgstr "Введите API URL (https://yourdomain.retailcrm.ru)."
msgid "Enter API of URL (https://yourdomain.simla.com)."
msgstr "Введите API URL (https://yourdomain.simla.com)."
msgid "Integration with RetailCRM management system."
msgstr "Интеграция с системой управления RetailCRM"
msgid "Integration with Simla.com management system."
msgstr "Интеграция с системой управления Simla.com"
msgid "Every 15 minutes"
msgstr "Каждые 15 минут"
@ -208,8 +208,8 @@ msgstr "API URL"
msgid "Main settings"
msgstr "Главные настройки"
msgid "RetailCRM"
msgstr "RetailCRM"
msgid "Simla.com"
msgstr "Simla.com"
msgid "Daemon Collector settings"
msgstr "Настройка Daemon Collector"
@ -226,11 +226,11 @@ msgstr "Активируйте эту настройку для активаци
msgid "Site key"
msgstr "Ключ сайта"
msgid "Disable data editing in RetailCRM"
msgstr "Деактивировать редактирование данных в RetailCRM"
msgid "Disable data editing in Simla.com"
msgstr "Деактивировать редактирование данных в Simla.com"
msgid "Data updating in RetailCRM"
msgstr "Обновление данных в RetailCRM"
msgid "Data updating in Simla.com"
msgstr "Обновление данных в Simla.com"
msgid "Activate the binding via sku (xml)"
msgstr "Активировать связь по sku(xmlId)"
@ -238,8 +238,8 @@ msgstr "Активировать связь по sku(xmlId)"
msgid "Stock synchronization and link between products"
msgstr "Синхронизация остатков и связь товаров"
msgid "Enable transferring the number to RetailCRM"
msgstr "Активировать передачу номера в RetailCRM"
msgid "Enable transferring the number to Simla.com"
msgstr "Активировать передачу номера в Simla.com"
msgid "Transferring the order number"
msgstr "Передача номера заказа"

View File

@ -25,8 +25,8 @@ abstract class WC_Retailcrm_Abstracts_Settings extends WC_Integration
*/
public function __construct() {
$this->id = 'integration-retailcrm';
$this->method_title = __('RetailCRM', 'retailcrm');
$this->method_description = __('Integration with RetailCRM management system.', 'retailcrm');
$this->method_title = __('Simla.com', 'retailcrm');
$this->method_description = __('Integration with Simla.com management system.', 'retailcrm');
static::$option_key = $this->get_option_key();
@ -116,7 +116,7 @@ abstract class WC_Retailcrm_Abstracts_Settings extends WC_Integration
'api_key' => array(
'title' => __( 'API key', 'retailcrm' ),
'type' => 'text',
'description' => __( 'Enter your API key. You can find it in the administration section of RetailCRM', 'retailcrm' ),
'description' => __( 'Enter your API key. You can find it in the administration section of Simla.com', 'retailcrm' ),
'desc_tip' => true,
'default' => ''
)
@ -198,10 +198,10 @@ abstract class WC_Retailcrm_Abstracts_Settings extends WC_Integration
$this->form_fields['client_roles'] = array(
'label' => ' ',
'title' => __('Client roles available for uploading to RetailCRM', 'retailcrm'),
'title' => __('Client roles available for uploading to Simla.com', 'retailcrm'),
'class' => '',
'type' => 'multiselect',
'description' => __('Select client roles which will be uploaded from website to RetailCRM', 'retailcrm'),
'description' => __('Select client roles which will be uploaded from website to Simla.com', 'retailcrm'),
'options' => $client_roles_option,
'css' => 'min-height:100px;',
'select_buttons' => true
@ -232,10 +232,10 @@ abstract class WC_Retailcrm_Abstracts_Settings extends WC_Integration
$this->form_fields['order_methods'] = array(
'label' => ' ',
'title' => __('Order methods available for uploading from RetailCRM', 'retailcrm'),
'title' => __('Order methods available for uploading from Simla.com', 'retailcrm'),
'class' => '',
'type' => 'multiselect',
'description' => __('Select order methods which will be uploaded from RetailCRM to the website', 'retailcrm'),
'description' => __('Select order methods which will be uploaded from Simla.com to the website', 'retailcrm'),
'options' => $order_methods_option,
'css' => 'min-height:100px;',
'select_buttons' => true
@ -358,7 +358,7 @@ abstract class WC_Retailcrm_Abstracts_Settings extends WC_Integration
'title' => __('Stock balance', 'retailcrm'),
'class' => 'checkbox',
'type' => 'checkbox',
'description' => __('Enable this setting if you would like to get information on leftover stocks from RetailCRM to the website.', 'retailcrm')
'description' => __('Enable this setting if you would like to get information on leftover stocks from Simla.com to the website.', 'retailcrm')
);
/**
@ -432,7 +432,7 @@ abstract class WC_Retailcrm_Abstracts_Settings extends WC_Integration
'label' => __('Upload', 'retailcrm'),
'title' => __('Uploading all customers and orders', 'retailcrm' ),
'type' => 'button',
'description' => __('Uploading the existing customers and orders to RetailCRM', 'retailcrm' ),
'description' => __('Uploading the existing customers and orders to Simla.com', 'retailcrm' ),
'desc_tip' => true,
'id' => 'uploads-retailcrm'
);
@ -485,7 +485,7 @@ abstract class WC_Retailcrm_Abstracts_Settings extends WC_Integration
'label' => __('Generate now', 'retailcrm'),
'title' => __('Generating ICML', 'retailcrm'),
'type' => 'button',
'description' => __('This functionality allows to generate ICML products catalog for uploading to RetailCRM.', 'retailcrm'),
'description' => __('This functionality allows to generate ICML products catalog for uploading to Simla.com.', 'retailcrm'),
'desc_tip' => true,
'id' => 'icml-retailcrm'
);
@ -526,14 +526,14 @@ abstract class WC_Retailcrm_Abstracts_Settings extends WC_Integration
$this->form_fields['history'] = array(
'label' => __('Activate history uploads', 'retailcrm'),
'title' => __('Upload data from RetailCRM', 'retailcrm'),
'title' => __('Upload data from Simla.com', 'retailcrm'),
'class' => 'checkbox',
'type' => 'checkbox'
);
$this->form_fields['deactivate_update_order'] = array(
'label' => __('Disable data editing in RetailCRM', 'retailcrm'),
'title' => __('Data updating in RetailCRM', 'retailcrm'),
'label' => __('Disable data editing in Simla.com', 'retailcrm'),
'title' => __('Data updating in Simla.com', 'retailcrm'),
'class' => 'checkbox',
'type' => 'checkbox'
);
@ -546,7 +546,7 @@ abstract class WC_Retailcrm_Abstracts_Settings extends WC_Integration
);
$this->form_fields['update_number'] = array(
'label' => __('Enable transferring the number to RetailCRM', 'retailcrm'),
'label' => __('Enable transferring the number to Simla.com', 'retailcrm'),
'title' => __('Transferring the order number', 'retailcrm'),
'class' => 'checkbox',
'type' => 'checkbox'
@ -766,7 +766,7 @@ abstract class WC_Retailcrm_Abstracts_Settings extends WC_Integration
$wp_admin_bar->add_menu(
array(
'id' => 'retailcrm_top_menu',
'title' => __('RetailCRM', 'retailcrm')
'title' => __('Simla.com', 'retailcrm')
)
);
$wp_admin_bar->add_menu(

View File

@ -156,10 +156,50 @@ if (!class_exists('WC_Retailcrm_Base')) {
}
public function generate_icml() {
$retailcrm_icml = new WC_Retailcrm_Icml();
$retailcrm_icml->generate();
/*
* A temporary solution.
* We have rebranded the module and changed the name of the ICML file.
* This solution checks the url specified to the ICML file and updates it if necessary.
*/
$codeSite = '';
$infoApiKey = $this->apiClient->credentials();
if (empty($infoApiKey) === false && $infoApiKey->isSuccessful() === true) {
if (empty($infoApiKey['siteAccess']) === false && $infoApiKey['siteAccess'] === 'access_selective') {
if (empty($infoApiKey['sitesAvailable']) === false && count($infoApiKey['sitesAvailable']) === 1) {
$codeSite = $infoApiKey['sitesAvailable'][0];
}
}
}
if (empty($codeSite) === false) {
$getSites = $this->apiClient->sitesList();
if (empty($getSites['sites']) === false && $getSites->isSuccessful() === true) {
if(empty($getSites['sites'][$codeSite]) === false) {
$dataSite = $getSites['sites'][$codeSite];
if (empty($dataSite['ymlUrl']) === false) {
$ymlUrl = $dataSite['ymlUrl'];
if (strpos($ymlUrl, 'simla') === false) {
$ymlUrl = str_replace('retailcrm', 'simla', $ymlUrl);
$dataSite['ymlUrl'] = $ymlUrl;
$this->apiClient->sitesEdit($dataSite);
}
}
}
}
}
$retailCrmIcml = new WC_Retailcrm_Icml();
$retailCrmIcml->generate();
}
/**
* Get history
*/

View File

@ -52,7 +52,7 @@ if ( ! class_exists( 'WC_Retailcrm_Icml' ) ) :
{
$this->settings = get_option(WC_Retailcrm_Base::$option_key);
$this->shop = get_bloginfo( 'name' );
$this->file = ABSPATH . 'retailcrm.xml';
$this->file = ABSPATH . 'simla.xml';
$this->tmpFile = sprintf('%s.tmp', $this->file);
}

Binary file not shown.

Binary file not shown.

View File

@ -1,10 +1,10 @@
=== Woocommerce RetailCRM ===
Contributors: RetailCRM
Donate link: http://retailcrm.ru/
Tags: Интеграция, RetailCRM
=== Woocommerce Simla.com ===
Contributors: Simla.com
Donate link: https://www.simla.com
Tags: Интеграция, Simla.com
Requires PHP: 5.3
Requires at least: 4.4
Tested up to: 5.3
Requires at least: 5.7
Tested up to: 5.3.2
Stable tag: 3.5
License: GPLv1 or later
License URI: http://www.gnu.org/licenses/gpl-1.0.html
@ -13,11 +13,11 @@ License URI: http://www.gnu.org/licenses/gpl-1.0.html
= Plugin Functions =
This WooСommerce and RetailCRM integration plugin will help you manage your orders, catalogs and stock more easily by generating a catalog compatible with RetailCRMs system, setting up a two-way exchange of orders between WooCommerce and RetailCRM; sending and receiving changes on orders, uploading leftovers from RetailCRM to your online store automatically. How? By enabling the “stock unloading” function, your stock will be updated automatically every 15 minutes. This also means that you dont have to manually hide sold out stock on your website: the system will do it for you automatically!
This WooСommerce and Simla.com integration plugin will help you manage your orders, catalogs and stock more easily by generating a catalog compatible with Simla.com system, setting up a two-way exchange of orders between WooCommerce and Simla.com; sending and receiving changes on orders, uploading leftovers from Simla.com to your online store automatically. How? By enabling the “stock unloading” function, your stock will be updated automatically every 15 minutes. This also means that you dont have to manually hide sold out stock on your website: the system will do it for you automatically!
= Downloaded changes from RetailCRM =
= Downloaded changes from Simla.com =
Every 5 minutes the plugin downloads changes from RetailCRM to WooCommerce.
Every 5 minutes the plugin downloads changes from Simla.com to WooCommerce.
= Customization =
@ -27,7 +27,7 @@ You can make changes to the basic plugin classes by placing a copy of the class
= Activation and configuration =
After activating the plugin, open WooCommerces settings, select the “Integration” tab and specify the RetailCRM address in RetailCRMs settings (for example: https://example.retailcrm.ru). You will also have to specify the API key generated by our system (instructions for adding a key to RetailCRM via http: //www.retailcrm.ru/docs/Users/ApiKeys) and select the desired API version (API v5 is available only from RetailCRM 6.0 and on).
After activating the plugin, open WooCommerces settings, select the “Integration” tab and specify the Simla.com address in Simla.com settings (for example: https://example.simla.com). You will also have to specify the API key generated by our system (instructions for adding a key to [Simla.com via](http://www.retailcrm.es/docs/Users/ApiKeys)) and select the desired API version (API v5 is available only from Simla.com 6.0 and on).
== Frequently Asked Questions ==
@ -35,36 +35,36 @@ After activating the plugin, open WooCommerces settings, select the “Integr
Make sure that all methods are available for the generated API key
= I cant see any orders in RetailCRM =
= I cant see any orders in Simla.com =
Make sure you have a specific API key must for each store.
== Screenshots ==
1. Enter the RetailCRM address, the API key, the API version and click the save settings button. If no other settings appear after saving, refresh the page.
2. A list of directories will pop up, in which you will have to set up delivery and payment methods, as well as order statuses. Check the "Unload leftovers" box if you want to unload leftovers from RetailCRM to your store (for more details, see the description).
1. Enter the Simla.com address, the API key, the API version and click the save settings button. If no other settings appear after saving, refresh the page.
2. A list of directories will pop up, in which you will have to set up delivery and payment methods, as well as order statuses. Check the "Unload leftovers" box if you want to unload leftovers from Simla.com to your store (for more details, see the description).
== Descripción ==
Lleva tu comercio electrónico al siguiente nivel con RetailCRM, una herramienta de 360º que te permite no solo integrar plataformas clave como WooCommerce, sino también tener una visión completa de tu negocio y un control total sobre él independientemente de su tamaño.
Lleva tu comercio electrónico al siguiente nivel con Simla.com, una herramienta de 360º que te permite no solo integrar plataformas clave como WooCommerce, sino también tener una visión completa de tu negocio y un control total sobre él independientemente de su tamaño.
Este plugin de WooСommerce y RetailCRM te ayudará a administrar tus pedidos, catálogos y stock más fácilmente al generar un catálogo compatible con el sistema de RetailCRM, que crea un intercambio bidireccional de pedidos entre WooCommerce y RetailCRM. También podrás enviar y recibir cambios en pedidos y sincronizar tu mercadería en RetailCRM con el de tu tienda automáticamente. ¿Cómo? Al habilitar la función de "descarga de stock", tu bodega se actualizará automáticamente cada 15 minutos. Tampoco tendrás que ocultar manualmente las existencias agotadas en su sitio web, ¡el sistema lo hará por ti automáticamente!
Este plugin de WooСommerce y Simla.com te ayudará a administrar tus pedidos, catálogos y stock más fácilmente al generar un catálogo compatible con el sistema de Simla.com, que crea un intercambio bidireccional de pedidos entre WooCommerce y Simla.com. También podrás enviar y recibir cambios en pedidos y sincronizar tu mercadería en Simla.com con el de tu tienda automáticamente. ¿Cómo? Al habilitar la función de "descarga de stock", tu bodega se actualizará automáticamente cada 15 minutos. Tampoco tendrás que ocultar manualmente las existencias agotadas en su sitio web, ¡el sistema lo hará por ti automáticamente!
= SINCRONIZA TUS DATOS =
El plugin descarga y actualiza los cambios de RetailCRM a WooCommerce cada 5 minutos.
El plugin descarga y actualiza los cambios de Simla.com a WooCommerce cada 5 minutos.
= PERSONALIZA =
El plugin de RetailCRM te permite realizar cambios en las clasificaciones básicas colocando una copia de la clasificación del directorio "incluir" en el directorio "wp-content/retailcrm-custom".
El plugin de Simla.com te permite realizar cambios en las clasificaciones básicas colocando una copia de la clasificación del directorio "incluir" en el directorio "wp-content/retailcrm-custom".
¿A que te hemos convencido? Instala ya el plugin de RetailCRM y 360NRS y únete a nuestros más de 10,000 clientes en Europa y Latinoamérica mientras haces crecer tu negocio de manera más eficiente.
¿A que te hemos convencido? Instala ya el plugin de Simla.com y 360NRS y únete a nuestros más de 10,000 clientes en Europa y Latinoamérica mientras haces crecer tu negocio de manera más eficiente.
== Instalación ==
= ACTIVACIÓN Y CONFIGURACIÓN =
Después de activar el plugin, abre la ventana de configuración de WooCommerce, selecciona la pestaña "Integración" y especifica la dirección del RetailCRM en la configuración de RetailCRM (por ejemplo: https://example.retailcrm.ru). También deberás especificar la clave API generada por nuestro sistema (mira las instrucciones para agregar una clave a RetailCRM aquí http: //www.retailcrm.es/docs/Users/ApiKeys) y seleccionar la versión de API deseada (API v5 solo está disponible desde RetailCRM 6.0 y posteriores).
Después de activar el plugin, abre la ventana de configuración de WooCommerce, selecciona la pestaña "Integración" y especifica la dirección del Simla.com en la configuración de Simla.com (por ejemplo: https://example.simla.com). También deberás especificar la clave API generada por nuestro sistema (mira las instrucciones para agregar una clave a [Simla.com aquí](http://www.retailcrm.es/docs/Users/ApiKeys)) y seleccionar la versión de API deseada (API v5 solo está disponible desde Simla.com 6.0 y posteriores).
== PREGUNTAS FRECUENTES ==
@ -72,17 +72,23 @@ Después de activar el plugin, abre la ventana de configuración de WooCommerce,
Asegúrate de que todos los métodos estén disponibles para la clave API generada
= II. No veo ningún pedido en RetailCRM =
= II. No veo ningún pedido en Simla.com =
Asegúrate de tener una clave API específica para cada tienda. Las siguientes instrucciones te ayudarán a configurarla:
== Pantallazos ==
1. Introduce la dirección del RetailCRM, la clave API, la versión API y haz clic en el botón “Guardar configuración''. Si no aparecen otras configuraciones después de guardar, actualiza la página.
2. Después de guardar aparecerá una lista de directorios en la que deberás configurar los métodos de envío y pago, así como los estados de los pedidos. Marca la casilla "Descargar restos" si deseas descargar los restos de RetailCRM a tu tienda (para obtener más detalles, consulta la descripción).
1. Introduce la dirección del Simla.com, la clave API, la versión API y haz clic en el botón “Guardar configuración''. Si no aparecen otras configuraciones después de guardar, actualiza la página.
2. Después de guardar aparecerá una lista de directorios en la que deberás configurar los métodos de envío y pago, así como los estados de los pedidos. Marca la casilla "Descargar restos" si deseas descargar los restos de Simla.com a tu tienda (para obtener más detalles, consulta la descripción).
== Changelog ==
= 4.3 =
* Ребрендинг модуля RetailCRM --> Simla.com
* Исправили баг в работе опции "Активировать связь по sku(xmlId)"
* Добавлена возможность использовать ссылку чат WhatsApp на сайте
* Исправили мелкие баги в работе истории и генерации каталога ICML
= 4.2.4 =
* Добавили отображение общего количества вариативных товаров
* Добавили валидацию на дату создания заказа

View File

@ -1,6 +1,6 @@
<?php
/**
* Version: 4.2.4
* Version: 4.3
* WC requires at least: 3.0
* WC tested up to: 4.7.1
* Plugin Name: WooCommerce RetailCRM

View File

@ -15,7 +15,7 @@
*
*
* @link https://wordpress.org/plugins/woo-retailcrm/
* @version 4.2.4
* @version 4.3
*
* @package RetailCRM
*/

View File

@ -23,8 +23,8 @@ class WC_Retailcrm_Icml_Test extends WC_Retailcrm_Test_Case_Helper
$icml = new WC_Retailcrm_Icml();
$icml->generate();
$this->assertFileExists(ABSPATH . 'retailcrm.xml');
$xml = simplexml_load_file(ABSPATH . 'retailcrm.xml');
$this->assertFileExists(ABSPATH . 'simla.xml');
$xml = simplexml_load_file(ABSPATH . 'simla.xml');
$res = $xml->xpath('/yml_catalog/shop/categories/category[@id]');
$this->assertNotEmpty($res);