Skip to content

Commit

Permalink
Merge pull request #113 from YotpoLtd/COR-2137-skip-checkout-sync-for…
Browse files Browse the repository at this point in the history
…-quotes-without-id

COR-2137 skip checkout sync for quotes without ID
  • Loading branch information
LiorGingi authored Jun 22, 2022
2 parents 408fe79 + 9aef037 commit 535bbca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Plugin/Quote/Model/AbstractCheckoutTrigger.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ public function __construct(
protected function checkoutSync(QuoteModel $quote)
{
if ($this->yotpoMessagingConfig->isCheckoutSyncActive()) {
if (!$quote->getId()) {
return;
}

$billingAddress = $quote->getBillingAddress();
if (!$billingAddress->getCountryId()) {
return;
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "yotpo/module-yotpo-messaging",
"description": "Yotpo Sms extension for Magento2",
"version": "4.0.27",
"version": "4.0.28",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"require": {
"php": "~5.6.0|^7.0|^8.0",
"magento/framework": ">=102.0.0",
"yotpo/module-yotpo-core": "4.0.27"
"yotpo/module-yotpo-core": "4.0.28"
},
"type": "magento2-module",
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?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="Yotpo_SmsBump" setup_version="4.0.27">
<module name="Yotpo_SmsBump" setup_version="4.0.28">
<sequence>
<Yotpo_Core/>
</sequence>
Expand Down

0 comments on commit 535bbca

Please sign in to comment.