#35542 - Initial release
1. Why is this change necessary?
It's the first release.
2. What does this change do, exactly?
It creates a new payment which is forced to use when the cart price is zero.
3. Describe each step to reproduce the issue or behavior.
- Due a compatibility issue you need to edit the following file regarding the following diff.
Class:\Shopware\Core\Checkout\Order\SalesChannel\SetPaymentOrderRoute
- 11. use Shopware\Core\Checkout\Payment\SalesChannel\PaymentMethodRoute;
+ 11. use Shopware\Core\Checkout\Payment\SalesChannel\AbstractPaymentMethodRoute;
- 53. PaymentMethodRoute $paymentRoute,
+ 53. AbstractPaymentMethodRoute $paymentRoute,
- Install the plugin
- Make sure the new payment "Free" is assigned to your sales channel
- Enable the plugin in the plugin configuration for the wanted sales channel
- Go to the storefront
- Put products in the cart until it's price is zero (e.g. with coupons)
- The payment "Free" should be automatically selected if the price is zero
4. Please link to the relevant issues (if any).
https://redmine.netinventors.de/issues/35542
5. Checklist
-
I have updated the plugin version and changelog -
I can confirm the code style fits our requirements -
I can confirm that no debug output is generated anywhere -
I have changed the required NetiFoundation-version to the latest available version