Order Statuses

Order statuses are groups of orders that is mostly used to describe orders being in a specific state.

Entity Object

$order_status = new ent_order_status();
$order_status->data['name'] = 'Name';
$order_status->save();

Reference Model

echo reference::order_status($status_id)->name;

Database Query

$order_status = database::query(
  "select os.id, osi.name from ". DB_TABLE_PREFIX ."order_statuses os
  left join ". DB_TABLE_PREFIX ."order_statuses_info osi on (osi.order_status_id = os.id and osi.language_code = 'en')
  where os.id = ". (int)$order_status_id ."
  limit 1;"
)->fetch();

Revisions

Recently Edited Articles
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.