Skip to content

Commit

Permalink
Fatal error: Uncaught Error: Call to a member function getCarrierCode…
Browse files Browse the repository at this point in the history
…() on null in /vendor/yireo/magento2-googletagmanager2/DataLayer/Event/AddShippingInfo.php: 44
  • Loading branch information
bvmax committed Sep 26, 2023
1 parent 515e6f7 commit baf9e30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DataLayer/Event/AddShippingInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function get(): array

if (!$shippingMethod) {
$quoteId = $this->checkoutSession->getQuote()->getId();
$shippingMethod = $this->getShippingMethodFromQuote($quoteId);
$shippingMethod = $this->getShippingMethodFromQuote((int)$quoteId);
}

if (!$shippingMethod) {
Expand Down

0 comments on commit baf9e30

Please sign in to comment.