I have created one virtual product in my Magento2 website. Now, I want to add it programmatically to the existing customer orders on some occasions with its custom price and name.
Can someone please guide step by step to achieve this?
Thanks,
magento-2.2.5order-itemsprogrammaticallysales-order
I have created one virtual product in my Magento2 website. Now, I want to add it programmatically to the existing customer orders on some occasions with its custom price and name.
Can someone please guide step by step to achieve this?
Thanks,
Best Answer
After some goggling and with the help of some core modules I came up with following solution :