Fix the condition for product type based shipping calculation. #1971
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hallo,
dies ist ein Fix, damit das Vorhaben in #1970 gelingt.
Es handelt sich um die Einstellung "Preis für diese Produkttypen berechnen" bei den Versandarten.
Ich habe mir den Code angeschaut und deshalb habe ich von dieser Einstellung erwartet, in der Preisberechnung nur die Produkte mit zutreffendem Produkttyp zu berücksichtigen.
Allerdings war ein Vorzeichen falsch.
Die betroffene Stelle wurde das letze mal in 25aa89b#diff-b5a411f80105f8e2809e6e9f24529307 bearbeitet.
Vorher: Diese Einstellung resultiert in Versandkosten in Höhe von 0, auch wenn ein Produkt mit "Test-Produkttyp 1" im Warenkorb liegt.
Nach diesem Fix: Diese Einstellung resultiert in Versandkosten, wie erwartet, wenn ein Produkt mit "Test-Produkttyp 1" im Warenkorb liegt.
Edit: Wie erwartet heißt, dass die Versandkosten nur Anwendung finden, für diesen Produkttyp, und ignoriert wird, für andere Produkktypen. Details siehe #1970.