*

Tango

  • ****
  • 214 posts
Inactive items
« on: January 10, 2022, 03:58:31 PM »
At the moment, the Items List in Osclass Pay, returns also the Inactive items without showing us their actual status.

This poses an issue when a user has many items (Active and Inactive) and he wants to promote some of them, as he might promote one which is Inactive (might have a reason for being inactive and he forgot about it).

In order to fix this, I found a quick solution as it follows:

osclas_pay\user\item.php - line 47
replace
Code: [Select]
<div class="osp-h2"><a href="<?php echo osc_item_url(); ?>"><?php echo osc_highlight(osc_item_title(), 30); ?></a></div>with
Code: [Select]
<div class="osp-h2"><a href="<?php echo osc_item_url(); ?>"><?php echo osc_highlight(osc_item_title(), 30); ?></a> <?php if(osc_item_is_inactive()) { echo '<small><i style="color:red;">(Inactive)</i></small>'; } ?></div>
Result:


Maybe you could add this in the next update.

Thanks!

Marked as best answer by frosticek on January 11, 2022, 03:47:42 PM
*

MB Themes

Re: Inactive items
« Reply #1 on: January 11, 2022, 03:47:39 PM »
@Tango
Thanks for feedback, some kind of label/mark will be added in next plugin update.  :-*
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots