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); } } });