Help : Create Order and Customize Price For Configurable Product
I have managed to create an order with simple and configurable products but I encountered an issue when I wanted to add a custom price. It worked for the simple product but not for the configurable one.
Re: Help : Create Order and Customize Price For Configurable Product
@ayoubmoumg2debInstead of setting the custom price on quote, you can set the item on quote and then set the custom price on item. I have done the similiar type of work while adding product to cart.Please take the reference from the below code.
$item = $observer->getEvent()->getQuoteItem(); //instead of this you can get the current item from quote