How to integrate the CMP into a Shopware Shop?

Please note: The below description is only valid for the manual blocking code. If you want to use automatic code blocking, please ensure that the CMP-Code is inserted directly after the <head> element of your website code.

In order to intergate the CMP into your Shopware Shop system please follow these steps:

Automatic Integration via Shopware PlugIn

This plugin is designe for Shopware Version 8

  1. Login to your Shopware System and click on Settings >Plugin Manager

  2. Download the ConsentManager plugin file here.
  3. Click on Menu > Install > Upload plugin and select the zip file you downloaded

  4. Click on the + (Plus) icon next to the Consent Manager plugin

  5. Insert your Consent Manager ID (can be found in your Login under Menu > Get Code) and press Activate

Manuall integration

  1. You will need to edit the *.tpl files of your current theme. Therefore login into your server via FTP and locate the template directory and the template that you are using. Usually this can be found at {root}/themes/[template-name]/frontend/index/header.tpl
  2. In header.tpl search for <body
  3. After the <body .... > you will find a {/block}, insert the CMP code after this  {/block} enclosed in {literal} and {/literal} :

  4. Save the file.

Alternative integration option

As an alternative way you can use these steps:

  1. Create a new child theme from your existing theme
  2. Create a file /themes/[your-child-theme]/frontend/index/index.tpl
  3. Insert the following code into the file:
{extends file="parent:frontend/index/index.tpl"}
{block name='frontend_index_after_body' append}
{literal} ... CMP-Code ... {/literal}
Back to top