ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 44 - AD0-E716 discussion

Report
Export

An Adobe Commerce developer has created a new shipping carrier Everything has been implemented and the collectRates() and getAllowedMethodsQ functions can be seen below:

Given the above code, what would be the displayed cost of the shipping method and final amount charged to the customer?

A.
The shipping method would display SO but customers would pay a $10 handling fee for their order.
Answers
A.
The shipping method would display SO but customers would pay a $10 handling fee for their order.
B.
The shipping method would display $0 and customers would pay $0 for using the new shipping method.
Answers
B.
The shipping method would display $0 and customers would pay $0 for using the new shipping method.
C.
The shipping method would display $10 and customers would pay $10 for using the new shipping method.
Answers
C.
The shipping method would display $10 and customers would pay $10 for using the new shipping method.
Suggested answer: C

Explanation:

The shipping method would display $10 and customers would pay $10 for using the new shipping method. This is because the collectRates method sets the price and cost of the shipping method to 10 in the result object. The price is what is shown to the customer on the frontend and the cost is what is charged to the customer when they place the order. The handling fee is not used in this case because it is set to zero in the config.xml file. Verified

Reference: [Magento 2.4 DevDocs] [Magento Stack Exchange]

asked 02/10/2024
luigi catalano
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first