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<div class="osp-h2"><a href="<?php echo osc_item_url(); ?>"><?php echo osc_highlight(osc_item_title(), 30); ?></a></div>
with<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!