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();

Révisions

Articles récemment édités
Ce site n'utilise aucun cookie ni aucune technologie de suivi tierce. Nous pensons pouvoir faire mieux que les autres et nous nous soucions vraiment de votre vie privée.