Commerce Commerce 1.x Class Reference Model comProduct

Default product type, commonly extended.

Meta

Descendant Classes

The following classes belong to classes in extensions or third-party code. They may require a package to be installed or are not publicly available at all.

  • DigitalproductProduct

Relations

  • Target: one modResource object (comProduct.target = modResource.id)
  • Products: many comProductBundleProduct objects (comProduct.id = comProductBundleProduct.bundle)
  • Matrix: one comProductMatrix object (comProduct.matrix = comProductMatrix.id)
  • Column: one comProductMatrixColumn object (comProduct.column = comProductMatrixColumn.id)
  • Row: one comProductMatrixRow object (comProduct.row = comProductMatrixRow.id)
  • PriceIndex: many comProductPriceIndex objects (comProduct.id = comProductPriceIndex.product)

Fields

Field Type Description
id integer (INTEGER) Primary key
class_key string (varchar[100]) Type of object
properties array (text)
may be null
Serialized arbitrary data stored with an object. Use utility methods instead of directly accessing these values: getProperty($key, $default), getProperties(), setProperty($key, $value), setProperties($properties, $merge), unsetProperty($key), unsetProperties($keys)
sku string (varchar[190])
barcode string (bigint[20])
may be null
name string (varchar[190])
description string (varchar[1024])
may be null
price integer (int[20]) Integer number in the currency base unit (e.g. cents)
price_formatted price passed through the financial formatter
pricing string (text)
may be null
stock integer (int[20])
may be null
stock_infinite boolean (tinyint[1])
weight float (decimal[20,3])
may be null
weight_unit string (varchar[190])
may be null
image string (varchar[190])
may be null
tax_group integer (int[10])
may be null
delivery_type integer (int[10])
may be null
target integer (int[10])
may be null
removed boolean (tinyint[1])
removed_on int (int[20]) UNIX timestamp
removed_on_formatted removed_on passed through the datetime formatter
removed_by boolean (tinyint[1])