1

If i get this right then in the following function public function execute(OrderInterface $order): bool { $stocks = $this->stockRepository->getList()->getItems(); $orderItems = $order->getItems(); foreach ($orderItems as $orderItem) { $productType = $orderItem->getProduct()->getTypeId(); if (!$this->...


1

Case 3: Please create one new order table for split orders and it will have a foreign key reference with the main order table. For e.g. let say vendor_order or category_order. So split order entries will be stored into that for your reference of split order related things like shipping method, payment method, totals, etc. In admin panel, you can show the ...


1

The top-rated answer doesn't work because he forgot to set the "description" value inside of the \Magento\Quote\Model\Quote\Address\Rate class. If we do not create a Plugin to set the Description value on this class, then $rateModel->getMethodDescription() will always return empty. Here is a full-working version of the solution: [Vendor]/[Module]/etc/...


Only top voted, non community-wiki answers of a minimum length are eligible