From a8e6d167b0ae029242b37c9159accd3d23b8e8d7 Mon Sep 17 00:00:00 2001 From: Webwijs Date: Mon, 14 Oct 2024 13:17:18 +0000 Subject: [PATCH] removed obsolete logging --- Observer/PurchaseEvent.php | 6 +++--- view/frontend/web/js/get-items-from-quote.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Observer/PurchaseEvent.php b/Observer/PurchaseEvent.php index df6bd81..0e24cbe 100644 --- a/Observer/PurchaseEvent.php +++ b/Observer/PurchaseEvent.php @@ -60,7 +60,7 @@ public function execute(Observer $observer) $eventEnabled = $this->config->getValue('taggrs_datalayer/events/purchase_via_measurement_api'); - $logger->critical("Purchase event enabled: " . $eventEnabled); + // $logger->critical("Purchase event enabled: " . $eventEnabled); if (!$eventEnabled) { return; @@ -100,7 +100,7 @@ public function execute(Observer $observer) $jsonBody = json_encode($body); $jsonBody = strtr($jsonBody, [':[]' => ':{}']); - $logger->critical($jsonBody); + // $logger->critical($jsonBody); $res = $this->client->request('POST', $url, [ 'headers' => [ @@ -109,7 +109,7 @@ public function execute(Observer $observer) 'body' => $jsonBody, ]); - $logger->critical($res->getStatusCode()); + // $logger->critical($res->getStatusCode()); // TODO: Implement execute() method. diff --git a/view/frontend/web/js/get-items-from-quote.js b/view/frontend/web/js/get-items-from-quote.js index 5c042b3..78fb503 100644 --- a/view/frontend/web/js/get-items-from-quote.js +++ b/view/frontend/web/js/get-items-from-quote.js @@ -1,7 +1,7 @@ define(['Magento_Checkout/js/model/quote'], function (quote) { return { getItemsFromQuote: function () { - console.log(quote); +// console.log(quote); } } });