Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Shopware 4 Repository

Merge pull request #964 in SW/shopware from bugfix/master/sw-7922-fix…

…-string-offset-issue to master

* commit 'f3977036f7c8456c84e417ff59a51e70d7fc4630':
  SW-7922 fix string offset
latest commit 52ac55b881
Benjamin Cremer bcremer authored
Octocat-spinner-32 _sql SW-7090 - Fix ESD download migration April 01, 2014
Octocat-spinner-32 bin SW-7451 - Move common autoloader setup into own file. November 28, 2013
Octocat-spinner-32 build SW-6629 - Split snippet commands. Better error reporting. December 16, 2013
Octocat-spinner-32 cache SW-7570 - Move MPDF temp dirs into cache directory. January 07, 2014
Octocat-spinner-32 engine SW-7922 fix string offset April 03, 2014
Octocat-spinner-32 files #NTR - Add missing directories January 14, 2013
Octocat-spinner-32 install SW-8022 - Added check for the HTTP_ACCEPT_LANGUAGE index in the globa… February 25, 2014
Octocat-spinner-32 logs SW-5369 - Fix Copyright header and CS. December 16, 2013
Octocat-spinner-32 media #NTR Force empty directories to keep September 12, 2012
Octocat-spinner-32 snippets Merge pull request #872 in SW/shopware from bugfix/master/sw-7734-add… March 05, 2014
Octocat-spinner-32 templates SW-7922 Code Style fixes April 03, 2014
Octocat-spinner-32 tests SW-8275 -removed commented code April 03, 2014
Octocat-spinner-32 .editorconfig NTR - Build-Script housekeeping and documentation update July 19, 2013
Octocat-spinner-32 .gitignore SW-7191 - Create default log directory. January 17, 2014
Octocat-spinner-32 .htaccess SW-7438 - Add ssl support for the shopware backend January 10, 2014
Octocat-spinner-32 .travis.yml Use composer provided phpunit-binary. October 25, 2013
Octocat-spinner-32 SW-7570 - Move MPDF temp dirs into cache directory. January 07, 2014
Octocat-spinner-32 SW-8216 add pager to downloads April 01, 2014
Octocat-spinner-32 autoload.php SW-7451 - Move common autoloader setup into own file. November 28, 2013
Octocat-spinner-32 composer.json SW-6954 - Add userland implementation of array_column. December 05, 2013
Octocat-spinner-32 composer.lock SW-6954 - Add userland implementation of array_column. December 05, 2013
Octocat-spinner-32 config.php.dist #NTR - Add sane gitattributes December 27, 2012
Octocat-spinner-32 config_staging.php SW-7470 - Consolidate smarty cache and compile directory. November 29, 2013
Octocat-spinner-32 eula.txt #NTR - Add sane gitattributes December 27, 2012
Octocat-spinner-32 eula_en.txt #NTR - Add sane gitattributes December 27, 2012
Octocat-spinner-32 license.txt #NTR - Add sane gitattributes December 27, 2012
Octocat-spinner-32 shopware.php SW-6629 - Improve snippet handling December 16, 2013

Shopware 4


Shopware 4 is the next generation of open source e-commerce software made in Germany. Based on bleeding edge technologies like Symfony 2, Doctrine 2 & Zend Framework Shopware comes as the perfect platform for your next eCommerce project. Furthermore Shopware 4 provides an event-driven plugin-system and an advanced hook system, which unleashes the truth power and gives you the ability to customize every part of it.

Visit the forum at

Shopware Server Requirements

  • PHP 5.3.2 or above
  • PHP's cURL and GD library
  • An Apache web server
  • Apache's mod_rewrite module
  • MySQL 5.1.0 or above

Installation via Git

Follow the instruction below if you want to install Shopware 4 using Git.

1.) Clone the git repository to the desired location using:

git clone

In case you wish to contribute to Shopware, fork the master tree rather than cloning it and create a pull request via Github. For further information please visit the section "Get involved" in this document.

2.) Set the correct directory permissions:

chmod 755 config.php
chmod 755 -R cache
chmod 755 -R files
chmod 755 -R media
chmod 755 -R engine/Shopware/Plugins/Community

Depending on your server configuration it might be neccesarry to set whole write permissions (777) to the files and folders above. Also you can start testing with lower permissions due to security reasons (644 for example), if your php-process can write to those files.

3.) An Ant Buildfile is used to set up the configuration and database connection:

cd build/
ant configure
ant build-config build-composer-install build-database

4.) Download the demo data files and extract them:

Go to the checkout directory and download the demo data files:

wget -O

Unzip the files to the checkout directory:


You can now access your shop

Backend Login: demo/demo

Get involved

Shopware is available under dual license (AGPL v3 and proprietary license). If you want to contribute code (features or bugfixes) you have to create a pull request that considers a valid license information. You can either contribute your code under New BSD or MIT license.

If you want to contribute to the backend part of Shopware and you got in touch with ExtJS-based code these parts must be licensed under GPL V3, this is due to the license terms of Sencha Inc.

If you are not sure, how to contribute code under right license and right way you can contact us under Further you can conclude a contribution aggreement with us to get more safety around your code submits.

Start hacking

To start contributing, just fork the repository and clone your fork to your local machine:

git clone[YOUR USERNAME]/shopware-4.git

After having done this, configure the upstream remote:

cd shopware-4
git remote add upstream git://
git config branch.master.remote upstream

To keep your master up-to-date:

git checkout master
git pull --rebase
php build/ApplyDeltas.php

Checkout a new topic-branch and you're ready to start hacking and contributing to Shopware:

git checkout -b feature/your-cool-feature

If you're done hacking, filling bugs or building fancy new features push your changes to your forked repo:

git push origin feature/your-cool-feature

... and send us a pull request with your changes. We'll verify the pull request and merge it with the master Branch.

Running Tests


For mosts tests a configured database connection is required.

Running the tests

The tests are located in the tests/Shopware/ directory You can run the entire test suite with the following command:

vendor/bin/phpunit -c tests/Shopware

If you want to test a single component, add its path after the phpunit command, e.g.:

vendor/bin/phpunit -c tests/Shopware tests/Shopware/Tests/Components/Api/

Coding standards

All contributions should follow the PSR-1 and PSR-2 coding standards.

How to report bugs / feature requests?

We've always had a sympathetic ear for our community, so please feel free to submit tickets with bug reports or feature requests. In order to have one place to go, we've decided to close the GitHub issue tracker in favor of our Jira issue tracker, which is directly connected to our development division.

Copying / License

Shopware is distributed under a dual license (AGPL v3 and proprietary license). You can find the whole license text in the license.txt file.


The changelog and all available commits are located under

Further reading

Something went wrong with that request. Please try again.