ProductTable class for handling table with catalog products.
Class methods
Catalog product fields
Field | Description | Type | Required |
ID | Product code (ID). | Int | Yes |
QUANTITY | Number of warehouse products. Jointly with the field QUANTITY_TRACE allows co count the number of items for allow/deny purchase. | Double | Yes |
QUANTITY_TRACE | Flag "Enable stock control" (Y/N/D) . | Char(1) | Yes |
WEIGHT | Single item weight. | Double | Yes |
TIMESTAMP_X | Date and time for entry update. | Datetime | Yes |
PRICE_TYPE | Price type. Used for managing subscriptions. Value options:
- S - single payment,
- R - recurring payments,
- T - trial subscription
| Char(1) | Yes |
RECUR_SCHEME_LENGTH | Subscription period | Int | No |
RECUR_SCHEME_TYPE | Subscription period type. Value options:
- "H" - hour,
- "D" - day,
- "W" - week,
- "M" - month,
- "Q" - quarter,
- "S" - semester,
- "Y" - year
| Char(1) | Yes |
TRIAL_PRICE_ID | Trial product code (ID). | Int | No |
WITHOUT_ORDER | Flag "Renewal without ordering" (Y/N). | Char(1) | Yes |
VAT_ID | Product-assigned VAT rate. | Int | No |
VAT_INCLUDED | "VAT included" (Y/N). | Char(1) | No |
CAN_BUY_ZERO | "Make out-of-stock items available for purchase" (Y/N/D). | Char(1) | Yes |
TMP_ID | Temporary string identifier, used for service purposes. | Varchar(40) | No |
PURCHASING_PRICE | Purchase price. | Decimal(18,2) | No |
PURCHASING_CURRENCY | Purchase price currency. | Char(3) | No |
BARCODE_MULTI | Flag defines if each product item has its own barcode (Y/N). | Char(1) | Yes |
QUANTITY_RESERVED | Reserved quantity. | Double | No |
SUBSCRIBE | Flag "Allow subscription for out-of-stock products" (Y/N/D).
| Char(1) | No |
WIDTH | Product width (in mm). | Double | No |
LENGTH | Product length (in mm). | Double | No |
HEIGHT | Product height (in mm). | Double | No |
MEASURE | Unit of measurement ID. | Int | No |
TYPE | Product type. | Int | No |
AVAILABLE | Product availability flag (Y/N). | Char(1) | No |
BUNDLE | Product bundle flag (Y/N). | Char(1) | No |
Product types
Main | Description | Available from version |
\Bitrix\Catalog\ProductTable::TYPE_PRODUCT | Standard product | |
\Bitrix\Catalog\ProductTable::TYPE_SET | Set | |
\Bitrix\Catalog\ProductTable::TYPE_SKU | Product with SKUs | |
\Bitrix\Catalog\ProductTable::TYPE_OFFER | SKU | |
Additional | Description | Available from version |
\Bitrix\Catalog\ProductTable::TYPE_FREE_OFFER | SKU without product (not specified or deleted). | |
\Bitrix\Catalog\ProductTable::TYPE_EMPTY_SKU | Specific type. Indicates invalid product with SKUs. | |
Added into shopping cart | Description | Available from version |
\Bitrix\Catalog\ProductTable::TYPE_PRODUCT | Standard product | |
\Bitrix\Catalog\ProductTable::TYPE_SET | Set | |
\Bitrix\Catalog\ProductTable::TYPE_OFFER | SKU | /td> |