We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7437708 commit 9d667c6Copy full SHA for 9d667c6
app/code/Meta/Conversion/Observer/Tracker/Purchase.php
@@ -24,6 +24,8 @@ public function __construct(
24
25
public function execute(Observer $observer): void
26
{
27
+ // Purchase event is triggered twice sometimes, to prevent that check if event id is already stored for current request
28
+ // if it does prevent the message form being added to the message queue.
29
if (!$this->capiEventIdHandler->getMetaEventId(self::EVENT_NAME)) {
30
$lastOrderId = $this->checkoutSession->getLastRealOrder()->getEntityId();
31
$payload = $this->purchaseTracker->getPayload(['lastOrder' => $lastOrderId]);
0 commit comments