CatalogViewedProductTable
CatalogViewedProductTable class for handling table with products viewed on site.
Class methods
Method | Description | Available from version |
---|---|---|
clear | Clears legacy data from table with products viewed on site. | |
clearAgent | Agent for clearing legacy dat from from table with products viewed on site. | |
getMap | Returns list of fields for table with products viewed on site. | |
getProductSkuMap | Returns map with following structure: product - SKU. | |
getProductsMap | Returns list product IDs as follows: key - SKU ID - product ID. | |
getTableName | Returns name for table with product viewed on site. | |
refresh | General method for updating or inserting into table an entry about product viewed on site. | |
validateRecommendation | Returns validator for the field RECOMMENDATION . |
|
validateSiteId | Returns validator for the field SITE_ID . |
Fields for table of viewed products
Field | Description | Type | Required |
---|---|---|---|
ID | Entry ID. | Int | Да |
FUSER_ID | Buyer ID. | Int | Да |
DATE_VISIT | Date and time for the recently viewed product. | Datetime | Да |
PRODUCT_ID | Product ID (SKU). | Int | Yes |
ELEMENT_ID | Parent product ID. | Int | Yes |
SITE_ID | Site ID. | Char(2) | Yes |
VIEW_COUNT | Number of views | Int | Yes |
RECOMMENDATION | Recommendation type. | Varchar(40) | No |
© «Bitrix24», 2001-2024