1

I am able to get order details by Order ID, but it's giving on created_tiem and updated_time.

Is there anyway to get order complete time?

1

As per I know by default in Magento does not provide the order completed time. created_time change only once during order creation and updated_timechange on every order action (i.e shipment, Invoice, order status change etc) so you can not predict the exact time for order complete.

But you can create one custom attribute to order level as completed_time and you can update this value by using plugin. In this plugin you can get the order state. Just compare the order state, If it is complete then update your custom variable.

For the plugin you can read answer from this link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.