Documentation

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

ParameterDescriptionVersion
$productIdProduct ID.
$fuserIdShopping cart owner ID.
$siteIdSite ID.
$elementIdParent element ID.
$recommendationIdPersonal recommendation ID.

Example



© «Bitrix24», 2001-2024