mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-01 19:03:14 +03:00
Добавлена передача поля link для брошенных корзин (#223)
This commit is contained in:
parent
d6862bad58
commit
d0782028ee
@ -1,3 +1,6 @@
|
||||
## v3.6.6
|
||||
* Добавлена передача поля link при выгрузке брошенных корзин
|
||||
|
||||
## v3.6.5
|
||||
* Исправлено дублирование товаров при обратной синхронизации
|
||||
|
||||
|
@ -263,6 +263,7 @@ class RetailcrmCartUploader
|
||||
'customer' => ['externalId' => $cart->id_customer],
|
||||
'clearAt' => null,
|
||||
'createdAt' => DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $cart->date_add)->format(static::$crmCartDateFormat),
|
||||
'link' => self::generateCartLink(),
|
||||
];
|
||||
|
||||
if (!$isExistExternalId) {
|
||||
@ -447,4 +448,13 @@ class RetailcrmCartUploader
|
||||
{
|
||||
self::$context->employee = $employee;
|
||||
}
|
||||
|
||||
public static function generateCartLink()
|
||||
{
|
||||
return sprintf(
|
||||
'%s://%s/index.php?controller=cart&action=show',
|
||||
!empty($_SERVER['HTTPS']) ? 'https' : 'http',
|
||||
$_SERVER['HTTP_HOST']
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ require_once dirname(__FILE__) . '/bootstrap.php';
|
||||
|
||||
class RetailCRM extends Module
|
||||
{
|
||||
const VERSION = '3.6.5';
|
||||
const VERSION = '3.6.6';
|
||||
|
||||
const API_URL = 'RETAILCRM_ADDRESS';
|
||||
const API_KEY = 'RETAILCRM_API_TOKEN';
|
||||
|
Loading…
x
Reference in New Issue
Block a user