Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Posts
    96
    Plugin Contributions
    0

    Default "Products Viewed" stats have stopped updating

    Howdy,

    A client contacted us today and let us know that the "products viewed stats have stopped updating. I went to the stats page and clicked one of the products on the page. On stats page refresh, no numbers updated.

    Either it's been broken or the stats don't update in real time.

    If it's broken, could someone tell me where this code is usually located?

    If it's not immediately updated, that would be nice to know too ;)

    thanks,
    json

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: "Products Viewed" stats have stopped updating

    They are updated in real time.
    /includes/modules/pages/product_info/main_template_vars.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);
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. can i have products of types "Purchase" and "View only"...need both
    By aniketanyee in forum Customization from the Admin
    Replies: 2
    Last Post: 24 Nov 2012, 11:06 AM
  2. SQL Error in "Products Viewed" in v1.3.9f
    By NFM in forum Upgrading from 1.3.x to 1.3.9
    Replies: 9
    Last Post: 19 Aug 2010, 06:37 PM
  3. Products Viewed stats - can I exclude my own hits?
    By sjemms in forum Basic Configuration
    Replies: 3
    Last Post: 9 Dec 2009, 12:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg