nerdexam
Adobe

AD0-E716 · Question #44

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…

The correct answer is C. The shipping method would display $10 and customers would pay $10 for using the new shipping. 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…

Customization

Question

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?

Exhibit

AD0-E716 question #44 exhibit

Options

  • AThe shipping method would display SO but customers would pay a $10 handling fee for their order.
  • BThe shipping method would display $0 and customers would pay $0 for using the new shipping
  • CThe shipping method would display $10 and customers would pay $10 for using the new shipping

How the community answered

(46 responses)
  • A
    9% (4)
  • B
    15% (7)
  • C
    76% (35)

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

Topics

#shipping carrier#collectRates#shipping cost#handling fee

Community Discussion

No community discussion yet for this question.

Full AD0-E716 Practice