Magento Certified Solution Specialist — Question 1
Which method is called on a shipping carrier model to fetch a list of all available shipping methods, along with the rates associated with them, for a quote address?
Answer options
- A. collectShippingRates ( )
- B. getAllowedMethods ( )
- C. getShippingRates ( )
- D. getAvailableRates ( )
- E. collectRates ( )
Correct answer: E
Explanation
The correct method, collectRates(), is specifically designed to gather all available shipping methods and their rates for a given quote address. The other options, while related to shipping, either do not retrieve a complete list of rates or serve different purposes within the shipping process.