Guest User

Untitled

a guest
Feb 18th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. $orderId = $orderIds[0];
  2. $order = $this->_orderFactory->create()->load($orderId);
  3.  
  4. /*Convert guest to customer*/
  5. if ($order->getEntityId() && $this->accountManagement->isEmailAvailable($order->getEmailAddress())) {
  6. $this->orderCustomerService->create($orderId);
  7.  
  8. }
  9. /*END*/
Add Comment
Please, Sign In to add comment