> For the complete documentation index, see [llms.txt](https://landofcoder.gitbook.io/storelocator/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://landofcoder.gitbook.io/storelocator/config-and-usage/run-cron-job-to-import-storelocator-items.md).

# Run cron job to import storelocator items

On new version of the module we added cron job function allow import store locator information, tags, categories into database by csv files.

* You should create 2 folders, and config permission 0777 for them:

**pub/storelocator** : the folder you will input the csv files which you want to import.

**var/storelocator\_imported :** the folder will store the imported csv files.

* You can config enable/disable cron job in admin > Store > Configuration > Landofcoder > Store locator > Scheduled Import Location Settings
* To run cron job task of the module, please run command via SSH terminal:
* **php bin/magento cron:run –group=lof\_storelocator**

Also you can force run the cron job task click on menu item: admin > Landofcoder > Store Locator > **Force Run Cron Job**

Before run cron job, you should add the csv file into the folder “pub/storelocator/”. You can view the sample file at here: [**sample\_storelocator.csv**](https://drive.google.com/file/d/0B7mHap9pY9nOQm96ZW9UZEdTYTg/view?usp=sharing)

To add tag and categories for storelocator item you should add the columns in csv file as this:

**1.Tags:**

*tag\_name* : can use comma to add more tag name

*tag\_description* : can use the char | to add more tag description

*tag\_position*: can use the char | to add more tag position

For example:

**tag\_name,tag\_description,tag\_position**

**“tag name 1,tag name 2,tag name 3″,”tag desc1|tag desc2″,”1|2|3”**

&#x20;

**2.Categories:**

*category\_name* : can use comma to add more category name

*category\_description* : can use the char | to add morecategory description

*category\_position*: can use the char | to add morecategory position

For example:

**category\_name,category\_description,category\_position**

**“category name 1,category name 2,category name 3″,”category desc1|category desc2″,”1|2|3”**

&#x20;

**Note:**

* If you want to import new information for exist store locator item, you should add column “**id**“
* If you want to import store locator for multi store views. You should add the value (store view ids of your site) for the column “**store\_id**“. Use comma for multi store view, For example: **2,3,4**
