Skip to content

Commit df2ff04

Browse files
Niklas Göddemitelg
authored andcommitted
Prepare plugin for github
1 parent b1916af commit df2ff04

26 files changed

+158
-356
lines changed

Bootstrap.php

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,10 @@
11
<?php
2-
3-
/**
4-
* Shopware 5
5-
* Copyright (c) shopware AG
6-
*
7-
* According to our dual licensing model, this program can be used either
8-
* under the terms of the GNU Affero General Public License, version 3,
9-
* or under a proprietary license.
10-
*
11-
* The texts of the GNU Affero General Public License with an additional
12-
* permission and of our proprietary license can be found at and
13-
* in the LICENSE file you have received along with this program.
2+
/*
3+
* (c) shopware AG <[email protected]>
144
*
15-
* This program is distributed in the hope that it will be useful,
16-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18-
* GNU Affero General Public License for more details.
5+
* For the full copyright and license information, please view the LICENSE
6+
* file that was distributed with this source code.
197
*
20-
* "Shopware" is a registered trademark of shopware AG.
21-
* The licensing of the program under the AGPLv3 does not imply a
22-
* trademark license. Therefore any rights, title and interest in
23-
* our trademarks remain entirely with us.
248
*/
259

2610
use Shopware\Models\Config\Element;

Bundle/SearchBundle/SortProductSearch.php

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,10 @@
11
<?php
2-
/**
3-
* Shopware 5
4-
* Copyright (c) shopware AG
5-
*
6-
* According to our dual licensing model, this program can be used either
7-
* under the terms of the GNU Affero General Public License, version 3,
8-
* or under a proprietary license.
9-
*
10-
* The texts of the GNU Affero General Public License with an additional
11-
* permission and of our proprietary license can be found at and
12-
* in the LICENSE file you have received along with this program.
2+
/*
3+
* (c) shopware AG <[email protected]>
134
*
14-
* This program is distributed in the hope that it will be useful,
15-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17-
* GNU Affero General Public License for more details.
5+
* For the full copyright and license information, please view the LICENSE
6+
* file that was distributed with this source code.
187
*
19-
* "Shopware" is a registered trademark of shopware AG.
20-
* The licensing of the program under the AGPLv3 does not imply a
21-
* trademark license. Therefore any rights, title and interest in
22-
* our trademarks remain entirely with us.
238
*/
249

2510
namespace Shopware\SwagCustomSort\Bundle\SearchBundle;

Bundle/StoreFrontBundle/ListProductService.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
<?php
2+
/*
3+
* (c) shopware AG <[email protected]>
4+
*
5+
* For the full copyright and license information, please view the LICENSE
6+
* file that was distributed with this source code.
7+
*
8+
*/
29

310
namespace Shopware\SwagCustomSort\Bundle\StoreFrontBundle;
411

Components/Listing.php

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,10 @@
11
<?php
2-
3-
/**
4-
* Shopware 5
5-
* Copyright (c) shopware AG
6-
*
7-
* According to our dual licensing model, this program can be used either
8-
* under the terms of the GNU Affero General Public License, version 3,
9-
* or under a proprietary license.
10-
*
11-
* The texts of the GNU Affero General Public License with an additional
12-
* permission and of our proprietary license can be found at and
13-
* in the LICENSE file you have received along with this program.
2+
/*
3+
* (c) shopware AG <[email protected]>
144
*
15-
* This program is distributed in the hope that it will be useful,
16-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18-
* GNU Affero General Public License for more details.
5+
* For the full copyright and license information, please view the LICENSE
6+
* file that was distributed with this source code.
197
*
20-
* "Shopware" is a registered trademark of shopware AG.
21-
* The licensing of the program under the AGPLv3 does not imply a
22-
* trademark license. Therefore any rights, title and interest in
23-
* our trademarks remain entirely with us.
248
*/
259

2610
namespace Shopware\SwagCustomSort\Components;

Components/Sorting.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
<?php
2+
/*
3+
* (c) shopware AG <[email protected]>
4+
*
5+
* For the full copyright and license information, please view the LICENSE
6+
* file that was distributed with this source code.
7+
*
8+
*/
9+
210
namespace Shopware\SwagCustomSort\Components;
311

412
class Sorting

