mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-04-11 12:50:55 +00:00
parent
2d2708adbe
commit
3e343faa19
2 changed files with 5 additions and 3 deletions
|
@ -95,10 +95,11 @@ class RetailcrmSettings
|
|||
private function setClientId()
|
||||
{
|
||||
$context = Context::getContext();
|
||||
$clientId = uniqid();
|
||||
|
||||
Configuration::updateValue(RetailCRM::CLIENT_ID, hash(
|
||||
'sha256',
|
||||
$context->shop->id . Configuration::get('PS_SHOP_DOMAIN')
|
||||
$context->shop->id . Configuration::get('PS_SHOP_DOMAIN') . $clientId
|
||||
));
|
||||
|
||||
return true;
|
||||
|
|
|
@ -309,7 +309,8 @@ class RetailCRM extends Module
|
|||
if (Shop::isFeatureActive()) {
|
||||
$shops = Shop::getShops();
|
||||
} else {
|
||||
$shops[] = Shop::getContext();
|
||||
$context = Context::getContext();
|
||||
$shops[]['id_shop'] = $context->shop->id;
|
||||
}
|
||||
|
||||
foreach ($shops as $shop) {
|
||||
|
@ -371,7 +372,7 @@ class RetailCRM extends Module
|
|||
return false;
|
||||
}
|
||||
|
||||
$context = Shop::getContext();
|
||||
$context = Context::getContext();
|
||||
|
||||
self::updateCrmModuleState($context->shop->id, false);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue