Skip to content

Commit

Permalink
Prepare plugin for github
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas Gödde authored and mitelg committed Feb 24, 2017
1 parent b1916af commit df2ff04
Show file tree
Hide file tree
Showing 26 changed files with 158 additions and 356 deletions.
24 changes: 4 additions & 20 deletions Bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
<?php

/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* permission and of our proprietary license can be found at and
* in the LICENSE file you have received along with this program.
/*
* (c) shopware AG <info@shopware.com>
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* "Shopware" is a registered trademark of shopware AG.
* The licensing of the program under the AGPLv3 does not imply a
* trademark license. Therefore any rights, title and interest in
* our trademarks remain entirely with us.
*/

use Shopware\Models\Config\Element;
Expand Down
23 changes: 4 additions & 19 deletions Bundle/SearchBundle/SortProductSearch.php
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
<?php
/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* permission and of our proprietary license can be found at and
* in the LICENSE file you have received along with this program.
/*
* (c) shopware AG <info@shopware.com>
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* "Shopware" is a registered trademark of shopware AG.
* The licensing of the program under the AGPLv3 does not imply a
* trademark license. Therefore any rights, title and interest in
* our trademarks remain entirely with us.
*/

namespace Shopware\SwagCustomSort\Bundle\SearchBundle;
Expand Down
7 changes: 7 additions & 0 deletions Bundle/StoreFrontBundle/ListProductService.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/*
* (c) shopware AG <info@shopware.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/

namespace Shopware\SwagCustomSort\Bundle\StoreFrontBundle;

Expand Down
24 changes: 4 additions & 20 deletions Components/Listing.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
<?php

/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* permission and of our proprietary license can be found at and
* in the LICENSE file you have received along with this program.
/*
* (c) shopware AG <info@shopware.com>
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* "Shopware" is a registered trademark of shopware AG.
* The licensing of the program under the AGPLv3 does not imply a
* trademark license. Therefore any rights, title and interest in
* our trademarks remain entirely with us.
*/

namespace Shopware\SwagCustomSort\Components;
Expand Down
8 changes: 8 additions & 0 deletions Components/Sorting.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/*
* (c) shopware AG <info@shopware.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/

namespace Shopware\SwagCustomSort\Components;

class Sorting
Expand Down
24 changes: 4 additions & 20 deletions Controllers/Backend/CustomSort.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
<?php

/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* permission and of our proprietary license can be found at and
* in the LICENSE file you have received along with this program.
/*
* (c) shopware AG <info@shopware.com>
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* "Shopware" is a registered trademark of shopware AG.
* The licensing of the program under the AGPLv3 does not imply a
* trademark license. Therefore any rights, title and interest in
* our trademarks remain entirely with us.
*/

use Shopware\Components\Model\ModelManager;
Expand Down
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License (MIT)

Copyright (c) 2015 ShopwareLabs

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

24 changes: 4 additions & 20 deletions Models/CustomSort/ArticleSort.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
<?php

/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* permission and of our proprietary license can be found at and
* in the LICENSE file you have received along with this program.
/*
* (c) shopware AG <info@shopware.com>
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* "Shopware" is a registered trademark of shopware AG.
* The licensing of the program under the AGPLv3 does not imply a
* trademark license. Therefore any rights, title and interest in
* our trademarks remain entirely with us.
*/

namespace Shopware\CustomModels\CustomSort;
Expand Down
24 changes: 4 additions & 20 deletions Models/CustomSort/CustomSortRepository.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
<?php

/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* permission and of our proprietary license can be found at and
* in the LICENSE file you have received along with this program.
/*
* (c) shopware AG <info@shopware.com>
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* "Shopware" is a registered trademark of shopware AG.
* The licensing of the program under the AGPLv3 does not imply a
* trademark license. Therefore any rights, title and interest in
* our trademarks remain entirely with us.
*/

