Class Mage_Adminhtml_Model_Sales_Order_Create

Description

Order create model

Located in /Adminhtml/Model/Sales/Order/Create.php (line 35)

Varien_Object
   |
   --Mage_Adminhtml_Model_Sales_Order_Create
Variable Summary
Method Summary
Mage_Adminhtml_Model_Sales_Order_Create __construct ()
Mage_Adminhtml_Model_Sales_Order_Create addProduct (int|Mage_Catalog_Model_Product $product, [float|array|Varien_Object $config = 1])
void applyCoupon ( $code)
void collectRates ()
boolean getIsValidate ()
unknown initFromOrder ( $order)
Mage_Sales_Model_Quote_Item initFromOrderItem ( $orderItem, [int $qty = null])
Mage_Adminhtml_Model_Sales_Order_Create removeItem (int $itemId, string $from)
void setAccountData ( $accountData)
void setBillingAddress ( $address)
void setPaymentData ( $data)
void setPaymentMethod ( $method)
void setShippingAddress ( $address)
void setShippingAsBilling ( $flag)
void setShippingMethod ( $method)
void _assignOptionsToItem ( $item, array $options)
void _parseCustomPrice ( $price)
void _parseOptions ( $item,  $additionalOptions, Mage_Sales_Model_Quote_Item $product, array $options)
unknown _saveCustomer ()
Variables
Mage_Sales_Model_Quote $_cart (line 56)

Sales Quote instance

  • access: protected
Mage_Catalog_Model_Product_Compare_List $_compareList (line 63)

Catalog Compare List instance

  • access: protected
Mage_Customer_Model_Customer $_customer (line 91)

Customer instance

  • access: protected
Mage_Customer_Model_Form $_customerAddressForm (line 98)

Customer Address Form instance

  • access: protected
Mage_Customer_Model_Form $_customerForm (line 105)

Customer Form instance

  • access: protected
array $_errors = array() (line 112)

Array of validate errors

  • access: protected
boolean $_isValidate = false (line 84)

Collect (import) data and validate it flag

  • access: protected
boolean $_needCollect (line 70)

Re-collect quote flag

  • access: protected
boolean $_needCollectCart = false (line 77)

Re-collect cart flag

  • access: protected

Quote session object

  • access: protected
Mage_Wishlist_Model_Wishlist $_wishlist (line 49)

Quote customer wishlist model object

  • access: protected
Methods
Constructor __construct (line 114)
  • access: public
Mage_Adminhtml_Model_Sales_Order_Create __construct ()
addProduct (line 692)

Add product to current order quote $product can be either product id or product model $config can be either buyRequest config, or just qty

  • access: public
Mage_Adminhtml_Model_Sales_Order_Create addProduct (int|Mage_Catalog_Model_Product $product, [float|array|Varien_Object $config = 1])
addProducts (line 747)

Add multiple products to current order quote

  • access: public
Mage_Adminhtml_Model_Sales_Order_Create|Exception addProducts ( $products)
  • array $products
applyCoupon (line 1170)
  • access: public
void applyCoupon ( $code)
  • $code
applySidebarData (line 592)

Handle data sent from sidebar

  • access: public
Mage_Adminhtml_Model_Sales_Order_Create applySidebarData (array $data)
  • array $data
collectRates (line 1150)
  • access: public
void collectRates ()
collectShippingRates (line 1143)

Collect shipping data for quote shipping address

  • access: public
void collectShippingRates ()
createOrder (line 1429)

Create new order

  • access: public
Mage_Sales_Model_Order createOrder ()
getBillingAddress (line 1098)

Retrieve quote billing address

  • access: public
Mage_Sales_Model_Quote_Address getBillingAddress ()
getCustomerCart (line 448)

Retrieve customer cart quote object model

  • access: public
Mage_Sales_Model_Quote getCustomerCart ()
getCustomerCompareList (line 473)

Retrieve customer compare list model object

  • access: public
Mage_Catalog_Model_Product_Compare_List getCustomerCompareList ()
getCustomerGroupId (line 487)
  • access: public
void getCustomerGroupId ()
getCustomerWishlist (line 424)

Retrieve customer wishlist model object

  • access: public
Mage_Wishlist_Model_Wishlist getCustomerWishlist ([ $cacheReload = false])
  • $cacheReload
getIsValidate (line 136)

Return is validate data in import flag

  • access: public
boolean getIsValidate ()
getQuote (line 234)

Retrieve quote object model

  • access: public
getSession (line 224)

Retrieve session model object of quote

  • access: public
getShippingAddress (line 975)

Retrieve oreder quote shipping address

  • access: public
Mage_Sales_Model_Quote_Address getShippingAddress ()
importPostData (line 1211)

Parse data retrieved from request

  • access: public
Mage_Adminhtml_Model_Sales_Order_Create importPostData (array $data)
  • array $data
initFromOrder (line 245)

Initialize creation data from existing order

  • access: public
unknown initFromOrder ( $order)
initFromOrderItem (line 377)

Initialize creation data from existing order Item

  • return: | string
  • access: public
Mage_Sales_Model_Quote_Item initFromOrderItem ( $orderItem, [int $qty = null])
initRuleData (line 162)

