I’m developing Multivendor masrketplace mdoule. I need to split orders based on seller id’s which assigned to product. I tried using this free module. Link But this is not working with attributes. So I tried to split with sku. Where I modified the code like below. <?php namespace Magestat\SplitOrder\Plugin; use Magento\Quote\Model\QuoteManagement; use Magento\Framework\Exception\LocalizedException; use Magento\Quote\Api\CartRepositoryInterface; […]
Categories
Magento 2 split order based on product attribute
- Post author By Ask Me
- Post date May 24, 2020
- No Comments on Magento 2 split order based on product attribute
- Tags 'addresses', 'orders': orders, 'quote' => $currentQuote] ); return $this->getOrderKeys($orderIds); } /** * Save quote * * @param \Ma, ): ")).split(', ['quote' => $split] ); $this->toSaveQuote($split); $order = $subject->submit($split); $orde, $cartId, $order, $orderIds); $this->eventManager->dispatch( 'checkout_submit_all_after', $payment = null) { $currentQuote = $this->quoteRepository->getActive($cartId); // Separate all items in quote into new q, $payment); // Dispatch event as Magento standard once per each quote split. $this->eventManager->dispatch(, $split); $this->toSaveQuote($split); // Map quote items. foreach ($items as $item) { //, callable $proceed, I'm developing Multivendor masrketplace mdoule. I need to split orders based on seller id's which assigned to product. I tried using this fre, items, ManagerInterface $eventManager, QuoteFactory $quoteFactory, QuoteHandlerInterface $quoteHandler ) { $this->quoteRepository = $quoteRepository; $this->quoteFactory = $quoteFactory;