Skip to content

Commit

Permalink
removed obsolete logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Webwijs committed Oct 14, 2024
1 parent b0028bf commit a8e6d16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Observer/PurchaseEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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' => [
Expand All @@ -109,7 +109,7 @@ public function execute(Observer $observer)
'body' => $jsonBody,
]);

$logger->critical($res->getStatusCode());
// $logger->critical($res->getStatusCode());


// TODO: Implement execute() method.
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/js/get-items-from-quote.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
define(['Magento_Checkout/js/model/quote'], function (quote) {
return {
getItemsFromQuote: function () {
console.log(quote);
// console.log(quote);
}
}
});

0 comments on commit a8e6d16

Please sign in to comment.