ExamGecko
Question list
Search
Search

Question 70 - Certified B2B Commerce Developer discussion

Report
Export

Which event is triggered within Salesforce B2B Commerce whenever a cart's statechanges?

A.
cartChange
Answers
A.
cartChange
B.
cart
Answers
B.
cart
C.
pageMessage
Answers
C.
pageMessage
D.
cartState
Answers
D.
cartState
Suggested answer: A

Explanation:

The event that is triggered within Salesforce B2B Commerce whenever a cart's state changes is cartChange. This event is triggered by the updateCart method of the CCRZ.Cart class, which is responsible for updating the cart data and performing any actions that depend on the cart state, such as applying discounts, taxes, or shipping charges. The event can be used to notify all the components that are listening to it that the cart has changed and they should refresh their data accordingly. Salesforce

Reference:B2B Commerce and D2C Commerce Developer Guide,Events,Cart Class

asked 23/09/2024
Ero Hiiesalu
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first