Create
Magento\Sales\Model\AdminOrder\Create
What it does
The AdminOrder\Create model manages the creation of orders in the Magento admin panel.
Developers use this class when building custom admin order creation functionality, as it handles quote management, customer data preparation, address validation, shipping/payment methods, and converting quotes into orders.
It's particularly useful for extensions that need to programmatically create orders from the admin side or customize the admin order creation workflow.
Public Methods
- setIsValidate()
- getIsValidate()
- initRuleData()
- setRecollect()
- recollectCart()
- saveQuote()
- getSession()
- getQuote()
- setQuote()
- initFromOrder()
- initFromOrderItem()
- getCustomerWishlist()
- getCustomerCart()
- getCustomerCompareList()
- getCustomerGroupId()
- moveQuoteItem()
- applySidebarData()
- removeItem()
- removeQuoteItem()
- addProduct()
- addProducts()
- updateQuoteItems()
- getShippingAddress()
- setShippingAddress()
- setShippingAsBilling()
- getBillingAddress()
- setBillingAddress()
- setShippingMethod()
- resetShippingMethod()
- collectShippingRates()
- collectRates()
- setPaymentMethod()
- setPaymentData()
- applyCoupon()
- setAccountData()
- importPostData()
- _prepareCustomer()
- createOrder()