В script.js шаблона есть метод incViewedCounter
Код |
---|
...
window.JCCatalogElement.prototype.incViewedCounter = function()
{
...
BX.ajax.post(
this.viewedCounter.path,
this.viewedCounter.params,
BX.delegate(function(){ this.updateViewedCount = false; }, this)
);
...
}
...
|
Этот метод отправляет AJAX-запрос на скрипт
Код |
---|
...
this.viewedCounter = {
path: '/bitrix/components/bitrix/catalog.element/ajax.php',
params: {
AJAX: 'Y',
SITE_ID: '',
PRODUCT_ID: 0,
PARENT_ID: 0
}
};
...
|
В этом скрипте Вы и найдёте обновление записей таблицы.