< Back
Print

Export categories

Create Categories in CONTENTSERV

To separate product information maintenance and shop exports, the Shopware 6 Connector utilizes CONTENTSERVs channel system. Each category will be represented by a single CONTENTSERV channel object.

You can find these channel objects here:

 

 

Note, you will have to create a different Channel tree for every different Shopware Sales-channel.
We recommend creating a root Node called “Shopware” or “Online Shop” with sub-nodes for every Sales-channel.

 

 

After you created your root node, its time to add categories. You probably have categories maintained as Pdmarticle objects.
Create a Channel object with the corresponding name, and make it an extension for your category, or use drag and drop to the Channel tree.

You don’t need to create all your categories right now a few will suffice.
When you are finished you should have a Channel tree like this:

 

Categories export configuration

Go back to your station overview, and add a new Job.

 

Name the new Job “categories” or “create categories” and choose the only available datamap.

 

 

Select action “transfer categories” and choose a Root node.
All categories, including and below this node, will be exported.

 

Go back to your station overview, and modify your datamap.

 

Now it is time to import our template.
Click on the Import Button and choose the Shopware 6 Full configuration template.

Confirm the warning, and the template will be imported.
You might need to refresh it.

 

Move to the datamap tab and open the “upsertcategory” section.

This section includes all attributes, which are used to create your Shopware categories.
You can leave id and name untouched for now.

Click the cogwheel inside the row parentId.

Shopware denies the creation of categories if a non-existing parentId is sent. So it has to be disabled when sending the root category. If you are using the version 1.13.5 of the Shopware connector and if you have to root nodes set in the station like so, then this will be controlled automatically, requiring no further input.

Otherwise follow this step.

— Start of old step —

Because of the nature of the CONTENTSERV channel tree we created, even categories that are in the top level of the Shopware Categories tree will have a parent (e.g. Electronics will have the parent Storefront).

We prevent this by skipping the parentId if our parentId would be Storefront.

Enable the condition and set the value to the id of your root node.

Save and close the dialog.

— End of old step —

Disable the row mediaId for now. We will cover uploading images in the next section.

Choose a CONTENTSERV attribute containing the description for your categories, in the categories row.

Save the Datamap.
Remember when we imported those Shopware Settings? The category layouts are one of those settings.

For now, we will export a single layout for all categories. You can change this later.

Click the cogwheel inside the cmsPageId row.

All we need to do is select which layout to use.

Save and close the dialog and save the datamap.
Go back to the overview and select your categories’ job.

You did it!
It is time to start your first export.

Click the Open development editor icon to watch your categories being created.

You will get detailed information about your export.
On the right, you will find any relevant log entries.
Click on any desired section to review your export data.

Now go to your Shopware 6 Backend.
Check if the categories were created.

If they appear, go to your desired sales channel, and set the root node to your new category root.

If everything went according to plan your categories will be available in the front-end.

Was this article helpful?
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents