Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simkli/SimklThemeSettingExport
This plugin allows you to import or export theme configurations in Shopware 5.
https://github.com/simkli/SimklThemeSettingExport
Last synced: 3 months ago
JSON representation
This plugin allows you to import or export theme configurations in Shopware 5.
- Host: GitHub
- URL: https://github.com/simkli/SimklThemeSettingExport
- Owner: simkli
- License: agpl-3.0
- Created: 2015-12-28T14:49:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-13T13:08:25.000Z (almost 6 years ago)
- Last Synced: 2024-04-18T18:56:15.377Z (7 months ago)
- Language: PHP
- Homepage:
- Size: 39.1 KB
- Stars: 32
- Watchers: 5
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-shopware - Theme Settings Export - Import and export of theme settings to transfer settings between installations. (Development Plugins)
README
# Theme Config Im-/Export Plugin
This plugin allows you to import or export theme configurations in [Shopware 5](https://github.com/shopware/shopware).## Installation
The easiest way to install this plugin is by downloading the latest release. You can upload the .zip file in the Shopware Plugin Manager. ( Configuration > Plugin Manager > Installed > Upload Plugin )###### [Downloads](https://github.com/simkli/SimklThemeSettingExport/releases)
### Commandline
1) Clone this repository into the `/engine/Shopware/Plugins/Community/Backend` directory using the following command:
```
git clone https://github.com/simkli/SimklThemeSettingExport.git
```
2) Log in to your Shopware backend and activate the plugin in the Shopware Plugin Manager.## Usage
### Shopware Backend
This plugins extends the Shopware Theme Manager and allows you to export and import
configuration of themes.
![Image](http://i.imgur.com/YVy4qhQ.jpg)### Via Commandline
Using the Shopware CLI you can easily import or export configurations. This can be useful
for deployment. Following commands are available:
`$ ./bin/console sw:theme:export:configuration `
`$ ./bin/console sw:theme:import:configuration `
You can use the ID or name of the shop/theme as argument.
#### Example Import
`$ ./bin/console sw:theme:import:configuration Responsive English < my_config.theme`### For Developers
If you're plaing on releasing a theme you can use this plugin to import a example
configuration for your customers. For example in your plugin's bootstrap:```php
if ($this->assertRequiredPluginsPresent(['SimklThemeSettingExport']) {
$service = $this->get('simklthemeimportexport.theme_import_export_service');
$service->setThemeSettingsArray($yourThemeModel, $shop, [
'brand-primary' => '#FFF',
'brand-secondary' => '#000'
// ...
]);
}
```## License
This plugin is distributed under the GNU Affero General Public License v3.