Can someone please suggest how do we add line items to an Ubercart order in Drupal 8? When I look at the references in Ubercart module, I get this:
// Load line items... has to be last after everything has been loaded. $order->line_items = $order->getLineItems();
I am already setting product details to the order. However when I set line items by above line of code, system doesn't allow me to proceed ahead and doesn't even show any error.
Thanks in advance for any help or suggestions.