Skip to content

Commit

Permalink
Merge pull request #100 from sendsmaily/release/2.7.1
Browse files Browse the repository at this point in the history
Release 2.7.1
  • Loading branch information
kaittodesk authored Nov 3, 2023
2 parents 0243836 + 002e766 commit 14f82dd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog


### 2.7.1

- Skip abandoned carts receiving "Invalid data submitted" (code: 203) response - [[#99](https://github.com/sendsmaily/smaily-magento-extension/pull/99)]


### 2.7.0

- Add store, store group and website to abandoned cart payload - [[#96](https://github.com/sendsmaily/smaily-magento-extension/pull/96)]
Expand Down
6 changes: 5 additions & 1 deletion Cron/AbandonedCart.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,11 @@ protected function triggerAutomationWorkflows(array $ids, \Magento\Store\Api\Dat
try {
$response = $smailyApiClient->post('/api/autoresponder.php', $payload);

if ((int) $response['code'] !== 101) {
if ((int) $response['code'] === 203) {
// Ignoring responses with code 203 - Invalid data submitted, because most likely
// it is due to the email address of the quote being invalid.
$this->logger->warning('Invalid data to send abandoned cart. Skipping...', ['payload' => $payload]);
} elseif ((int) $response['code'] !== 101) {
throw new ClientException('Smaily API responded with: ' . json_encode($response));
}
} catch (\Exception $e) {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "smaily/smailyformagento",
"description": "Smaily extension for Magento 2",
"version": "2.7.0",
"version": "2.7.1",
"type": "magento2-module",
"license": "GPL-3.0-only",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Smaily_SmailyForMagento" setup_version="2.7.0">
<module name="Smaily_SmailyForMagento" setup_version="2.7.1">
<sequence>
<module name="Magento_Newsletter" />
<module name="Magento_Captcha" />
Expand Down

0 comments on commit 14f82dd

Please sign in to comment.