0

I want to check my custom fee applied or not. So I just want to know all the totals from the quote on the checkout pages.

Thanks in Advance.

  • whats do you mean all the totals from the quote on the checkout pages? – Supravat Mondal Dec 26 '19 at 12:02
  • Is it possible to share of your code snipshot? – Supravat Mondal Dec 26 '19 at 12:03
0

Get Grand Total price of items in cart.

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$cart = $objectManager->get('\Magento\Checkout\Model\Cart'); 

$subTotal = $cart->getQuote()->getSubtotal();
$grandTotal = $cart->getQuote()->getGrandTotal();
| improve this answer | |
  • What about tax, shipping charges? You have not understood my question. I want to know all the totals, not specific subtotal, grand total. – Nits Dec 26 '19 at 7:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.