Added additional parameters to GET requests (#358)
This commit is contained in:
parent
b2cc25e716
commit
cd57de01e6
@ -1,3 +1,6 @@
|
|||||||
|
## 2025-02-03 4.8.18
|
||||||
|
* Added additional parameters to GET requests
|
||||||
|
|
||||||
## 2025-01-21 4.8.17
|
## 2025-01-21 4.8.17
|
||||||
* Fix deploy
|
* Fix deploy
|
||||||
|
|
||||||
|
@ -77,9 +77,10 @@ class WC_Retailcrm_Request
|
|||||||
'cms_version' => function_exists('get_bloginfo') ? get_bloginfo('version') : '',
|
'cms_version' => function_exists('get_bloginfo') ? get_bloginfo('version') : '',
|
||||||
'woo_version' => WC()->version ?? '',
|
'woo_version' => WC()->version ?? '',
|
||||||
'php_version' => function_exists('phpversion') ? phpversion() : '',
|
'php_version' => function_exists('phpversion') ? phpversion() : '',
|
||||||
'module_version' => WC_Integration_Retailcrm::MODULE_VERSION,
|
'module_version' => WC_Integration_Retailcrm::MODULE_VERSION,
|
||||||
|
'ga_option_is_active' => getOptionByCode('ua') === WC_Retailcrm_Abstracts_Settings::YES,
|
||||||
])
|
])
|
||||||
: $parameters = array_merge($this->defaultParameters, $parameters);
|
: array_merge($this->defaultParameters, $parameters);
|
||||||
|
|
||||||
$url = $this->url . $path;
|
$url = $this->url . $path;
|
||||||
|
|
||||||
|
@ -207,3 +207,8 @@ function isCorporateOrder($wcCustomer, $wcOrder)
|
|||||||
{
|
{
|
||||||
return !empty($wcCustomer->get_billing_company()) || !empty($wcOrder->get_billing_company());
|
return !empty($wcCustomer->get_billing_company()) || !empty($wcOrder->get_billing_company());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getOptionByCode($optionName)
|
||||||
|
{
|
||||||
|
return get_option(WC_Retailcrm_Base::$option_key)[$optionName] ?? null;
|
||||||
|
}
|
||||||
|
@ -5,7 +5,7 @@ Tags: Интеграция, Simla.com, simla
|
|||||||
Requires PHP: 7.1
|
Requires PHP: 7.1
|
||||||
Requires at least: 5.3
|
Requires at least: 5.3
|
||||||
Tested up to: 6.5
|
Tested up to: 6.5
|
||||||
Stable tag: 4.8.17
|
Stable tag: 4.8.18
|
||||||
License: GPLv1 or later
|
License: GPLv1 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-1.0.html
|
License URI: http://www.gnu.org/licenses/gpl-1.0.html
|
||||||
|
|
||||||
@ -82,6 +82,9 @@ Asegúrate de tener una clave API específica para cada tienda. Las siguientes i
|
|||||||
|
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
= 4.8.18 =
|
||||||
|
* Added additional parameters to GET requests
|
||||||
|
|
||||||
= 4.8.17 =
|
= 4.8.17 =
|
||||||
* Fix deploy
|
* Fix deploy
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* Description: Integration plugin for WooCommerce & Simla.com
|
* Description: Integration plugin for WooCommerce & Simla.com
|
||||||
* Author: RetailDriver LLC
|
* Author: RetailDriver LLC
|
||||||
* Author URI: http://retailcrm.pro/
|
* Author URI: http://retailcrm.pro/
|
||||||
* Version: 4.8.17
|
* Version: 4.8.18
|
||||||
* Tested up to: 6.5
|
* Tested up to: 6.5
|
||||||
* Requires Plugins: woocommerce
|
* Requires Plugins: woocommerce
|
||||||
* WC requires at least: 5.4
|
* WC requires at least: 5.4
|
||||||
@ -27,7 +27,7 @@ if (!class_exists( 'WC_Integration_Retailcrm')) :
|
|||||||
class WC_Integration_Retailcrm {
|
class WC_Integration_Retailcrm {
|
||||||
const WOOCOMMERCE_SLUG = 'woocommerce';
|
const WOOCOMMERCE_SLUG = 'woocommerce';
|
||||||
const WOOCOMMERCE_PLUGIN_PATH = 'woocommerce/woocommerce.php';
|
const WOOCOMMERCE_PLUGIN_PATH = 'woocommerce/woocommerce.php';
|
||||||
const MODULE_VERSION = '4.8.17';
|
const MODULE_VERSION = '4.8.18';
|
||||||
|
|
||||||
private static $instance;
|
private static $instance;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @link https://wordpress.org/plugins/woo-retailcrm/
|
* @link https://wordpress.org/plugins/woo-retailcrm/
|
||||||
*
|
*
|
||||||
* @version 4.8.17
|
* @version 4.8.18
|
||||||
*
|
*
|
||||||
* @package RetailCRM
|
* @package RetailCRM
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user