Support

Find answers, guides, and tutorials to supercharge your content delivery.

Shopware CDN Integration

Updated on January 6, 2023
Shopware CDN Integration

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 1,700 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 Tools Website 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.

Supercharge your content delivery 🚀

Try KeyCDN with a free 14 day trial, no credit card required.

Get started
KeyCDN uses cookies to make its website easier to use. Learn more