# ppl/module-discovery-filters-hv

> Standalone PPL Discovery Filters HV storefront package for Magento 2, compatible with Hyvä-based storefronts, with cached facets, category/search filter rendering and lightweight fragment navigation.

`composer require ppl/module-discovery-filters-hv`

Canonical URL: https://packagento.com/ppl/module-discovery-filters-hv

## At a glance

- **Vendor**: Pawel Pliousnin Digital Solutions (https://packagento.com/ppl.md)
- **Latest version**: 1.2.0 — released 2026-07-08
- **Pricing**: $189.00/year, subscription
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

This is a paid package. The Packagento install flow is licence-gated, so a Composer install needs a licence + project + project credentials in place first.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Purchase the package.** Open https://packagento.com/ppl/module-discovery-filters-hv, add it to your cart, and complete checkout. A licence is minted automatically once payment clears.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require ppl/module-discovery-filters-hv:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Standalone PPL Discovery Filters HV storefront package for Magento 2, compatible with Hyvä-based storefronts, with cached facets, category/search filter rendering and lightweight fragment navigation.

## README

PPL Discovery Filters adds indexed, configurable category and search filters with cached facets and optional Search Intelligence handoff.

### What It Adds
- Indexed filter definitions and facet counts for category and search pages
- Configurable presentation for color, size, category, price, availability, layout, position, AJAX, and native-filter replacement
- Optional neutral event integration with SearchIntelligence

### Requirements And Dependencies
- PHP: >=8.1
- Magento packages: magento/framework, magento/module-backend, magento/module-catalog, magento/module-catalog-inventory, magento/module-catalog-search, magento/module-config, magento/module-customer, magento/module-eav, magento/module-inventory-sales, magento/module-store
- PPL packages: ppl/module-hub

### Installation
Install the required PPL packages in dependency order. Composer will skip packages that are already installed:

```bash
composer require ppl/module-hub ppl/module-discovery-filters-hv
bin/magento module:enable Ppl_Hub Ppl_DiscoveryFiltersHV
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:clean
```

Manual app/code installation: copy the dependency modules and this module into `app/code/Ppl` in this order: `Ppl/Hub -> Ppl/DiscoveryFilters`. Then run the same Magento commands starting with `bin/magento module:enable`.

### First Use
- Enable Discovery Filters and configure the filter list and presentation.
- Run the DiscoveryFilters index build or wait for cron.
- Check Index Status before judging storefront output.

Admin entry: `PPL Hub > PPL Discovery Filters`.

### Integrations And Boundaries
- Optionally cooperates with Ppl_SearchIntelligenceHV through the neutral ppl_searchintelligence_filter_integration event.
- Runs standalone for Magento category and search pages without SearchIntelligence.
- Stable: run the documented PPL release gates (setup:upgrade, di:compile, PHPUnit, SCD, production mode) in your environment before publishing this package.

### Localization
The package includes translation CSV files for 12 locales: de_DE, en_US, es_ES, fr_FR, it_IT, ja_JP, nl_NL, pl_PL, pt_BR, ru_RU, tr_TR, zh_CN.

### Customer Documentation
Customer-facing User Guides and Marketplace Long Descriptions are maintained outside the Magento module package in the repository-level `docs/user_guides` and `docs/long_descriptions` folders. The module package itself intentionally keeps only this technical README plus developer-relevant files.

### Support
Support contact: pliousnin@ppl-ds.com. Include the module version, Magento version, enabled PPL companion modules, and the relevant admin or storefront screenshot when reporting an issue.

## Changelog

### 1.0.0

- Added standalone `Ppl_DiscoveryFiltersHV` module.
- Added filter index tables, cache type, cron, CLI commands and PPL Hub admin pages.
- Added manufacturer, color, size, price, category and stock filter support.
- Added optional Search Intelligence overlay/search integration through a neutral event handoff, without a hard module
  dependency.
- Hardened release MVP behavior: search fallback candidates are capped, collection/toolbar totals share one result provider, and price filtering exposes only functional min/max fields with instant apply.
- Added shared filter theme support for category pages, search pages and the Search Intelligence modal filter component.
- Added ResultSet-aware facet counting and cache-key scoping for Search Intelligence search-page handoff.
- Added compact overlay/catalog swatch guards and selected filter readability fixes.

## Recent Versions

| Version | Released |
|---|---|
| 1.2.0 | 2026-07-08 |

## Dependencies

### Require

| Package | Constraint |
|---|---|
| ext-ctype | * |
| ext-hash | * |
| ext-mbstring | * |
| magento/framework | >=103.0.7 <104.0.0 |
| magento/module-backend | >=102.0.0 <103.0.0 |
| magento/module-catalog | >=104.0.0 <105.0.0 |
| magento/module-catalog-inventory | >=100.4.0 <101.0.0 |
| magento/module-catalog-search | >=102.0.0 <103.0.0 |
| magento/module-config | >=101.2.0 <102.0.0 |
| magento/module-configurable-product | >=100.4.0 <101.0.0 |
| magento/module-cron | >=100.4.0 <101.0.0 |
| magento/module-customer | >=103.0.0 <104.0.0 |
| magento/module-eav | >=102.1.0 <103.0.0 |
| magento/module-inventory-sales | >=1.2.0 <2.0.0 |
| magento/module-inventory-sales-api | >=1.2.0 <2.0.0 |
| magento/module-search | >=101.1.0 <102.0.0 |
| magento/module-store | >=101.1.0 <102.0.0 |
| php | >=8.1 |
| ppl/module-hub | ^1.2 |
| psr/log | ^1.0 \|\| ^2.0 \|\| ^3.0 |
| symfony/console | ^6.4 \|\| ^7.0 |

### Conflict

| Package | Constraint |
|---|---|
| ppl/module-discovery-filters | * |

## Quality

Latest release (1.2.0) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| 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 | Pass |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — 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.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 104 | 1 error, 103 warnings (ruleset: Magento2), 4 auto-fixable with phpcbf |
| PHPMD | Warning | 75 | 75 rule violations (MissingImport:46, UnusedFormalParameter:13, ExcessiveClassComplexity:5, CyclomaticComplexity:4, NPathComplexity:3) |
| Cpd | Pass | 0 |  |
| Composer validate | Info | 1 | valid; 1 advisory note (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| 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 | Pass |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| 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

| 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

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | N/A | 0 | no resolvable dependency tree to audit: Your requirements could not be resolved to an installable set of packages. Problem 1 |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Subscription — $189.00/year, auto-renews until cancelled. Includes all minor + patch upgrades within the licensed major. One licence per project; cancelling stops auto-renewal but the existing licence keeps working until its end date.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["ppl/module-discovery-filters-hv"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

Pawel Pliousnin Digital Solutions is a Magento 2 vendor on Packagento. See https://packagento.com/ppl.md for their full catalogue.

