-
Notifications
You must be signed in to change notification settings - Fork 9.4k
totalsData not updating correctly in checkout - shipping cost not being included #6796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@delgadito13 window.checkoutConfig.totalsData is dataset for initializing JS components. Its data is actual on page loading moment only. If you reload page you'll see actual info there. |
Closing as far as no questions for several days. |
Still have this problem |
Old bug, 3 years later and continues the same bug. It is one bug of checkoutConfig, has many and many bugs... Try to give a discount and you see all collapse. |
We are working on a project for a client and are using for them Magento 2.1 in Magento Cloud.
The issue we have detected is regarding the totalsData object. As it seem it does not include the shipping cost of the chosen shipping method.
steps to reproduce:
When looking at the totalsData information, it does not include the shipping cost.
window.checkoutConfig.totalsData.grand_total
See attachment.
When reloading the page though this information gets updated and the shipping cost is being included.
Though reloading the page at this stage has some side effects, like losing the billing address details.
The information of the totalsData is being used for payment calls and creates an issue as the total of the orders, in the totalsData does not match the actual total for which a payment authorization is being requested.
This information might also be used for tracking or analytics.
Details.pptx
Preconditions
Magento 2.1 cloud edition.
Steps to reproduce
See above
Expected result
What we need to see is that the totalsData gets update with the total amount, including shipping cost prior to doing a payments call.
Actual result
We see that the shipping cost is not included in the totalsData, after choosing the shipping method and selecting the payment option.
The text was updated successfully, but these errors were encountered: