ExamGecko
Question list
Search
Search

Question 156 - Certified B2B Commerce Developer discussion

Report
Export

A developer has created a custom Lightning web component for the Cart page that needs to react to changes to cart items from the standard cart component.

How should the developer implement the custom component so changes to cart items and quantities are reflected?

A.
Subscribe to events on the lightning_commerce_cartChanged channel using the Lightning Message Service.
Answers
A.
Subscribe to events on the lightning_commerce_cartChanged channel using the Lightning Message Service.
B.
Add a listener for the cartltemUpdate Lightning event.
Answers
B.
Add a listener for the cartltemUpdate Lightning event.
C.
Listen for events on the lightning_commerce_cartChanged channel with the Lightning Event ''Listener component.
Answers
C.
Listen for events on the lightning_commerce_cartChanged channel with the Lightning Event ''Listener component.
D.
Add an event listener for the cartchanged DOM (Document Object Model) event.
Answers
D.
Add an event listener for the cartchanged DOM (Document Object Model) event.
Suggested answer: A
asked 23/09/2024
Richard lavery
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first