Originally Posted by
jwaller
I'd like to NOT have my access to the shopping cart skew my numbers for product views. I tried dropping an IP address check into the counters.php but that didn't produce the results I was hoping.
You'll need to modify /includes/modules/pages/product_info/main_template_vars.php and put an if() statement around the bit that says....
PHP Code:
$sql = "update " . TABLE_PRODUCTS_DESCRIPTION . "
set products_viewed = products_viewed+1
where products_id = '" . (int)$_GET['products_id'] . "'
and language_id = '" . (int)$_SESSION['languages_id'] . "'";
$res = $db->Execute($sql);
If you use other product types then you will need to do the same for the other product_info pages as well.
Note that the product view stats are not very accurate so be careful basing decisions on them.
Regards,
Christian.
Bookmarks