Controllers/Backend/CustomSort.php

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,10 @@
11
<?php
2-
3-
/**
4-
* Shopware 5
5-
* Copyright (c) shopware AG
6-
*
7-
* According to our dual licensing model, this program can be used either
8-
* under the terms of the GNU Affero General Public License, version 3,
9-
* or under a proprietary license.
10-
*
11-
* The texts of the GNU Affero General Public License with an additional
12-
* permission and of our proprietary license can be found at and
13-
* in the LICENSE file you have received along with this program.
2+
/*
3+
* (c) shopware AG <[email protected]>
144
*
15-
* This program is distributed in the hope that it will be useful,
16-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18-
* GNU Affero General Public License for more details.
5+
* For the full copyright and license information, please view the LICENSE
6+
* file that was distributed with this source code.
197
*
20-
* "Shopware" is a registered trademark of shopware AG.
21-
* The licensing of the program under the AGPLv3 does not imply a
22-
* trademark license. Therefore any rights, title and interest in
23-
* our trademarks remain entirely with us.
248
*/
259

2610
use Shopware\Components\Model\ModelManager;

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 ShopwareLabs
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

Models/CustomSort/ArticleSort.php

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,10 @@
11
<?php
2-
3-
/**
4-
* Shopware 5
5-
* Copyright (c) shopware AG
6-
*
7-
* According to our dual licensing model, this program can be used either
8-
* under the terms of the GNU Affero General Public License, version 3,
9-
* or under a proprietary license.
10-
*
11-
* The texts of the GNU Affero General Public License with an additional
12-
* permission and of our proprietary license can be found at and
13-
* in the LICENSE file you have received along with this program.
2+
/*
3+
* (c) shopware AG <[email protected]>
144
*
15-
* This program is distributed in the hope that it will be useful,
16-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18-
* GNU Affero General Public License for more details.
5+
* For the full copyright and license information, please view the LICENSE
6+
* file that was distributed with this source code.
197
*
20-
* "Shopware" is a registered trademark of shopware AG.
21-
* The licensing of the program under the AGPLv3 does not imply a
22-
* trademark license. Therefore any rights, title and interest in
23-
* our trademarks remain entirely with us.
248
*/
259

2610
namespace Shopware\CustomModels\CustomSort;

Models/CustomSort/CustomSortRepository.php

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,10 @@
11
<?php
2-
3-
/**
4-
* Shopware 5
5-
* Copyright (c) shopware AG
6-
*
7-
* According to our dual licensing model, this program can be used either
8-
* under the terms of the GNU Affero General Public License, version 3,
9-
* or under a proprietary license.
10-
*
11-
* The texts of the GNU Affero General Public License with an additional
12-
* permission and of our proprietary license can be found at and
13-
* in the LICENSE file you have received along with this program.
2+
/*
3+
* (c) shopware AG <[email protected]>
144
*
15-
* This program is distributed in the hope that it will be useful,
16-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18-
* GNU Affero General Public License for more details.
5+
* For the full copyright and license information, please view the LICENSE
6+
* file that was distributed with this source code.
197
*
20-
* "Shopware" is a registered trademark of shopware AG.
21-
* The licensing of the program under the AGPLv3 does not imply a
22-
* trademark license. Therefore any rights, title and interest in
23-
* our trademarks remain entirely with us.
248
*/
259

2610
namespace Shopware\CustomModels\CustomSort;

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# SwagCustomSort
2+
> Working with Shopware version 5.0.0 to 5.1.1.
3+
> Higher versions may work either but were not tested.
4+
5+
## Description
6+
Do you want to comletely customize the sort order of the article listing?
7+
8+
Special promotion articles or new articles should always be displayed on top?
9+
10+
11+
Now you can define custom sortings with the "CustomSort" plugin.
12+
You can move the articles via drag 'n' drop to their new position.
13+
Instead of defining own sortings you have the ability to provide basic sorting methods and modify them.
14+
This lets you create listings fast, effective and with just a few steps.
15+
16+
Did you already create a custom sorting and want to apply it to other categories?
17+
No Problem! Simply synchronize the settings from the existing category.
18+
This allows you to use the listing settings for your language or sub shops without re-defining all settings again.
19+
Of course you can choose whether the created sorting should be used as default or as additional sorting element.
20+
The new sortings will be displayed in the frontend with their chosen name. The name can be declared in the plugin settings.
21+
22+
**Features:**
23+
24+
* custom sorting for all categories (independend from the category layer)
25+
* sorting via Drag&Drop
26+
* base sortings can be inherited
27+
* setup a custom sorting as default sorting
28+
* synchronize between categories (e.g language-shops)
29+
* the amount of products is customizable for a better overview (from 10 to all articles)
30+
* displaying as own sorting entry in the frontend
31+
32+
33+
## Images
34+
<img src="image1.jpg" alt="Backend" style="width: 500px;"/>
35+
<img src="image2.jpg" alt="Frontend" style="width: 500px;"/>
36+
37+
## License
38+
39+
The MIT License (MIT). Please see [License File](LICENSE) for more information.

0 commit comments

Comments
 (0)