*

mwindey

  • *****
  • 468 posts
Item view doesn't count anymore
« on: November 25, 2021, 12:49:44 PM »
Since a couple of weeks item views are not adding views..... if there is 0 views it remains 0 -- 66 views remain 66 views and so on.....
In header.php code to display is correct i think but where is the code located that adds view counts to database located... I thought it is in loop.php but i cannot find it....

Code in header:
Code: [Select]
      <div class="bread-stats views" title="<?php _e('Shows how many times was listing viewed''veronika'); ?>">
        <img src="<?php echo osc_current_web_theme_url(); ?>images/item-stat-views.png"/>
        <div class="block">
          <div class="top"><?php echo osc_item_views(); ?>x</div>
          <div class="bottom"><?php _e('views''veronika'); ?></div>
        </div>
      </div>
    <?php ?>

Marked as best answer by mwindey on November 25, 2021, 01:01:26 PM
*

MB Themes

Re: Item view doesn't count anymore
« Reply #1 on: November 25, 2021, 12:50:52 PM »
@mwindey
Clean cache.
Keep in mind if you are logged-in as admin, no views are added.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mwindey

  • *****
  • 468 posts
Re: Item view doesn't count anymore
« Reply #2 on: November 25, 2021, 01:02:46 PM »
@MB Themes

Cool....A small step for humans, a big progress for my website  :-*
Clearing cdn flush cache zone was enough to fix it..... Thank you!

*

MB Themes

Re: Item view doesn't count anymore
« Reply #3 on: November 25, 2021, 01:06:08 PM »
@mwindey
Welcome ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots