Support Forums - Classified Ads Script Osclass

Osclass plugin support => Osclass Pay Plugin => Topic started by: webcity on March 19, 2024, 10:43:05 AM

Title: Auto-Republish show tag on category and item page
Post by: webcity 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
Title: Re: Auto-Republish show tag on category and item page
Post by: MB Themes 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).