Initialize data for price rules

  • access: public
moveQuoteItem (line 504)

Move quote item to another items list

  • access: public
Mage_Adminhtml_Model_Sales_Order_Create moveQuoteItem (int|Mage_Sales_Model_Quote_Item $item, string $moveTo, int $qty)
recollectCart (line 190)

Recollect totals for customer cart.

Set recollect totals flag for quote

  • access: public
removeItem (line 642)

Remove item from some of customer items storage (shopping cart, wishlist etc.)

  • access: public
Mage_Adminhtml_Model_Sales_Order_Create removeItem (int $itemId, string $from)
  • int $itemId
  • string $from
removeQuoteItem (line 676)

Remove quote item

  • access: public
Mage_Adminhtml_Model_Sales_Order_Create removeQuoteItem (int $item)
  • int $item
resetShippingMethod (line 1133)
  • access: public
void resetShippingMethod ()
saveQuote (line 205)

Quote saving

  • access: public
setAccountData (line 1178)
  • access: public
void setAccountData ( $accountData)
  • $accountData
setBillingAddress (line 1103)
  • access: public
void setBillingAddress ( $address)
  • $address
setIsValidate (line 125)

Set validate data in import data flag

  • access: public
Mage_Adminhtml_Model_Sales_Order_Create setIsValidate (boolean $flag)
  • boolean $flag
setPaymentData (line 1161)
  • access: public
void setPaymentData ( $data)
  • $data
setPaymentMethod (line 1155)
  • access: public
void setPaymentMethod ( $method)
  • $method
setRecollect (line 178)

Set collect totals flag for quote

  • access: public
Mage_Adminhtml_Model_Sales_Order_Create setRecollect (bool $flag)
  • bool $flag
setShippingAddress (line 1058)
  • access: public
void setShippingAddress ( $address)
  • $address
setShippingAsBilling (line 1080)
  • access: public
void setShippingAsBilling ( $flag)
  • $flag
setShippingMethod (line 1126)
  • access: public
void setShippingMethod ( $method)
  • $method
updateQuoteItems (line 770)

Update quantity of order quote items

  • access: public
Mage_Adminhtml_Model_Sales_Order_Create updateQuoteItems (array $data)
  • array $data
_assignOptionsToItem (line 895)

Assign options to item

  • access: protected
void _assignOptionsToItem ( $item, array $options)
_customerIsInStore (line 1260)

Check whether we need to create new customer (for another website) during order creation

  • access: protected
boolean _customerIsInStore (Mage_Core_Model_Store $store)
_getCustomerAddressForm (line 1000)

Return Customer Address Form instance

  • access: protected
Mage_Customer_Model_Form _getCustomerAddressForm ()
_getCustomerForm (line 985)

Return Customer (Checkout) Form instance

  • access: protected
Mage_Customer_Model_Form _getCustomerForm ()
_getNewCustomerEmail (line 1547)

Retrieve new customer email

  • access: protected
string _getNewCustomerEmail (Mage_Customer_Model_Customer $customer)
_getQuoteItem (line 147)

Retrieve quote item

  • access: protected
_initBillingAddressFromOrder (line 348)
  • access: protected
void _initBillingAddressFromOrder ( $order)
_initShippingAddressFromOrder (line 359)
  • access: protected
void _initShippingAddressFromOrder ( $order)
_parseCustomPrice (line 963)
  • access: protected
void _parseCustomPrice ( $price)
  • $price
_parseOptions (line 829)

Parse additional options and sync them with product options

  • access: protected
void _parseOptions ( $item,  $additionalOptions, Mage_Sales_Model_Quote_Item $product, array $options)
_prepareCustomer (line 1303)

Prepare quote customer

  • access: public
void _prepareCustomer ()
_prepareOptionsForRequest (line 945)

Prepare options array for info buy request

  • access: protected
array _prepareOptionsForRequest (Mage_Sales_Model_Quote_Item $item)
_prepareQuoteItems (line 1406)

Prepare item otions

  • access: protected
void _prepareQuoteItems ()
_putCustomerIntoQuote (line 1567)

Create customer model and assign it to quote

  • deprecated: after 1.4.0.0.
  • access: protected
void _putCustomerIntoQuote ()
_saveCustomer (line 1659)
  • deprecated: after 1.1.7
  • access: protected
unknown _saveCustomer ()
_saveCustomerAfterOrder (line 1602)

Save customer

  • deprecated: after 1.4.0.0.
  • access: protected
void _saveCustomerAfterOrder (Mage_Customer_Model_Customer $order)
_setCustomerData (line 1275)

Set and validate Customer data

  • access: protected
Mage_Adminhtml_Model_Sales_Order_Create _setCustomerData ( $customer)
_setQuoteAddress (line 1018)

Set and validate Quote address All errors added to _errors

  • access: protected
Mage_Adminhtml_Model_Sales_Order_Create _setQuoteAddress ( $address,  $data)
_validate (line 1484)

Validate quote data before order creation

  • access: protected

Documentation generated on Fri, 11 Feb 2011 16:59:50 +0200 by phpDocumentor 1.4.3