Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
- $cartObj = $objectManager->get(‘\Magento\Checkout\Model\Cart’);
- $totalItems = $cartObj->getQuote()->getItemsCount(); //Current cart Item counts
- $totalQuantity = $cartObj->getQuote()->getItemsQty(); //Current Cart Items qty’s
Add Comment
Please, Sign In to add comment