Support Forums - Classified Ads Script Osclass

Osclass plugin support => Osclass Pay Plugin => Topic started by: gnolino on March 19, 2021, 10:10:28 AM

Title: Pay per Publish
Post by: gnolino on March 19, 2021, 10:10:28 AM
Hi,
in function.php is there the code for the Pay per Publish option?
Otherwise noboby knows where I can find it?
I need to check if admin put it on active
Thanks for your attention
Title: Re: Pay per Publish
Post by: MB Themes on March 19, 2021, 10:30:53 AM
@gnolino
You can activate it in plugin settings, then is shown via hooks.
Title: Re: Pay per Publish
Post by: gnolino on March 19, 2021, 12:50:47 PM
Hallo,
I know, but my I wish that members don't pay for submit an ad.
So I 'm searching function (or hook) where is it for insert a condition about it.
Do you know I could obtain this result?
Title: Re: Pay per Publish
Post by: MB Themes on March 19, 2021, 01:34:30 PM
@gnolino
I am not sure if you will be able to achieve that, it works for all or none.
Title: Re: Pay per Publish
Post by: gnolino on March 19, 2021, 01:51:56 PM
There is a $group variable and it can be used to switch many things
I tried to break "osc_add_hook('item_form', 'osp_item_publish_form')" upload but I think I have to search into transaction the solve of my issue.
  // ITEM FEES
 if($type == OSP_TYPE_PUBLISH
in function.php
if you delete this string the ad can be publish!
I'm working here...

(($type == OSP_TYPE_PUBLISH && $nGroup < 1 )
Big power "IF" condition!
This work!
I'm to achieve it
 :)