*

oneloveb

  • ****
  • 112 posts
Items count on user dashboard
« on: March 18, 2021, 02:21:54 PM »
Hi

The number of user Items not display in the user dashboard and there in no Active, Validate and Inactive Items in the User dashboard,

How can I display the Items count of user in dashboard?

Thanks

*

MB Themes

Re: Items count on user dashboard
« Reply #1 on: March 18, 2021, 02:39:42 PM »
@oneloveb
Such functionalities depends on theme and may not be available in particular themes, as it's purely theme integration, it's not provided by osclass itself to have such pages or counts.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oneloveb

  • ****
  • 112 posts
Re: Items count on user dashboard
« Reply #2 on: March 19, 2021, 10:57:20 AM »
Hello

I Used this code

<span class="count"><?php echo Item::newInstance()->countItemTypesByUserID(osc_logged_user_id(), 'active'); ?></span>

Its work but the count number not in the same box as my Listing, So please how can I make it the box see attachment

2, How can I hide the account limit box for the premium user? see attachment

Thanks

*

MB Themes

Re: Items count on user dashboard
« Reply #3 on: March 19, 2021, 12:36:38 PM »
@oneloveb
1) edit user-items.php
2) best way is via CSS, add conditional css into i.e. footer.php that will be executed for premium users
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots