Support Forums - Classified Ads Script Osclass
Osclass plugin support => Osclass Pay Plugin => Topic started 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
-
@gnolino
You can activate it in plugin settings, then is shown via hooks.
-
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?
-
@gnolino
I am not sure if you will be able to achieve that, it works for all or none.
-
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
:)