Skip to content

Commit 535bbca

Browse files
authored
Merge pull request #113 from YotpoLtd/COR-2137-skip-checkout-sync-for-quotes-without-id
COR-2137 skip checkout sync for quotes without ID
2 parents 408fe79 + 9aef037 commit 535bbca

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Plugin/Quote/Model/AbstractCheckoutTrigger.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ public function __construct(
6161
protected function checkoutSync(QuoteModel $quote)
6262
{
6363
if ($this->yotpoMessagingConfig->isCheckoutSyncActive()) {
64+
if (!$quote->getId()) {
65+
return;
66+
}
67+
6468
$billingAddress = $quote->getBillingAddress();
6569
if (!$billingAddress->getCountryId()) {
6670
return;

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "yotpo/module-yotpo-messaging",
33
"description": "Yotpo Sms extension for Magento2",
4-
"version": "4.0.27",
4+
"version": "4.0.28",
55
"license": [
66
"OSL-3.0",
77
"AFL-3.0"
88
],
99
"require": {
1010
"php": "~5.6.0|^7.0|^8.0",
1111
"magento/framework": ">=102.0.0",
12-
"yotpo/module-yotpo-core": "4.0.27"
12+
"yotpo/module-yotpo-core": "4.0.28"
1313
},
1414
"type": "magento2-module",
1515
"autoload": {

etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
3-
<module name="Yotpo_SmsBump" setup_version="4.0.27">
3+
<module name="Yotpo_SmsBump" setup_version="4.0.28">
44
<sequence>
55
<Yotpo_Core/>
66
</sequence>

0 commit comments

Comments
 (0)