backendorf / module-installment

backendorf/module-installment

Add installment feature to Magento 2 catalog

magento2-module Compatibility: 2.4.7-2.4.8 Code Quality: Fail Tests: N/A Security: Pass

Magento 2 Installment & Discounts

Magento 2.4.x
Hyvä Compatible
License

A powerful and flexible Magento 2 module designed to display installment values and strategic discounts directly on your storefront catalog and product pages. Now fully compatible with Hyvä Themes while maintaining support for Luma/Standard themes.

🚀 Features

  • Multi-Theme Support: Native support for Hyvä Themes (Alpine.js) and Luma/Standard themes (jQuery).
  • Installment Display: Show installment options across Product, Category, and Search pages.
  • Strategic Discounts: Display custom discounts (e.g., PIX, Bank Transfer) with automatic calculation and deduplication.
  • Configurable Logic:
    • Define maximum installments and minimum installment value.
    • Support for Simple and Compound interest calculations.
  • Customizable Interest: Set specific interest rates for each installment level.
  • Flexible Templates: Specific price templates for catalog_category_view, catalogsearch_result_index, and catalog_product_view.
  • Custom Styling: Control primary colors, highlight text colors, and font weights directly from the admin panel.

⚡ Hyvä Integration

This module is built to leverage Hyvä's performance:

  • Alpine.js Components: Lightweight and reactive installment calculations.
  • Tailwind CSS: Automatically registers module templates for the Tailwind CSS build process.
  • CSP Compatible: All JavaScript components are built to comply with Content Security Policy.

🛠️ Installation

Using Composer (Recommended)

composer require backendorf/module-installment

Enable the Module

bin/magento module:enable Backendorf_Installment
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush

For Hyvä Themes

To ensure Tailwind classes are generated correctly for your theme:

bin/magento hyva:config:generate

⚙️ Configuration

Navigate to Stores > Configuration > Backendorf > Installment to configure:

  1. General Settings: Enable/Disable the module, set installment limits, and display behavior.
  2. Interest Rates: Configure calculation types and specific rates per installment.
  3. Discounts: Add dynamic discount rules based on percentages.
  4. Price Templates: Customize the HTML output for different page types.
  5. Styles: Personalize the look and feel (colors and typography) to match your brand.

📋 Requirements

  • Magento 2.4.x
  • PHP 8.1+
  • Hyvä Themes (Optional, but fully supported)

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

No changelog yet

The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.

Versions
Version Stability QA Status Compatibility Released
2.0.0 stable Fail Magento 2.4.7-2.4.8 Details 2026-03-12 12:29:36
1.3.1 stable Not tested Not yet tested Details 2025-10-11 14:09:29
1.3.0 stable Not tested Not yet tested Details 2024-05-28 00:09:16
1.2.3 stable Not tested Not yet tested Details 2024-05-01 19:55:22
1.2.2 stable Not tested Not yet tested Details 2023-10-10 22:21:51
1.2.1 stable Not tested Not yet tested Details 2023-09-30 10:28:05
v1.2.0 stable Not tested Not yet tested Details 2023-08-07 22:20:07
v1.1.0 stable Not tested Not yet tested Details 2023-07-07 01:21:37
v1.0.7 stable Not tested Not yet tested Details 2021-09-29 23:21:00
v1.0.6 stable Not tested Not yet tested Details 2021-08-15 09:46:36
v1.0.5 stable Not tested Not yet tested Details 2021-08-03 17:02:42
1.0.4 stable Not tested Not yet tested Details 2021-07-29 10:10:13
1.0.3 stable Not tested Not yet tested Details 2021-07-12 20:58:22
1.0.2 stable Not tested Not yet tested Details 2021-07-05 09:33:54
1.0.1 stable Not tested Not yet tested Details 2021-06-25 09:29:20
1.0.0 stable Not tested Not yet tested Details 2021-05-19 21:23:45

Requires 2

Package Constraint
magento/framework ^102.0 || ^103.0
magento/module-catalog ^103.0 || ^104.0

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Fail di error

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Fail 38 2 errors, 36 warnings (ruleset: Magento2) — 12 auto-fixable with phpcbf
PHPMD Warning 1 1 rule violation (UnusedFormalParameter:1)
Cpd Pass 0
Composer validate Info 2 valid; 2 advisory notes (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 9 9
2.4.8 9 9
2.4.9 9 10

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0

No license declared

This package's composer.json doesn't declare a license, homepage, or authors. Check the source repository for terms of use.

Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.