Moderators ProSkyDesign Posted March 9, 2017 Moderators Report Share Posted March 9, 2017 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 Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted March 9, 2017 Moderators Report Share Posted March 9, 2017 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. Quote Link to comment Share on other sites More sharing options...
Moderators ProSkyDesign Posted March 9, 2017 Author Moderators Report Share Posted March 9, 2017 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! Quote Link to comment Share on other sites More sharing options...
Moderators ProSkyDesign Posted March 9, 2017 Author Moderators Report Share Posted March 9, 2017 (edited) 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 March 9, 2017 by joooseb Quote Link to comment Share on other sites More sharing options...
t_bergman Posted March 9, 2017 Report Share Posted March 9, 2017 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.