Home » Magento, Magento 25 September 2016

Magento 2: Get all shopping cart items, subtotal, grand total, billing & shipping address

This article shows how to get shopping cart items/products, subtotal and grand total of cart, and shipping and billing address entered while doing checkout in Magento 2.

I will simply be using ObjectManager for this example.

– Get products id, name, price, quantity, etc. present in your cart.
– Get number of items in cart and total quantity in cart.
– Get base total price and grand total price of items in cart.
– Get billing and shipping addresses entered during checkout.

Get all items information in cart

Get total items and total quantity in cart

Get subtotal and grand total price of cart

Get billing and shipping addresses

Hope this helps. Thanks.

Magento 2

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed
  • Keyur Shah

    Thanks for the article. Can you show how to do this without using the object manager S Magento is now recommending