Creating a data export with JTL-Shop 5 for Gunfinder
Here you'll learn how to easily create a product data export for Gunfinder using JTL-Shop 5. We'll then make sure your products can be found on Gunfinder.
Creating a product export with JTL-Shop 5 is very quick and usually only takes a few minutes. In the following steps, we'll guide you through the process step by step.
You can find an overview of all guides in our Gunfinder Datafeed article.
First, please open the administration interface of your JTL-Shop.
Create Export Format
First, we need to create a new export format.
To do this, please click on Export in the left main menu of the administration interface, then click on Further Formats.
On the page that follows, please click on Create New Export Format.
Clicking this will take you to the form for creating the format. A few settings are required here. Please fill in the fields highlighted in red in the upper section of the form exactly as shown in the screenshot:
Once you're done with that, please scroll all the way down (ignore the middle section) and make the following adjustments highlighted in red:
Once you're done with that, we'll turn our attention to the middle section of the form. The remaining fields to fill in are Header, Export Template & Footer.
Please enter the respective code into the fields exactly as specified below. It's best to simply select and copy the code, then paste it in — that way as little as possible can go wrong.
Header
[
Export Template
{assign var="tags" value=' > '|explode:$Artikel->Kategoriepfad}
{assign var=availability value="out-of-stock"}
{if $Artikel->cLagerBeachten == 'N' || $Artikel->fLagerbestand > 0}{assign var=availability value="in-stock"}{/if}
{
"id": "{$Artikel->cArtNr}",
"type": "buynow",
"brand": "{$Artikel->cHersteller}",
"title": "{$Artikel->cName}",
"description": "{$Artikel->cBeschreibung|strip_tags}",
"condition": "new",
"availability": "{$availability}",
"pictures": [
{foreach name=images from=$Artikel->Bilder item=image}
"{$URL_SHOP}/{$image->cPfadGross}"
{if !$smarty.foreach.images.last},{/if}
{/foreach}
]
"tags": [
{foreach name=tags from=$tags item=tag}
"{$tag}"
{if !$smarty.foreach.tags.last},{/if}
{/foreach}
],
"price": {$Artikel->fVKBrutto},
"oldPrice": {$Artikel->salePrice},
"url": "{$Artikel->cDeeplink}"
}
{if !$smarty.foreach.artikel.last},{/if}
Footer
]
Have you entered everything? Then please save the export format.
Start Export
To ensure the export runs regularly, we'll now set up an automatic export in the final step. To do this, please click on Export Manager under Export in the left main menu.
Next, please click on Create New Task on the right.
In the form that follows, you only need to change one thing: select Gunfinder as the Export Format.
Once you've done that, you can save the task and will then be taken back to the overview of all exports.
So that we already have some data to work with, you need to run the export manually once. To do this, please check the box next to Gunfinder and then click Trigger Cron Manually.
And that's all there is to it.
The URL to your datafeed is made up as follows: the URL of your shop + /export/gunfinder.json
For example: https://waffen-meier-shop.de/export/gunfinder.json
Finally, please send us the URL by email.







