refresh
integer public static \Bitrix\Catalog\CatalogViewedProductTable::refresh( integer $productId, integer $fuserId, string|mixed $siteId = SITE_ID, integer $elementId, string $recommendationId = '' );
General method for updating or inserting entry about viewed product in the table. Static method.
Parameters
Parameter | Description | Version |
---|---|---|
$productId | Product ID. | |
$fuserId | Shopping cart owner ID. | |
$siteId | Site ID. | |
$elementId | Parent element ID. | |
$recommendationId | Personal recommendation ID. |
Example
© «Bitrix24», 2001-2024