Skip to content

Commit bbeca03

Browse files
author
Adam Skorupka
committed
Release 2.0.4
1 parent 64781a3 commit bbeca03

File tree

4 files changed

+18
-20
lines changed

4 files changed

+18
-20
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [2.0.4] - 2025-09-23
4+
### Fix
5+
- Improved exception handling, preventing disruptions to customer experience
6+
37
## [2.0.3] - 2025-09-12
48
### Fix
59
- Fixed: check if context exists before using it

classes/WebserviceSpecificManagementGetresponseModule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ private function getPluginDetails()
192192

193193
return json_encode(
194194
[
195-
'plugin_version' => '2.0.3',
195+
'plugin_version' => '2.0.4',
196196
'prestashop_version' => _PS_VERSION_,
197197
'php_version' => phpversion(),
198198
'shops' => $shops,

config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<module>
33
<name>grprestashop</name>
44
<displayName><![CDATA[GetResponse]]></displayName>
5-
<version><![CDATA[2.0.3]]></version>
5+
<version><![CDATA[2.0.4]]></version>
66
<description><![CDATA[Add your Prestashop contacts to GetResponse.]]></description>
77
<author><![CDATA[GetResponse]]></author>
88
<tab><![CDATA[emailing]]></tab>

grprestashop.php

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct()
4242
{
4343
$this->name = 'grprestashop';
4444
$this->tab = 'emailing';
45-
$this->version = '2.0.3';
45+
$this->version = '2.0.4';
4646
$this->author = 'GetResponse';
4747
$this->need_instance = 0;
4848
$this->module_key = '311ef191c3135b237511d18c4bc27369';
@@ -379,7 +379,7 @@ public function hookActionNewsletterRegistrationAfter($params)
379379
new GetResponse\Contact\Application\Command\UpsertSubscriber($email, true, $shop->id, $name)
380380
);
381381
}
382-
} catch (GetResponse\MessageSender\Application\MessageSenderException $e) {
382+
} catch (\Throwable $e) {
383383
$this->logGetResponseError($e->getMessage());
384384
}
385385
}
@@ -393,7 +393,7 @@ public function hookActionObjectCustomerUpdateAfter($params)
393393
if (null !== $customer) {
394394
$this->upsertCustomer($customer);
395395
}
396-
} catch (GetResponse\MessageSender\Application\MessageSenderException $e) {
396+
} catch (\Throwable $e) {
397397
$this->logGetResponseError($e->getMessage());
398398
}
399399
}
@@ -407,7 +407,7 @@ public function hookActionCustomerAccountAdd($params)
407407
if (null !== $customer) {
408408
$this->upsertCustomer($customer);
409409
}
410-
} catch (GetResponse\MessageSender\Application\MessageSenderException $e) {
410+
} catch (\Throwable $e) {
411411
$this->logGetResponseError($e->getMessage());
412412
}
413413
}
@@ -448,7 +448,7 @@ public function hookActionCartSave($params)
448448
new GetResponse\TrackingCode\DomainModel\TrackingCodeBufferService($storage)
449449
);
450450
$trackingCodeCartService->addCartToBuffer($cart->id, $shop->id);
451-
} catch (GetResponse\MessageSender\Application\MessageSenderException $e) {
451+
} catch (\Throwable $e) {
452452
$this->logGetResponseError($e->getMessage());
453453
}
454454
}
@@ -462,7 +462,7 @@ public function hookActionObjectAddressUpdateAfter($params)
462462
if (null !== $address && null !== $address->id_customer) {
463463
$this->upsertCustomer(new Customer($address->id_customer));
464464
}
465-
} catch (GetResponse\MessageSender\Application\MessageSenderException $e) {
465+
} catch (\Throwable $e) {
466466
$this->logGetResponseError($e->getMessage());
467467
}
468468
}
@@ -476,7 +476,7 @@ public function hookActionObjectAddressAddAfter($params)
476476
if (null !== $address && null !== $address->id_customer) {
477477
$this->upsertCustomer(new Customer($address->id_customer));
478478
}
479-
} catch (GetResponse\MessageSender\Application\MessageSenderException $e) {
479+
} catch (\Throwable $e) {
480480
$this->logGetResponseError($e->getMessage());
481481
}
482482
}
@@ -490,7 +490,7 @@ public function hookActionProductAdd($params)
490490
if (null !== $product) {
491491
$this->upsertProduct($product);
492492
}
493-
} catch (GetResponse\MessageSender\Application\MessageSenderException $e) {
493+
} catch (\Throwable $e) {
494494
$this->logGetResponseError($e->getMessage());
495495
}
496496
}
@@ -500,7 +500,7 @@ public function hookActionProductUpdate($params)
500500
try {
501501
$product = new Product($params['id_product']);
502502
$this->upsertProduct($product);
503-
} catch (GetResponse\MessageSender\Application\MessageSenderException $e) {
503+
} catch (\Throwable $e) {
504504
$this->logGetResponseError($e->getMessage());
505505
}
506506
}
@@ -516,9 +516,7 @@ public function hookActionOrderStatusUpdate($params)
516516
}
517517

518518
$this->upsertOrder($order);
519-
} catch (GetResponse\MessageSender\Application\MessageSenderException $e) {
520-
$this->logGetResponseError($e->getMessage());
521-
} catch (Exception $e) {
519+
} catch (\Throwable $e) {
522520
$this->logGetResponseError($e->getMessage());
523521
}
524522
}
@@ -533,9 +531,7 @@ public function hookActionOrderStatusPostUpdate($params)
533531
$order = new Order($params['id_order']);
534532

535533
$this->upsertOrder($order);
536-
} catch (GetResponse\MessageSender\Application\MessageSenderException $e) {
537-
$this->logGetResponseError($e->getMessage());
538-
} catch (Exception $e) {
534+
} catch (\Throwable $e) {
539535
$this->logGetResponseError($e->getMessage());
540536
}
541537
}
@@ -551,9 +547,7 @@ public function hookActionOrderEdited($params)
551547
}
552548

553549
$this->upsertOrder($order);
554-
} catch (GetResponse\MessageSender\Application\MessageSenderException $e) {
555-
$this->logGetResponseError($e->getMessage());
556-
} catch (Exception $e) {
550+
} catch (\Throwable $e) {
557551
$this->logGetResponseError($e->getMessage());
558552
}
559553
}

0 commit comments

Comments
 (0)