-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 827dd68
Showing
9 changed files
with
466 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
* text=auto | ||
|
||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/README.md export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/composer.lock | ||
/vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2023 semaio GmbH | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Shopware 6: Stock Updater fix | ||
|
||
Issue: https://issues.shopware.com/issues/NEXT-12479 | ||
|
||
By default, Shopware ties the "available stock" field on product level to the status of the order. If a client uses an external system for managing stock (e.g. ERP, inventory management system, ..), it can happen that the available stock will be reduced twice. | ||
|
||
This plugin replaces the default "StockUpdater" and removes all ties to the order status. | ||
|
||
**Important:** We've tested it only on Shopware 6.4 and for the use cases of our clients. Please test thoroughly before deploying it to production. | ||
|
||
## Installation | ||
|
||
The recommended way is using [composer](http://getcomposer.org): | ||
|
||
```bash | ||
$ composer require semaio/shopware-plugin-stock-updater-fix | ||
``` | ||
|
||
## Support | ||
|
||
If you encounter any problems or bugs, please create an issue on [GitHub](https://github.com/semaio/shopware-plugin-stock-updater-fix/issues). | ||
|
||
## Contribution | ||
|
||
Any contribution to the development of `shopware-plugin-stock-updater-fix` is highly welcome. The best possibility to provide any code is to open a [pull request on GitHub](https://help.github.com/articles/using-pull-requests). | ||
|
||
## License | ||
|
||
[MIT License](https://opensource.org/licenses/mit). See the [LICENSE.txt](LICENSE.txt) file for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"name": "semaio/shopware-plugin-stock-updater-fix", | ||
"description": "Fix StockUpdater to be independent from order status.", | ||
"type": "shopware-platform-plugin", | ||
"license": "MIT", | ||
"version": "1.0.0", | ||
"authors": [ | ||
{ | ||
"name": "semaio GmbH", | ||
"email": "support@semaio.com", | ||
"role": "Manufacturer" | ||
} | ||
], | ||
"require": { | ||
"shopware/core": "~6.4.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Semaio\\StockUpdaterFix\\": "src/" | ||
} | ||
}, | ||
"extra": { | ||
"shopware-plugin-class": "Semaio\\StockUpdaterFix\\SemaioStockUpdaterFix", | ||
"plugin-icon": "src/Resources/config/plugin.png", | ||
"copyright": "semaio GmbH", | ||
"label": { | ||
"de-DE": "StockUpdater Fix", | ||
"en-GB": "StockUpdater Fix" | ||
}, | ||
"description": { | ||
"de-DE": "Mit diesem Plugin werden die Lagerbestandsfelder der Produkte synchron gehalten und sind nicht länger vom Bestellstatus abhängig.", | ||
"en-GB": "With this plugin you stock fields on product level will be kept synchronously and are no longer dependent on order status." | ||
}, | ||
"manufacturerLink": { | ||
"en-GB": "https://semaio.com", | ||
"de-DE": "https://semaio.com" | ||
}, | ||
"supportLink": { | ||
"de-DE": "https://semaio.com", | ||
"en-GB": "https://semaio.com" | ||
} | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"symfony/runtime": false | ||
} | ||
} | ||
} |
Oops, something went wrong.