Suppliers

Suppliers can be used to keep track of companies who deliver products to you or your customer.

By linking a product to a supplier you may through a third party add-on i.e. create order automations, reports, presentations, etc.

Entity Object

$supplier = new ent_supplier();
$supplier->data['name'] = 'Wholesaler';
$supplier->save();

Reference Model

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

echo reference::supplier($supplier_id)->name;

Database Query

$supplier = database::query(
  "select * from ". DB_TABLE_PREFIX ."suppliers
  where id = ". (int)$supplier_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.