diff --git a/app/code/Magento/Tax/Plugin/Checkout/CustomerData/Cart.php b/app/code/Magento/Tax/Plugin/Checkout/CustomerData/Cart.php index 863436c6eae071cf92366fea1243f59bf27f2b14..f6fb341740b7bc71873042e2aa906cdc8a59e2a5 100644 --- a/app/code/Magento/Tax/Plugin/Checkout/CustomerData/Cart.php +++ b/app/code/Magento/Tax/Plugin/Checkout/CustomerData/Cart.php @@ -58,6 +58,9 @@ class Cart */ public function afterGetSectionData(\Magento\Checkout\CustomerData\Cart $subject, $result) { + if (!$this->getQuote()->getId()) { + return $result; + } $result['subtotal_incl_tax'] = $this->checkoutHelper->formatPrice($this->getSubtotalInclTax()); $result['subtotal_excl_tax'] = $this->checkoutHelper->formatPrice($this->getSubtotalExclTax());