From 5fbb084e39ae3c03e1d0ee7b95532b01c1db6d76 Mon Sep 17 00:00:00 2001 From: Anton Kaplya <anton.kaplya@magento.com> Date: Tue, 26 Jan 2016 18:03:40 +0200 Subject: [PATCH] MAGETWO-47402: All type products are available --- app/code/Magento/Tax/Plugin/Checkout/CustomerData/Cart.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/code/Magento/Tax/Plugin/Checkout/CustomerData/Cart.php b/app/code/Magento/Tax/Plugin/Checkout/CustomerData/Cart.php index 863436c6eae..f6fb341740b 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()); -- GitLab