*

Andrey

  • ****
  • 157 posts
Veronika do not work counters
« on: November 17, 2018, 10:35:22 AM »
Help, why in the personal account of the user "Veronika" counters do not work?

                <div class="tr1" title="<?php _e('Normal views', 'veronika'); ?>"><?php echo $stats['views'] <> '' ? $stats['views'] : 0; ?>x <?php _e('views', 'veronika'); ?></div>
                <div class="tr1" title="<?php _e('Premium views - listing shown as premium', 'veronika'); ?>"><?php echo $stats['premium_views'] <> '' ? $stats['premium_views'] : 0; ?>x <?php _e('p. views', 'veronika'); ?></div>
                <div class="tr1" title="<?php _e('Phone clicks - people that shown contact phone', 'veronika'); ?>"><?php echo $stats['phone_clicks'] <> '' ? $stats['phone_clicks'] : 0; ?>x <?php _e('phone', 'veronika'); ?></div>

Although each ad has a lot of views. How to fix it?

*

MB Themes

Re: Veronika do not work counters
« Reply #1 on: November 17, 2018, 10:50:37 AM »
Please test it on original theme files as it works ok on demo
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Andrey

  • ****
  • 157 posts
Re: Veronika do not work counters
« Reply #2 on: November 17, 2018, 11:22:12 AM »
With what tool?

*

MB Themes

Re: Veronika do not work counters
« Reply #3 on: November 17, 2018, 11:46:55 AM »
What tool?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Andrey

  • ****
  • 157 posts
Re: Veronika do not work counters
« Reply #4 on: November 18, 2018, 11:03:58 AM »
Hello, I changed the code
<div class="tr1" title="<?php _e('Normal views', 'veronika'); ?>"><?php echo $stats['views'] <> '' ? $stats['views'] : 0; ?>x <?php _e('views', 'veronika'); ?></div>
on
<div class="tr1" title="<?php _e('Normal views', 'veronika'); ?>"><?php echo osc_item_views(); ?> <?php _e('views', 'veronika') . 'x' ; ?></div>
and it works
------------------------------
and here is the premium code
<div class="tr1" title="<?php _e('Premium views - listing shown as premium', 'veronika'); ?>"><?php echo $stats['premium_views'] <> '' ? $stats['premium_views'] : 0; ?>x <?php _e('p. views', 'veronika'); ?></div>
on
<div class="tr1" title="<?php _e('Premium views - listing shown as premium', 'veronika'); ?>"><?php echo osc_premium_views() . 'x' ; ?> <?php _e('p. views', 'veronika'); ?></div>
does not work

Please, what to do to make Premium counter work?

*

MB Themes

Re: Veronika do not work counters
« Reply #5 on: November 18, 2018, 12:48:09 PM »
It is for premium loop, not standard item loop. Not following your idea here
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots