- Class name: OrderCore
- Parent class: ObjectModel
- Source: classes/order/Order.php line 28
- $_historyCache
- $_taxCalculationMethod
- $carrier_tax_rate
- $conversion_rate
- $date_add
- $date_upd
- $definition
- $delivery_date
- $delivery_number
- $gift
- $gift_message
- $id_address_delivery
- $id_address_invoice
- $id_carrier
- $id_cart
- $id_currency
- $id_customer
- $id_group_shop
- $id_lang
- $id_shop
- $invoice_date
- $invoice_number
- $module
- $payment
- $recyclable
- $reference
- $secure_key
- $shipping_number
- $total_discounts
- $total_discounts_tax_excl
- $total_discounts_tax_incl
- $total_paid
- $total_paid_real
- $total_paid_tax_excl
- $total_paid_tax_incl
- $total_products
- $total_products_wt
- $total_shipping
- $total_shipping_tax_excl
- $total_shipping_tax_incl
- $total_wrapping
- $total_wrapping_tax_excl
- $total_wrapping_tax_incl
- $valid
- $webserviceParameters
- $def
- $fieldsRequired
- $fieldsRequiredDatabase
- $fieldsRequiredLang
- $fieldsSize
- $fieldsSizeLang
- $fieldsValidate
- $fieldsValidateLang
- $id
- $identifier
- $image_dir
- $image_format
- $table
- $tables
- __construct
- _deleteProduct
- add
- addCartRule
- addDiscount
- addFieldsRequiredDatabase
- addOrderPayment
- addWs
- associateTo
- clearCache
- delete
- deleteAssociations
- deleteCustomization
- deleteImage
- deleteProduct
- deleteSelection
- displayFieldName
- duplicateShops
- existsInDatabase
- formatFields
- formatValue
- generateReference
- getByDelivery
- getCartIdStatic
- getCartProducts
- getCartRules
- getCurrentState
- getCurrentStateFull
- getCustomerNbOrders
- getCustomerOrders
- getDefinition
- getDeliverySlipsCollection
- getDiscounts
- getDiscountsCustomer
- getDocuments
- getEcoTaxTaxesBreakdown
- getEntity
- getFields
- getFieldsLang
- getFieldsRequiredDatabase
- getFirstMessage
- getHistory
- getIdOrderProduct
- getInvoice
- getInvoicesCollection
- getLastInvoiceNumber
- getNextOrderId
- getNotPaidInvoicesCollection
- getNumberOfDays
- getOrderByCartId
- getOrderDetailList
- getOrderIdsByStatus
- getOrderPaymentCollection
- getOrderSlipsCollection
- getOrdersIdByDate
- getOrdersIdInvoiceByDate
- getOrdersTotalPaid
- getOrdersWithInformations
- getPreviousOrderId
- getProductTaxesBreakdown
- getProducts
- getProductsDetail
- getReturn
- getShipping
- getShippingTaxesBreakdown
- getTaxCalculationMethod
- getTaxesAverageUsed
- getTotalPaid
- getTotalProductsWithTaxes
- getTotalProductsWithoutTaxes
- getTotalWeight
- getTranslationsFields
- getValidationRules
- getVirtualProducts
- getWarehouseList
- getWebserviceObjectList
- getWebserviceParameters
- getWrappingTaxesBreakdown
- getWsOrderRows
- hasBeenDelivered
- hasBeenPaid
- hasBeenShipped
- hasInvoice
- hydrate
- hydrateCollection
- isAssociatedAtGuest
- isAssociatedToGroupShop
- isAssociatedToShop
- isCurrentlyUsed
- isInPreparation
- isLangMultishop
- isReturnable
- isVirtual
- makeTranslationFields
- orderContainProduct
- printPDFIcons
- save
- setCurrentState
- setDefinitionRetrocompatibility
- setDelivery
- setInvoice
- setProductCurrentStock
- setProductCustomizedDatas
- setProductImageInformations
- setProductPrices
- toggleStatus
- update
- updateShippingCost
- useOneAfterAnotherTaxComputationMethod
- validateControler
- validateController
- validateField
- validateFields
- validateFieldsLang
protected mixed $_historyCache = array()
- Visibility: protected
- This property is static.
- Source: classes/order/Order.php line 239.
protected mixed $_taxCalculationMethod = PS_TAX_EXC
- Visibility: protected
- Source: classes/order/Order.php line 237.
public float $carrier_tax_rate
- Visibility: public
- Source: classes/order/Order.php line 113.
public float $conversion_rate
- Visibility: public
- Source: classes/order/Order.php line 65.
public string $date_add
- Visibility: public
- Source: classes/order/Order.php line 140.
public string $date_upd
- Visibility: public
- Source: classes/order/Order.php line 143.
public mixed $definition = array('table' => 'orders', 'primary' => 'id_order', 'fields' => array('id_address_delivery' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_address_invoice' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_cart' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_currency' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_group_shop' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'id_shop' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'id_lang' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_customer' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_carrier' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'secure_key' => array('type' => self::TYPE_STRING, 'validate' => 'isMd5'), 'payment' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true), 'module' => array('type' => self::TYPE_STRING), 'recyclable' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'gift' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'gift_message' => array('type' => self::TYPE_STRING, 'validate' => 'isMessage'), 'total_discounts' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'total_discounts_tax_incl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'total_discounts_tax_excl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'total_paid' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice', 'required' => true), 'total_paid_tax_incl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'total_paid_tax_excl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'total_paid_real' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice', 'required' => true), 'total_products' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice', 'required' => true), 'total_products_wt' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice', 'required' => true), 'total_shipping' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'total_shipping_tax_incl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'total_shipping_tax_excl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'carrier_tax_rate' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat'), 'total_wrapping' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'total_wrapping_tax_incl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'total_wrapping_tax_excl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'shipping_number' => array('type' => self::TYPE_STRING, 'validate' => 'isUrl'), 'conversion_rate' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat', 'required' => true), 'invoice_number' => array('type' => self::TYPE_INT), 'delivery_number' => array('type' => self::TYPE_INT), 'invoice_date' => array('type' => self::TYPE_DATE), 'delivery_date' => array('type' => self::TYPE_DATE), 'valid' => array('type' => self::TYPE_BOOL), 'reference' => array('type' => self::TYPE_STRING), 'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'), 'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDate')))
- Visibility: public
- This property is static.
- Source: classes/order/Order.php line 153.
public string $delivery_date
- Visibility: public
- Source: classes/order/Order.php line 134.
public integer $delivery_number
- Visibility: public
- Source: classes/order/Order.php line 128.
public boolean $gift
- Visibility: public
- Source: classes/order/Order.php line 71.
public string $gift_message
- Visibility: public
- Source: classes/order/Order.php line 74.
public integer $id_address_delivery
- Visibility: public
- Source: classes/order/Order.php line 31.
public integer $id_address_invoice
- Visibility: public
- Source: classes/order/Order.php line 34.
public integer $id_carrier
- Visibility: public
- Source: classes/order/Order.php line 53.
public integer $id_cart
- Visibility: public
- Source: classes/order/Order.php line 41.
public integer $id_currency
- Visibility: public
- Source: classes/order/Order.php line 44.
public integer $id_customer
- Visibility: public
- Source: classes/order/Order.php line 50.
public mixed $id_group_shop
- Visibility: public
- Source: classes/order/Order.php line 36.
public integer $id_lang
- Visibility: public
- Source: classes/order/Order.php line 47.
public mixed $id_shop
- Visibility: public
- Source: classes/order/Order.php line 38.
public string $invoice_date
- Visibility: public
- Source: classes/order/Order.php line 131.
public integer $invoice_number
- Visibility: public
- Source: classes/order/Order.php line 125.
public string $module
- Visibility: public
- Source: classes/order/Order.php line 62.
public string $payment
- Visibility: public
- Source: classes/order/Order.php line 59.
public boolean $recyclable = 1
- Visibility: public
- Source: classes/order/Order.php line 68.
public string $reference
- Visibility: public
- Source: classes/order/Order.php line 148.
public string $secure_key
- Visibility: public
- Source: classes/order/Order.php line 56.
public string $shipping_number
- Visibility: public
- Source: classes/order/Order.php line 77.
public float $total_discounts
- Visibility: public
- Source: classes/order/Order.php line 80.
public mixed $total_discounts_tax_excl
- Visibility: public
- Source: classes/order/Order.php line 83.
public mixed $total_discounts_tax_incl
- Visibility: public
- Source: classes/order/Order.php line 82.
public float $total_paid
- Visibility: public
- Source: classes/order/Order.php line 86.
public float $total_paid_real
- Visibility: public
- Source: classes/order/Order.php line 95.
public float $total_paid_tax_excl
- Visibility: public
- Source: classes/order/Order.php line 92.
public float $total_paid_tax_incl
- Visibility: public
- Source: classes/order/Order.php line 89.
public float $total_products
- Visibility: public
- Source: classes/order/Order.php line 98.
public float $total_products_wt
- Visibility: public
- Source: classes/order/Order.php line 101.
public float $total_shipping
- Visibility: public
- Source: classes/order/Order.php line 104.
public float $total_shipping_tax_excl
- Visibility: public
- Source: classes/order/Order.php line 110.
public float $total_shipping_tax_incl
- Visibility: public
- Source: classes/order/Order.php line 107.
public float $total_wrapping
- Visibility: public
- Source: classes/order/Order.php line 116.
public float $total_wrapping_tax_excl
- Visibility: public
- Source: classes/order/Order.php line 122.
public float $total_wrapping_tax_incl
- Visibility: public
- Source: classes/order/Order.php line 119.
public boolean $valid
- Visibility: public
- Source: classes/order/Order.php line 137.
protected mixed $webserviceParameters = array('objectMethods' => array('add' => 'addWs'), 'objectNodeName' => 'order', 'objectsNodeName' => 'orders', 'fields' => array('id_address_delivery' => array('xlink_resource' => 'addresses'), 'id_address_invoice' => array('xlink_resource' => 'addresses'), 'id_cart' => array('xlink_resource' => 'carts'), 'id_currency' => array('xlink_resource' => 'currencies'), 'id_lang' => array('xlink_resource' => 'languages'), 'id_customer' => array('xlink_resource' => 'customers'), 'id_carrier' => array('xlink_resource' => 'carriers'), 'module' => array('required' => true), 'invoice_number' => array(), 'invoice_date' => array(), 'delivery_number' => array(), 'delivery_date' => array(), 'valid' => array(), 'current_state' => array('getter' => 'getCurrentState', 'setter' => 'setCurrentState', 'xlink_resource' => 'order_states'), 'date_add' => array(), 'date_upd' => array()), 'associations' => array('order_rows' => array('resource' => 'order_row', 'setter' => false, 'virtual_entity' => true, 'fields' => array('id' => array(), 'product_id' => array('required' => true), 'product_attribute_id' => array('required' => true), 'product_quantity' => array('required' => true), 'product_name' => array('setter' => false), 'product_price' => array('setter' => false)))))
- Visibility: protected
- Source: classes/order/Order.php line 201.
protected array $def
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 122.
protected mixed $fieldsRequired = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 72.
protected mixed $fieldsRequiredDatabase = null
- Visibility: protected
- This property is static.
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 57.
protected mixed $fieldsRequiredLang = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 87.
protected mixed $fieldsSize = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 77.
protected mixed $fieldsSizeLang = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 92.
protected mixed $fieldsValidate = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 82.
protected mixed $fieldsValidateLang = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 97.
public integer $id
- Visibility: public
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 48.
protected mixed $identifier
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 67.
protected string $image_dir = null
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 108.
protected string $image_format = 'jpg'
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 111.
protected mixed $table
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 62.
protected mixed $tables = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 102.
mixed OrderCore::__construct($id, $id_lang)
- Visibility: public
- Source: classes/order/Order.php line 241
- $id mixed
- $id_lang mixed
mixed OrderCore::_deleteProduct($orderDetail, $quantity)
- Visibility: protected
- Source: classes/order/Order.php line 328
- $orderDetail mixed
- $quantity mixed
mixed OrderCore::add($autodate, $null_values)
- Visibility: public
- Source: classes/order/Order.php line 265
- $autodate mixed
- $null_values mixed
boolean OrderCore::addCartRule(integer $id_cart_rule, string $name, array $values, integer $id_order_invoice)
- Visibility: public
- Source: classes/order/Order.php line 1009
- $id_cart_rule integer
- $name string
- $values array
- $id_order_invoice integer
boolean OrderCore::addDiscount(integer $id_cart_rule, string $name, float $value)
- Visibility: public
- Source: classes/order/Order.php line 995
- $id_cart_rule integer
- $name string
- $value float
mixed ObjectModelCore::addFieldsRequiredDatabase($fields)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 961
- $fields mixed
boolean OrderCore::addOrderPayment(float $amount_paid, string $payment_method, string $payment_transaction_id, \Currency $currency, string $date, \OrderInvoice $order_invoice)
This method allows to add a payment to the current order
- Visibility: public
- Source: classes/order/Order.php line 1375
- $amount_paid float
- $payment_method string
- $payment_transaction_id string
- $currency Currency
- $date string
- $order_invoice OrderInvoice
mixed OrderCore::addWs($autodate, $nullValues)
- Visibility: public
- Source: classes/order/Order.php line 1260
- $autodate mixed
- $nullValues mixed
boolean ObjectModelCore::associateTo(integer|array $id_shops, string $type)
This function associate an item to its context
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1009
- $id_shops integer|array
- $type string
mixed ObjectModelCore::clearCache($all)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 975
- $all mixed
boolean ObjectModelCore::delete()
Delete current object from database
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 517
mixed OrderCore::deleteAssociations()
- Visibility: public
- Source: classes/order/Order.php line 1269
mixed OrderCore::deleteCustomization($id_customization, $quantity, $orderDetail)
- Visibility: public
- Source: classes/order/Order.php line 404
- $id_customization mixed
- $quantity mixed
- $orderDetail mixed
boolean ObjectModelCore::deleteImage()
Delete images associated with the object
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1079
mixed OrderCore::deleteProduct($order, $orderDetail, $quantity)
- Visibility: public
- Source: classes/order/Order.php line 278
- $order mixed
- $orderDetail mixed
- $quantity mixed
boolean ObjectModelCore::deleteSelection(array $selection)
Delete several objects from database
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 553
- $selection array
mixed ObjectModelCore::displayFieldName($field, $className, $htmlentities, \Context $context)
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 740
- $field mixed
- $className mixed
- $htmlentities mixed
- $context Context
mixed ObjectModelCore::duplicateShops($id)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1049
- $id mixed
boolean ObjectModelCore::existsInDatabase(integer $id_entity, string $table)
Specify if an ObjectModel is already in database
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1113
- $id_entity integer
- $table string
array ObjectModelCore::formatFields(integer $id_lang)
- Visibility: protected
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 272
- $id_lang integer - If this parameter is given, only take lang fields
mixed ObjectModelCore::formatValue(mixed $value, integer $type, $with_quotes)
Format a data
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 319
- $value mixed
- $type integer
- $with_quotes mixed
String OrderCore::generateReference()
Gennerate a unique reference for orders generated with the same cart id This references, is usefull for check payment
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 1319
mixed OrderCore::getByDelivery($id_delivery)
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 1166
- $id_delivery mixed
integer OrderCore::getCartIdStatic(integer $id_order, integer $id_customer)
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 1219
- $id_order integer
- $id_customer integer - optionnal
array OrderCore::getCartProducts()
This function return products of the orders It's similar to Order::getProducts but witrh similar outputs of Cart::getProducts
- Visibility: public
- Source: classes/order/Order.php line 304
mixed OrderCore::getCartRules()
- Visibility: public
- Source: classes/order/Order.php line 709
array OrderCore::getCurrentState()
Get current order state (eg. Awaiting payment, Delivered.
..)
- Visibility: public
- Source: classes/order/Order.php line 732
array OrderCore::getCurrentStateFull($id_lang)
Get current order state name (eg. Awaiting payment, Delivered.
..)
- Visibility: public
- Source: classes/order/Order.php line 745
- $id_lang mixed
array OrderCore::getCustomerNbOrders(integer $id_customer)
Get customer orders number
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 959
- $id_customer integer - Customer id
array OrderCore::getCustomerOrders(integer $id_customer, boolean $showHiddenStatus, \Context $context)
Get customer orders
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 783
- $id_customer integer - Customer id
- $showHiddenStatus boolean - Display or not hidden order statuses
- $context Context
mixed ObjectModelCore::getDefinition($class, $field)
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1209
- $class mixed
- $field mixed
\Collection OrderCore::getDeliverySlipsCollection()
Get all delivery slips for the current order
- Visibility: public
- Source: classes/order/Order.php line 1490
mixed OrderCore::getDiscounts($details)
- Visibility: public
- Source: classes/order/Order.php line 703
- $details mixed
mixed OrderCore::getDiscountsCustomer($id_customer, $id_cart_rule)
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 718
- $id_customer mixed
- $id_cart_rule mixed
array OrderCore::getDocuments()
Returns the correct product taxes breakdown.
Get all documents linked to the current order
- Visibility: public
- Source: classes/order/Order.php line 1407
array OrderCore::getEcoTaxTaxesBreakdown()
Returns the ecotax taxes breakdown
- Visibility: public
- Source: classes/order/Order.php line 1682
mixed ObjectModelCore::getEntity($entity)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1269
- $entity mixed
array OrderCore::getFields()
- Visibility: public
- Source: classes/order/Order.php line 257
array ObjectModelCore::getFieldsLang()
Prepare multilang fields
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 249
mixed ObjectModelCore::getFieldsRequiredDatabase($all)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 953
- $all mixed
mixed OrderCore::getFirstMessage()
- Visibility: public
- Source: classes/order/Order.php line 463
array OrderCore::getHistory(integer $id_lang, $id_order_state, $no_hidden)
Get order history
- Visibility: public
- Source: classes/order/Order.php line 427
- $id_lang integer - Language id
- $id_order_state mixed
- $no_hidden mixed
mixed OrderCore::getIdOrderProduct($id_customer, $id_product)
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 585
- $id_customer mixed
- $id_product mixed
mixed OrderCore::getInvoice(integer $id_invoice)
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 1191
- $id_invoice integer
\Collection OrderCore::getInvoicesCollection()
Get all invoices for the current order
- Visibility: public
- Source: classes/order/Order.php line 1477
mixed OrderCore::getLastInvoiceNumber()
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 1045
integer OrderCore::getNextOrderId()
This method return the ID of the next order
- Visibility: public
- Source: classes/order/Order.php line 1295
\Collection OrderCore::getNotPaidInvoicesCollection()
Get all not paid invoices for the current order
- Visibility: public
- Source: classes/order/Order.php line 1503
mixed OrderCore::getNumberOfDays()
- Visibility: public
- Source: classes/order/Order.php line 1021
array OrderCore::getOrderByCartId(integer $id_cart)
Get an order by its cart id
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 976
- $id_cart integer - Cart id
array OrderCore::getOrderDetailList()
Get the an order detail list of the current order
- Visibility: public
- Source: classes/order/Order.php line 1308
mixed OrderCore::getOrderIdsByStatus($id_order_state)
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 883
- $id_order_state mixed
\Collection OrderCore::getOrderPaymentCollection()
This method allows to get all Order Payment for the current order
- Visibility: public
- Source: classes/order/Order.php line 1356
\Collection OrderCore::getOrderSlipsCollection()
Get all order_slips for the current order
- Visibility: public
- Source: classes/order/Order.php line 1464
mixed OrderCore::getOrdersIdByDate($date_from, $date_to, $id_customer, $type)
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 815
- $date_from mixed
- $date_to mixed
- $id_customer mixed
- $type mixed
array OrderCore::getOrdersIdInvoiceByDate($date_from, $date_to, $id_customer, $type)
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 865
- $date_from mixed
- $date_to mixed
- $id_customer mixed
- $type mixed
float OrderCore::getOrdersTotalPaid()
Get the sum of total_paid_tax_incl of the orders with similar reference
- Visibility: public
- Source: classes/order/Order.php line 1550
mixed OrderCore::getOrdersWithInformations($limit, \Context $context)
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 831
- $limit mixed
- $context Context
integer OrderCore::getPreviousOrderId()
This method return the ID of the previous order
- Visibility: public
- Source: classes/order/Order.php line 1281
array OrderCore::getProductTaxesBreakdown()
Returns the correct product taxes breakdown.
- Visibility: public
- Source: classes/order/Order.php line 1589
array OrderCore::getProducts($products, $selectedProducts, $selectedQty)
Get order products
- Visibility: public
- Source: classes/order/Order.php line 539
- $products mixed
- $selectedProducts mixed
- $selectedQty mixed
mixed OrderCore::getProductsDetail()
- Visibility: public
- Source: classes/order/Order.php line 453
mixed OrderCore::getReturn()
- Visibility: public
- Source: classes/order/Order.php line 1433
array OrderCore::getShipping()
- Visibility: public
- Source: classes/order/Order.php line 1441
array OrderCore::getShippingTaxesBreakdown()
Returns the shipping taxes breakdown
- Visibility: public
- Source: classes/order/Order.php line 1648
mixed OrderCore::getTaxCalculationMethod()
- Visibility: public
- Source: classes/order/Order.php line 272
mixed OrderCore::getTaxesAverageUsed()
- Visibility: public
- Source: classes/order/Order.php line 653
float OrderCore::getTotalPaid(\Currency $currency)
Get total paid
- Visibility: public
- Source: classes/order/Order.php line 1519
- $currency Currency - currency used for the total paid of the current order
\Product OrderCore::getTotalProductsWithTaxes($products)
Get product total with taxes
- Visibility: public
- Source: classes/order/Order.php line 919
- $products mixed
\Product OrderCore::getTotalProductsWithoutTaxes($products)
Get product total without taxes
- Visibility: public
- Source: classes/order/Order.php line 909
- $products mixed
mixed OrderCore::getTotalWeight()
- Visibility: public
- Source: classes/order/Order.php line 1176
mixed ObjectModelCore::getTranslationsFields($fieldsArray)
- Visibility: protected
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 589
- $fieldsArray mixed
array ObjectModelCore::getValidationRules(string $className)
Returns object validation rules (fields validity)
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 130
- $className string - Child class name for static use (optional)
integer OrderCore::getVirtualProducts()
Count virtual products in order
- Visibility: public
- Source: classes/order/Order.php line 663
mixed OrderCore::getWarehouseList()
Get warehouse associated to the order
return array List of warehouse
- Visibility: public
- Source: classes/order/Order.php line 1712
mixed ObjectModelCore::getWebserviceObjectList($sql_join, $sql_filter, $sql_sort, $sql_limit)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 929
- $sql_join mixed
- $sql_filter mixed
- $sql_sort mixed
- $sql_limit mixed
mixed ObjectModelCore::getWebserviceParameters($wsParamsAttributeName)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 799
- $wsParamsAttributeName mixed
array OrderCore::getWrappingTaxesBreakdown()
Returns the wrapping taxes breakdown
- Visibility: public
- Source: classes/order/Order.php line 1670
mixed OrderCore::getWsOrderRows()
- Visibility: public
- Source: classes/order/Order.php line 1228
mixed OrderCore::hasBeenDelivered()
- Visibility: public
- Source: classes/order/Order.php line 756
mixed OrderCore::hasBeenPaid()
- Visibility: public
- Source: classes/order/Order.php line 761
mixed OrderCore::hasBeenShipped()
- Visibility: public
- Source: classes/order/Order.php line 766
boolean OrderCore::hasInvoice()
Has invoice return true if this order has already an invoice
- Visibility: public
- Source: classes/order/Order.php line 1696
mixed ObjectModelCore::hydrate(array $data, integer $id_lang)
Fill an object with given data. Data must be an array with this syntax: array(objProperty => value, objProperty2 => value, etc.)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1148
- $data array
- $id_lang integer
array ObjectModelCore::hydrateCollection(string $class, array $datas, integer $id_lang)
Fill (hydrate) a list of objects in order to get a collection of these objects
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1167
- $class string - Class of objects to hydrate
- $datas array - List of data (multi-dimensional array)
- $id_lang integer
mixed OrderCore::isAssociatedAtGuest($email)
- Visibility: public
- Source: classes/order/Order.php line 1200
- $email mixed
boolean ObjectModelCore::isAssociatedToGroupShop(integer $id_group_shop)
Check if current object is associated to a group shop
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1035
- $id_group_shop integer
boolean ObjectModelCore::isAssociatedToShop(integer $id_shop)
Check if current object is associated to a shop
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 990
- $id_shop integer
boolean ObjectModelCore::isCurrentlyUsed(string $table, boolean $has_active_column)
This method is allow to know if a entity is currently used
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1131
- $table string - name of table linked to entity
- $has_active_column boolean - true if the table has an active column
mixed OrderCore::isInPreparation()
- Visibility: public
- Source: classes/order/Order.php line 771
mixed ObjectModelCore::isLangMultishop()
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1069
mixed OrderCore::isReturnable()
- Visibility: public
- Source: classes/order/Order.php line 1035
boolean OrderCore::isVirtual(boolean $strict)
Check if order contains (only) virtual products
- Visibility: public
- Source: classes/order/Order.php line 680
- $strict boolean - If false return true if there are at least one product virtual
mixed ObjectModelCore::makeTranslationFields($fields, $fieldsArray, $id_language)
- Visibility: protected
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 605
- $fields mixed
- $fieldsArray mixed
- $id_language mixed
mixed OrderCore::orderContainProduct($id_product)
- Visibility: public
- Source: classes/order/Order.php line 1324
- $id_product mixed
mixed OrderCore::printPDFIcons($id_order, $tr)
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 1146
- $id_order mixed
- $tr mixed
boolean ObjectModelCore::save(boolean $null_values, boolean $autodate)
Save current object to database (add or update)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 360
- $null_values boolean
- $autodate boolean
mixed OrderCore::setCurrentState(integer $id_order_state, integer $id_employee)
Set current order state
- Visibility: public
- Source: classes/order/Order.php line 1241
- $id_order_state integer
- $id_employee integer - (/!\ not optional except for Webservice.
mixed ObjectModelCore::setDefinitionRetrocompatibility()
Retrocompatibility for classes without $definition static Remove this in 1.6 !
- Visibility: protected
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1224
mixed OrderCore::setDelivery()
- Visibility: public
- Source: classes/order/Order.php line 1118
mixed OrderCore::setInvoice()
This method allows to generate first invoice of the current order
- Visibility: public
- Source: classes/order/Order.php line 1056
mixed OrderCore::setProductCurrentStock($product)
This method allow to add stock information on a product detail
If advanced stock management is active, get physical stock of this product in the warehouse associated to the ptoduct for the current order Else get the available quantity of the product in fucntion of the shop associated to the order
- Visibility: protected
- Source: classes/order/Order.php line 616
- $product mixed
mixed OrderCore::setProductCustomizedDatas($product, $customized_datas)
- Visibility: protected
- Source: classes/order/Order.php line 598
- $product mixed
- $customized_datas mixed
mixed OrderCore::setProductImageInformations($product)
This method allow to add image information on a product detail
- Visibility: protected
- Source: classes/order/Order.php line 631
- $product mixed
mixed OrderCore::setProductPrices($row)
- Visibility: public
- Source: classes/order/Order.php line 478
- $row mixed
boolean ObjectModelCore::toggleStatus()
Toggle object status in database
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 569
boolean ObjectModelCore::update(boolean $null_values)
Update current object to database
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 444
- $null_values boolean
boolean OrderCore::updateShippingCost(float $amount)
This method allows to change the shipping cost of the current order
- Visibility: public
- Source: classes/order/Order.php line 1567
- $amount float
boolean OrderCore::useOneAfterAnotherTaxComputationMethod()
This method returns true if at least one order details uses the One After Another tax computation method.
- Visibility: public
- Source: classes/order/Order.php line 1339
mixed ObjectModelCore::validateControler($htmlentities)
TODO: refactor rename all calls to this to validateController
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 753
- $htmlentities mixed
mixed ObjectModelCore::validateController($htmlentities)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 759
- $htmlentities mixed
boolean|string ObjectModelCore::validateField(string $field, mixed $value, integer $id_lang)
Validate a single field
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 704
- $field string - Field name
- $value mixed - Field value
- $id_lang integer
boolean|string ObjectModelCore::validateFields(boolean $die, boolean $error_return)
Check for fields validity before database interaction
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 643
- $die boolean
- $error_return boolean
boolean|string ObjectModelCore::validateFieldsLang(boolean $die, boolean $error_return)
Check for multilingual fields validity before database interaction
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 669
- $die boolean
- $error_return boolean