Shopware CDN Integration

shopware cdn

The Shopware eCommerce system started in 2004 in Germany as a modular CMS. There is both an open-source as well as a commercial version available. More than 1700 plugins are available for Shopware and about 50 interfaces ensure compatibility with other systems and tools. Shopware is based on PHP as well as MySQL and is related to the Zend Framework.

This tutorial will explain in further detail how to complete a Shopware CDN integration with KeyCDN.

How to Complete a Shopware CDN Integration

  1. Create a pull zone before you start with the Shopware CDN integration.
  2. Open config.php of your Shopware setup. :
    1. Go to the following section:
      define('....
      'password' => '*******',
          'dbname' => 'dbname',
        ),
      'cdn' => [
              'backend' => 'local',
              'adapters' => [
                  'local' => [
                      'type' => 'local',
                      'mediaUrl' => 'http://cdn.yourdomain.com/',
                      'path' => realpath(__DIR__ . '/')
                  ]
              ]
          ],');
    2. Update the following variables:
      • ‘mediaUrl’ –> Either use a zone alias or the zone URL you get in the KeyCDN dashboard.
      • ‘path’ –> Adjust the path according to your setup. In most cases it’s the path as shown above in the snippet.
  3. Verify the setup. Check the HTML to make sure the assets have been rewritten correctly. The KeyCDN Site Speed Test lets you easily check if the assets are loaded from the correct domain, as well as examine web performance in more detail.

That’s it! You’re done with the Shopware CDN integration.

Benefits of using a CDN with Shopware

Now that your Shopware CDN integration is complete, your website will receive a boost in performance and a reduction in latency. This is especially important for eCommerce sites as every additional second that a website takes to load could result in major revenue losses. There also exists many additional benefits to users who accelerate their Shopware site with KeyCDN:

For a full list of features that KeyCDN offers, check out our features page.

2 Comments

  1. Steffen

    doesnt work for us with keycdn- all images are not loaded.
    another cdn service is working flawlessly. plz help us – i dont wanna use the other service….

Leave A Comment?