*

Yuri

  • ****
  • 106 posts
  • Yriu
Add a line - Viewed by 0 people
« on: January 17, 2024, 09:30:35 PM »
In the sigma template, I noticed that there was no line in the ad - 0 people viewed it. I need a line like this.
« Last Edit: January 17, 2024, 10:06:43 PM by Yuri »
The world is not without good people.

*

Yuri

  • ****
  • 106 posts
  • Yriu
Re: Add a line - Viewed by 0 people
« Reply #1 on: January 18, 2024, 01:37:13 AM »
The issue was resolved independently!
If you want to see the view counter line. Add the code anywhere - oc-content/themes/sigma/item.php

<p class="view_number">
                            <?php _e('Viewed', 'sigma'); ?>:
                            <strong><?php echo ItemStats::newInstance()->getViews(osc_item_id()); ?></strong>
                        </p>

The world is not without good people.

*

MB Themes

Re: Add a line - Viewed by 0 people
« Reply #2 on: January 18, 2024, 10:26:52 AM »
Code: [Select]
<?php echo osc_item_views(); ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Yuri

  • ****
  • 106 posts
  • Yriu
Re: Add a line - Viewed by 0 people
« Reply #3 on: January 18, 2024, 10:54:57 AM »
Unfortunately this line is not displayed, it shows the number. But I definitely needed a name and quantity. I gave an example on the screenshot.
The world is not without good people.