Delivery Statuses

Delivery statuses holds information of the delivery time. You can assign different delivery statuses to different products.
This information is display for the customer in on the product page.

Entity Object

$delivery_status = new ent_delivery_status();
$delivery_status->data['name'] = ['en' => 'Name'];
$delivery_status->save();

Reference Model

Attributes doesn't have a reference object. Instead, values from the entity will be returned.

echo reference::delivery_status($status_id)->name[$language_code];

Database Query

$delivery_status = database::query(
  "select ds.id, dsi.name from ". DB_TABLE_PREFIX ."delivery_statuses ds
  left join ". DB_TABLE_PREFIX ."delivery_statuses_info dsi on (dsi.delivery_status_id = ds.id and dsi.language_code = 'en')
  where ds.id = ". (int)$delivery_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.