2

You have to change function . First know about function. This is how the different methods to get items from an order work: getItems(): returns array of items from loaded order item collection getAllItems(): returns array of all items that are not marked as deleted getAllVisibleItems(): returns array of all items that are not marked as deleted ...


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

In the table sales_order_item, you should save the column product_options as JSON and in that, there must have one key = info_buyRequest


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 ...


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