Adobe AD0-E716 Exam - Topic 3 Question 40 Discussion
An Adobe Commerce developer is tasked with adding custom data to orders fetched from the API. While keeping best practices in mind, how would the developer achieve this?
C) Create a before plugin on Magento\sales\model\ResourceModel\order\collection: :load and alter the query to fetch the additional data. Data will then be automatically added to the items fetched from the API.
A) Create an extension attribute on Nagento\sales\Api\E)ata\orderinterface and an after plugin on
Magento\Sales\Model\Order: :getExtensionAttributes() to add the custom data.
B) Create an extension attribute On Magento\Sales\Api\Data\OrderInterface and an after plugin On Magento\Sales\Api\OrderRepositoryInterface On geto and getListo to add the custom data.
Dawne
7 months agoDorthy
7 months agoDorthy
7 months agoRoosevelt
7 months agoJoesph
7 months agoRemedios
8 months agoAsha
8 months agoChaya
8 months agoGlory
8 months agoCordelia
8 months agoStephen
8 months agoEliseo
8 months agoLeota
8 months agoNelida
1 year agoTyra
1 year agoAdela
1 year agoPrecious
1 year agoNana
1 year agoPercy
1 year agoEmiko
1 year agoTommy
1 year agoClay
1 year agoGeraldo
1 year agoVerona
1 year agoTwana
1 year agoChauncey
1 year agoKaran
1 year agoTammara
1 year agoLindsey
1 year agoAshton
1 year agoCarmelina
1 year agoFranklyn
1 year ago