Info
Content

How to integrate the CMP into a Shopware Shop?

-- Shopware versions 6.x --

Please note: Using the the automatic blocking code can cause issues on your website.

For all Shopware installations starting version 6.3, we have an official plugin in the Shopware store:

  1. Get the plugin for free in the official Shopware store:
    Shopware consentmanager plugin [self hostet & Cloud]
  2. Get your CMP Code-ID from your consentmanager account:

  3. Insert CMP Code--ID into Shopware backend:

  4. Choose your blocking mode.
  5. Verify if your CMP is working with visiting your website at:
    https://www.yourwebsite.com/?cmpscreen
  6. Done :)

Shopware Cloud: For Shopware Cloud, please ensure that you deactivated the Shopware internal Cookie Solution here (see next screenshot):

 

-- Shopware versions 5.x --

Automatic Integration via Shopware PlugIn

This plugin is designed for Shopware Version 5.6.x and 5.7.x. For other versions, please insert the code manually (see below).

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



  2. - Download the plugin for 5.6.x here
    - Download the plugin for 5.7.x 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 CMP-ID (can be found in your account at consentmanager.net Menu > CMPs > Get Code)
    - Choose if you want to activate automatic blocking. If you do not activate automatic blocking, manual blocking will be activated (please see help section)
    - Activate plugin

Please note: Our plugin deactivates the ShopWare internal Cookie Management System. Please make sure that none of your other plugins (e.g. Google Tag Manager integration) are dependend on that / that this connection to the Shopware Cookie Management is deactivated.

Manual 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 the file /themes/[your-child-theme]/frontend/index/index.tpl
  3. Add the following code in your file:
{extends file="parent:frontend/index/index.tpl"}
{$smarty.block.parent}
{block name='frontend_index_after_body' append}
{literal} ... CMP-Code ... {/literal}
{/block}
Back to top