Valid B2B-Commerce-Developer Dumps shared by ExamDiscuss.com for Helping Passing B2B-Commerce-Developer Exam! ExamDiscuss.com now offer the newest B2B-Commerce-Developer exam dumps, the ExamDiscuss.com B2B-Commerce-Developer exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com B2B-Commerce-Developer dumps with Test Engine here:
When a user buys 10 units of product B, the user wants 1 unit of Product A to be automatically added to the cart. How can this requirement be fulfilled?
Correct Answer: D
Explanation To automatically add 1 unit of Product A to the cart when a user buys 10 units of Product B, the requirement can be fulfilled by overriding the prepareToAdd method in ccrz.cc_api_CartExtension. This method is responsible for preparing the cart line items before they are added to the cart. By overriding this method, the user can check the quantity and product ID of the cart line items and add an additional cart line item for Product A if the condition is met. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, API Classes, cc_api_CartExtension Class