ExamGecko
Question list
Search
Search

List of questions

Search

Question 192 - Certified B2B Commerce Administrator discussion

Report
Export

How should a developer get the grand total amount, including shipping and tax, for items in the cart and in the currency of the cart, when developing a new Lightning web component for an Aura storefront cart page?

A.
{!Cart.Details.grandTotal}
Answers
A.
{!Cart.Details.grandTotal}
B.
{ICart.Totals.grand Total}
Answers
B.
{ICart.Totals.grand Total}
C.
{ICart.Details.Fields.grandTotal}
Answers
C.
{ICart.Details.Fields.grandTotal}
D.
{!Cart.Fields.grandTotal}
Answers
D.
{!Cart.Fields.grandTotal}
Suggested answer: A

Explanation:

The Aura storefront cart page uses Visualforce to render the cart information. Visualforce uses expressions to bind data from Apex controllers to the page elements. Expressions are enclosed in curly braces and can use the dot notation to access object properties. The Cart object is an instance of the ICart interface, which has a Details property that returns an ICartDetails object. The ICartDetails object has a grandTotal property that returns the grand total amount of the cart in the currency of the cart. Therefore, to get the grand total amount for items in the cart, the developer can use the expression {!Cart.Details.grandTotal} in the Lightning web component .

asked 23/09/2024
Alysson Rodrigo Freires Neto
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first