Edited Question
After the suggestion from Khoa TruongDinh I made changes in savePaymentInformationAndPlaceOrder()
and followed this to implement order splitting but it's not working can anyone suggest me my mistakes.
Previous Question
I want to split order depending on no of items in Magento 2. I know in Magento 1.x it is possible by rewriting saveOrder()
of Magento\Checkout\Model\Type\Onepage
I tried the same way in Magento 2 but it is not working. I also tried to make changes directly in the core file for testing purpose only, but system not visiting saveOrder()
.
Can anyone please tell me why this is not visiting.
I enabled Onepage Checkout configuration in Admin.