ExamGecko
Question list
Search
Search

List of questions

Search

Question 173 - Certified B2B Commerce Administrator discussion

Report
Export

What does the developer need to implement to override Shipping in Checkout?

A.
sfdc.commerce.ShippingCharges
Answers
A.
sfdc.commerce.ShippingCharges
B.
sfdc_commerce.CartShipplngCharges
Answers
B.
sfdc_commerce.CartShipplngCharges
C.
sfdc_checkout.CartShippingCharges
Answers
C.
sfdc_checkout.CartShippingCharges
D.
sfdc.checkout.ShippingCharges
Answers
D.
sfdc.checkout.ShippingCharges
Suggested answer: C

Explanation:

To override the shipping charge calculation logic in B2B Commerce for Visualforce, a developer must implement the sfdc_checkout.CartShippingCharges interface. This interface defines two methods: calculateShipping and calculateShippingForCart. The calculateShipping method takes a CC Cart Delivery Group Method record as an input and returns a CC Cart Item record of type Shipping. The calculateShippingForCart method takes a CC Cart record as an input and returns a list of CC Cart Item records of type Shipping. These methods are invoked by the B2B Commerce for Visualforce framework during checkout to calculate the shipping charge for each cart delivery group and the entire cart respectively.Reference:Add a Shipping Service,Calculate Shipping at Checkout, B2B Commerce for Visualforce Developer Guide

asked 23/09/2024
Josie Moha
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first