How to setup a task scheduler for prestashop-thirtybees websiteby Czarina R. Content Manager and SEO
How to run cron jobs with Cron tasks manager module?
To start running your prestashop-thirtybees task scheduler, login to your back office dashboard. Go to Modules and Services. Search the word "cron". You should be able to see a screen similar to the image below.
Click on the configuration and start scheduling your tasks. First off, copy the url like the one below. If you do not see the url, don't worry about it. We will get to it more, later.
Click on the "+" icon to the right side of the page to create your first task.
At the Add new task page, give your task a name or description to distinguish it from your other tasks, then paste the url link you copied in the previous page. Leave the other value untouched. This should give you more than enough functionalities for your first cron job task.
Click Save to save what you have done so far. Your task should appear at the bottom of the page under "Cron Tasks", like so.
What are the elements to update when you run prestashop-thirtybees task scheduler?
There are four areas in your ecommerce store that you need to automate updates. The sitemap module (important), the product search (important), the Currency, and the Layered navigation module. Let's go through them one by one.
#1. Creating a task scheduler to automatically update the website sitemap.
The Sitemap module comes with a cron job functionality. But we want to manage our cron jobs on a single interface. So, what we will do is copy the urls to the Cron Job Manager modules. To do this and start running a cron job and automatically update and build your sitemap, go to Modules and Services, the search for sitemap. Click configure.
Scroll down to the bottom, and copy the url under the number 2 options "Automatically". Go back to the Cron Job manager configuration, and add another tasks.
Give your task a description, i gave mine "Sitemap auto generate". Paste in the link copies from the sitemap module configure page. Give it the necessary task frequency as you like. Mine is set above, like so.
Save your work and refresh your frontpage to see if there are any errors on the page.
#2. To run cron job on Currencies, go to Localization >> Currencies.
Scroll down to the bottom of the page and you will see the link. Copy it then follow the same procedure we did when we created the task schedule for sitemap, like so.
#3. For the Product Search cron job. Go to Preferences, then Search.
Look for "Indexing" tab. You should see a "You can set a cron job that will rebuild your index using the following URL" message. Copy the url, then go back to the Cron Job Manager, then create a new task schedule. Run the same process as you did with creating the sitemap task scheduler.
You Task Scheduler tab should look like the image below:
#4. The last item we need to run an automated task scheduler is the layered navigation module.
To implement a cron job on the layered navigation module is easy. It is similar to how we did on creating a task scheduler for sitemap. Go to the Modules and Services menu again, search the layered navigation module, then, click configure.
In the layered navigation module configure page, you will see three links that you need to insert to your Cron Job Manager. Copy them, like so.
You will need to create a task for each of these url link. One for price index, one for attribute index, and another for URL index. Follow the same procedure we did when we created the task scheduler for sitemap. Once done, your Tasks Tab should look like the screenshot below, like so.
At this point, your task is done. Congratulations! You successfully setup your automated task scheduler for your webshop!
Setting an automatically scheduled task will not only be practical but will also prevent missing the supposed action to take on time.
Cron Job is a great way to manage such tasks either as a system administrator, shop manager/owner or any professions like a web developer. The good thing is that, running a cron job is not just for seasoned IT vets anymore. You can easily do it with the handy Cron Job Manager for prestashop-thirtybees. All you need to do is to use install it, and enter in the cron job urls in the right place.
Let us know if this tutorial is useful in the comment section. Don't forget to share to friends. Thanks!
Created on Nov 5th 2019 02:57. Viewed 300 times.