Skip to content

Magento 2 grand total not including shipping until reload #10144

@haydencarlson

Description

@haydencarlson

Preconditions

Magento 2.0, PHP 7.0.20-2, MySQL 5.7.18
Running Ubuntu

Steps to reproduce


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

This is in my ConfigProvider.
I console.log checkoutConfig.payment.[my_gateway]

On the first load of the checkout when I get the grand total it does not include shipping cost.
If I reload page or click go to checkout again I get the correct amount.

The totals are properly shown on the checkout page just not through the method renderer.

Expected result

Correct Grand total.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions