Question: 1
You are developing a new payment method. It is required that any new order created with this payment method needs to have a specific custom status. Assume the status has been added to the system already, assigned to the processing state, and the new order state for the payment method is processing. How do you set the custom status on orders placed with the new payment method?
Question: 2
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?
Question: 3
You need to include the customer account menu on a custom storefront page, but only when the method MyCompany\\lyModule\ViewModel\MyView: :hasCustomerMenu() returns true. How do you accomplish this?
Question: 4
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?
Question: 5
You are working on a customization that requires a list of shipping rates available to a user. Which call returns the list of shipping rates?