Magento 1 :

Magento 2 :

You can do this by calling the MagentoCheckoutModelSession. Add it to your constructor and get it by using this code :

Or you can get by Object Manager Instance by using this code :

Thank for reading this post, Hope it helps.

Leave A Comment?

You must be logged in to post a comment.