Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $counter = $this->helper('MagentoCheckoutHelperCart');
- $cartCount = $counter->getSummaryCount();
- ?>
- <?php
- $objectManager = MagentoFrameworkAppObjectManager::getInstance();
- $cart = $objectManager->get('MagentoCheckoutModelCart');
- $allVisibleItems = $cart->getQuote()->getAllVisibleItems();
- foreach ($allVisibleItems as $item) {
- echo $item->getItemId();
- echo $item->getName();
- echo $item->getSku();
- }
- ?>
Add Comment
Please, Sign In to add comment