*

webcity

  • *****
  • 252 posts
Auto-Republish show tag on category and item page
« on: March 19, 2024, 10:43:05 AM »
Hi,

I would like to show a tag on the category and item page for when a customer pays to use the Osclass pay Auto-Republish option.

At the moment when a customer pays for a Premium listing it shows a Premium tag in the category and item page. It would encourage more customers to purchase the Auto-Republish option if they could see others using it.

Could someone recommend the code to show the tag on the Epsilon theme?

Many thanks

*

MB Themes

Re: Auto-Republish show tag on category and item page
« Reply #1 on: March 19, 2024, 11:11:15 AM »
This could work:
Code: [Select]
<?php if(osp_fee_is_paid(OSP_TYPE_REPUBLISHosc_item_id())) { ?>
  <span>custom label</span>
<?php ?>

Note that it's possible just in case republish is active (not yet finished).
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots