Which of the following task can't be performed using command-line interface in Magento?
Answer(s): D
Suppose you are tasked with update a product price to 10% more and it's cart rule to provide 5% discount after 2 month. So after this timeperiod, product price and cart rule must be activated workign in the frontend for users. Which Magento feature you should use to do the above task?
Answer(s): A
Suppose you are working with order collection where you need to get the Customer collection object in foreach loop to check wheather current order's customer accout is locked or not. For this you injected Magento\Customer\Model\Customer $customer in the constructor to use $customer collection object. But in loop when this object is used, you notice that it's returning the same customer even if you pass different customer id to filter the customer collection inside loop. What is the solution for this problem?
Answer(s): B
When you reference a factory or proxy in a class constructor, these classes are generated by default inside generated directory, if they are not present in codebase. Which Magento class is resposible for this?
When your class will be instantiated all the dependencies injected in your class constructor will also get instantiated, and it will trigger a chain reaction of object creation, this can really slow down the process. What could be the solution of above problem?
Post your Comments and Discuss Adobe AD0-E704 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the AD0-E704 content, but please register or login to continue.