Jump to content

Cron Job for Expired Bids


ProSkyDesign

Recommended Posts

  • Moderators

Hi everybody in app.config.php I edited the Close bids after expire function but it doesn't work :(

Anyone can help me?? I think I need to run a cron Job to get it works but I don't know how can I do it.

# Whether to close any bids after a certain amount of time
Config::Set('CLOSE_BIDS_AFTER_EXPIRE', true);
Config::Set('BID_EXPIRE_TIME', '1'); # How many hours to hold bids for
Link to comment
Share on other sites

  • Moderators

Copy and paste those codes into your local.config.php and set up a cron job on your server. Alternatively, u can use deleteexpiredbids () function in your frontpage_main.php to delete them once your main page is opened.

Link to comment
Share on other sites

  • Moderators
8 hours ago, Parkho said:

Copy and paste those codes into your local.config.php and set up a cron job on your server. Alternatively, u can use deleteexpiredbids () function in your frontpage_main.php to delete them once your main page is opened.

Hi! I don't know how can I run a cron job, do you have any tutorial?

thanks for your time!

Link to comment
Share on other sites

  • Moderators
8 hours ago, Parkho said:

Copy and paste those codes into your local.config.php and set up a cron job on your server. Alternatively, u can use deleteexpiredbids () function in your frontpage_main.php to delete them once your main page is opened.

I found how to add a cron job in my server, but now what is the command to add to the cron job?

Edited by joooseb
Link to comment
Share on other sites

10 hours ago, joooseb said:

I found how to add a cron job in my server, but now what is the command to add to the cron job?

Everyone has a different hosting environment, however I'll take a guess that you're using some version of CPanel. 

The command you need to use is located at YourphpVMSDirectory/admin/index.php/maintenance/options. 

Here is a tutorial for cPanel: https://documentation.cpanel.net/display/ALD/Configure+cPanel+Cron+Jobs

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...