Osclass forums

Support forums => Plugins => Plugin Payments => Topic started by: Sudo on February 24, 2017, 10:09:12 pm

Title: Random Issues testing plug in
Post by: Sudo on February 24, 2017, 10:09:12 pm
Hi, wanted to see if you had some insight on a few things:
1) When I try to move  a listing to the 'top', I get - It's too soon to move your listing to the top - when I click move to top.  Ad was posted 2 days ago.
2) When a user marks as premium and pays, it sets the expiration date in the osei_t_item table to: 9999-12-31 23:59:59, does this get updated
     by the plugin after premium or highlighted expires?
Thanks in advance!
-Robert
Title: Re: Random Issues testing plug in
Post by: Sudo on February 25, 2017, 05:41:47 am
Think problem is in ajax.php:
 if (time()-strtotime($item['dt_pub_date'])<(7*24*3600)) {
        echo json_encode(array('error' => 1, 'msg' => __('It\'s too soon to move your listing to the top', 'payment_pro')));
        die;

I changed to:
/*    if (time()-strtotime($item['dt_pub_date'])<(7*24*3600)) {
        echo json_encode(array('error' => 1, 'msg' => __('It\'s too soon to move your listing to the top', 'payment_pro')));
        die;
    }
*/

it seems to work, but user can move to top whenever they want, not limit set in admin.
Title: Re: Random Issues testing plug in
Post by: Sudo on March 03, 2017, 02:33:58 am
Any update on this?  Would like to un-comment the code that makes a user wait before he can top post.

Thanks!!!
Title: Re: Random Issues testing plug in
Post by: _CONEJO on March 03, 2017, 09:40:39 am
Update to latest version of the plugin  payments pro (3.3.6) the time to wait is configurable from the admin panel.

Regards
Title: Re: Random Issues testing plug in
Post by: Sudo on March 04, 2017, 03:53:38 am
I am running 3.3.6.  When I config in admin panel for 1-hour, even after 10 hours, when you try to move to top, it says too early to move to top.  That's why I commented out the code, to allow users to top post.
Title: Re: Random Issues testing plug in
Post by: _CONEJO on March 04, 2017, 10:13:55 am
Then, please contact us through the market to be able to fix your issue here h : ttps://market.osclass.org/plugins/payments/osclass-payments-pro_203

thanks
Title: Re: Random Issues testing plug in
Post by: Sudo on March 05, 2017, 03:21:03 am
Sent in Ticket, thanks in advance!  You guys r are the best!!!