Solved

You Have Been Asked to Display Details from the Customer's

Question 69

Multiple Choice

You have been asked to display details from the customer's latest order on the customer's account dashboard (customer/account/) . You create a new custom template to show the information. How do you obtain an order repository so you can fetch an order?


A) Create a view model and specify an OrderRepositoryInterface argument in the _construct method
B) In your template, add the following: $orderRepository=ObjectManager::getInstance() ->get(OrderRepositoryInterface::class) ;
C) In your block, add a method with the following: return ObjectManager::getInstance() ->get(OrderRepositoryInterface::class) ;
D) $orderRepository = new OrderRepository() ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents