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

Which event is triggered within Salesforce B2B Commerce whenever a cart’s statechanges?
A . cartChange
B . cart
C . pageMessage
D . cartState

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

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments