I am working on a project that needs to tweak admin order creation function of magento.
I need to remove an item and then add another item programmatically while creating order.
For example, few items are already added to order, now if product id matches with
my_product_id, remove that product from
quote and add new product (
my_new_product) to order.
It will not be from
observer, since I will need to add a button to call this action and do the job.
I have successfully added a button and linked to my custom controller.
I have gone through loads of links, but no luck.