Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $orderId = $orderIds[0];
- $order = $this->_orderFactory->create()->load($orderId);
- /*Convert guest to customer*/
- if ($order->getEntityId() && $this->accountManagement->isEmailAvailable($order->getEmailAddress())) {
- $this->orderCustomerService->create($orderId);
- }
- /*END*/
Add Comment
Please, Sign In to add comment