namespace Shopware\CustomModels\CustomSort;
Expand Down
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# SwagCustomSort
> Working with Shopware version 5.0.0 to 5.1.1.
> Higher versions may work either but were not tested.
## Description
Do you want to comletely customize the sort order of the article listing?

Special promotion articles or new articles should always be displayed on top?


Now you can define custom sortings with the "CustomSort" plugin.
You can move the articles via drag 'n' drop to their new position.
Instead of defining own sortings you have the ability to provide basic sorting methods and modify them.
This lets you create listings fast, effective and with just a few steps.

Did you already create a custom sorting and want to apply it to other categories?
No Problem! Simply synchronize the settings from the existing category.
This allows you to use the listing settings for your language or sub shops without re-defining all settings again.
Of course you can choose whether the created sorting should be used as default or as additional sorting element.
The new sortings will be displayed in the frontend with their chosen name. The name can be declared in the plugin settings.

**Features:**

* custom sorting for all categories (independend from the category layer)
* sorting via Drag&Drop
* base sortings can be inherited
* setup a custom sorting as default sorting
* synchronize between categories (e.g language-shops)
* the amount of products is customizable for a better overview (from 10 to all articles)
* displaying as own sorting entry in the frontend


## Images
<img src="image1.jpg" alt="Backend" style="width: 500px;"/>
<img src="image2.jpg" alt="Frontend" style="width: 500px;"/>

## License

The MIT License (MIT). Please see [License File](LICENSE) for more information.
24 changes: 4 additions & 20 deletions Sorter/Sort/DragDropSorting.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
<?php

/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* permission and of our proprietary license can be found at and
* in the LICENSE file you have received along with this program.
/*
* (c) shopware AG <info@shopware.com>
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* "Shopware" is a registered trademark of shopware AG.
* The licensing of the program under the AGPLv3 does not imply a
* trademark license. Therefore any rights, title and interest in
* our trademarks remain entirely with us.
*/

namespace Shopware\SwagCustomSort\Sorter\Sort;
Expand Down
25 changes: 4 additions & 21 deletions Sorter/Sort/RatingSorting.php
Original file line number Diff line number Diff line change
@@ -1,28 +1,11 @@
<?php

/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
/*
* (c) shopware AG <info@shopware.com>
*
* The texts of the GNU Affero General Public License with an additional
* permission and of our proprietary license can be found at and
* in the LICENSE file you have received along with this program.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* "Shopware" is a registered trademark of shopware AG.
* The licensing of the program under the AGPLv3 does not imply a
* trademark license. Therefore any rights, title and interest in
* our trademarks remain entirely with us.
*/

namespace Shopware\SwagCustomSort\Sorter\Sort;

use Shopware\Bundle\SearchBundle\Sorting\Sorting;
Expand Down
24 changes: 4 additions & 20 deletions Sorter/Sort/StockSorting.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
<?php

/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* permission and of our proprietary license can be found at and
* in the LICENSE file you have received along with this program.
/*
* (c) shopware AG <info@shopware.com>
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* "Shopware" is a registered trademark of shopware AG.
* The licensing of the program under the AGPLv3 does not imply a
* trademark license. Therefore any rights, title and interest in
* our trademarks remain entirely with us.
*/

namespace Shopware\SwagCustomSort\Sorter\Sort;
Expand Down
24 changes: 4 additions & 20 deletions Sorter/SortDBAL/Handler/DragDropHandler.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
<?php

/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* permission and of our proprietary license can be found at and
* in the LICENSE file you have received along with this program.
/*
* (c) shopware AG <info@shopware.com>
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* "Shopware" is a registered trademark of shopware AG.
* The licensing of the program under the AGPLv3 does not imply a
* trademark license. Therefore any rights, title and interest in
* our trademarks remain entirely with us.
*/

namespace Shopware\SwagCustomSort\Sorter\SortDBAL\Handler;
Expand Down
Loading

0 comments on commit df2ff04

Please sign in to comment.