If you want to change the specified financing example of the Shopware plugin "Consors Finanz" by the plugin developer "MILLEMEDIA" on the product detail page, this cannot be done via the backend. Instead, you can intervene directly in the function that selects the respective example. For example, we do not want to display the lowest installment, but rather the lowest installment with 0% financing.
The secret behind the installment selection in the online shop can be found in the file
/custom/plugins/MilleConsorsFinanz/Components/Services/InstallmentsCalculator.php
More precisely, in the function
getFinancingExample()
All we need to do is replace the line
if ($financingOption->getInstallment() < $lowestInstallment) {
with
if ($financingOption->getInstallment() < $lowestInstallment && $financingOption->getInterestRate() == 0) {
In other words: Instead of selecting the lowest (absolute) installment, we select the lowest installment with 0% interest.
That's it! Seen at our web agency in an online shop with Shopware 5.
