Coder Social home page Coder Social logo

sition / simklthemesettingexport Goto Github PK

View Code? Open in Web Editor NEW

This project forked from simkli/simklthemesettingexport

0.0 1.0 0.0 39 KB

This plugin allows you to import or export theme configurations in Shopware 5.

License: GNU Affero General Public License v3.0

PHP 71.92% JavaScript 28.08%

simklthemesettingexport's Introduction

Theme Config Im-/Export Plugin

This plugin allows you to import or export theme configurations in Shopware 5.

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

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
  1. 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

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 <theme> <shop> $ ./bin/console sw:theme:import:configuration <theme> <shop> 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:

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.

simklthemesettingexport's People

Contributors

simkli avatar

Watchers

Michel  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.