Advertisement:

Author Topic: Random Issues testing plug in  (Read 1025 times)

Sudo

  • Newbie
  • *
  • Posts: 48
Random Issues testing plug in
« 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
« Last Edit: February 24, 2017, 10:12:18 pm by onebackpage »

Sudo

  • Newbie
  • *
  • Posts: 48
Re: Random Issues testing plug in
« Reply #1 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.
« Last Edit: February 25, 2017, 05:48:15 am by onebackpage »

Sudo

  • Newbie
  • *
  • Posts: 48
Re: Random Issues testing plug in
« Reply #2 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!!!

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: Random Issues testing plug in
« Reply #3 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

Sudo

  • Newbie
  • *
  • Posts: 48
Re: Random Issues testing plug in
« Reply #4 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.

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: Random Issues testing plug in
« Reply #5 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

Sudo

  • Newbie
  • *
  • Posts: 48
Re: Random Issues testing plug in
« Reply #6 on: March 05, 2017, 03:21:03 am »
Sent in Ticket, thanks in advance!  You guys r are the best!!!