ppl / module-product-recommendations-hv

ppl/module-product-recommendations-hv

Standalone PPL Product Recommendations HV storefront package for Magento 2, compatible with Hyvä-based storefronts, with product-page and add-to-cart recommendation surfaces.

  • Pawel Pliousnin
magento2-module Compatibility: 2.4.7-2.4.9 Code Quality: Warning Tests: N/A Security: Pass proprietary

PPL Product Recommendations HV for Magento 2

PPL Product Recommendations HV is the standalone storefront package of PPL Product Recommendations for Hyvä-based storefronts. It adds relevance-scored recommendation surfaces - a product-page block and an add-to-cart drawer - rendered with Hyvä-compatible templates and vanilla JavaScript instead of the Luma RequireJS layer. Recommendations are built from a configurable engine that blends a co-purchase index, native Magento product links, category similarity, attribute/price similarity and a popularity fallback, with per-source weights.

What It Adds

  • Product-page recommendation block with configurable title, item count and position
  • Add-to-cart drawer that opens after a successful AJAX add-to-cart, with an optional recommendation slider (own title, checkout button label and item count)
  • Recommendation engine combining several sources with configurable weights and a minimum score:
    • Co-purchase index built from orders within a rolling lookback window (minimum co-purchase support)
    • Native Magento related / up-sell / cross-sell links
    • Category-overlap similarity
    • Attribute and price-band similarity points (e.g. same manufacturer, target group, similar price)
    • Industry "goes-with" affinity lists driven by the active Search Intelligence vertical
    • Popularity fallback
  • Exclusion rules for out-of-stock products and products already in the cart
  • Admin dashboard with a live recommendation preview
  • Optional debug reasons (score components) in the recommendation JSON for local verification

Hyvä Compatibility

This package targets Hyvä storefronts: the frontend surfaces are wired through hyva_default.xml and a single vanilla product-recommendations-hv.js, with no dependency on the Luma/RequireJS or Knockout stack. Install this package on a Hyvä theme; use the Luma package ppl/module-product-recommendations on a Luma storefront. The two packages conflict and must not be installed together.

Requirements And Dependencies

  • PHP: >=8.1
  • Magento packages: magento/framework, magento/module-backend, magento/module-catalog, magento/module-catalog-widget, magento/module-checkout, magento/module-inventory-sales-api, magento/module-inventory-sales, magento/module-config, magento/module-customer, magento/module-sales, magento/module-store, magento/module-wishlist
  • PPL packages: ppl/module-hub

Installation

Composer installation:

composer require ppl/module-hub ppl/module-product-recommendations-hv
bin/magento module:enable Ppl_Hub Ppl_ProductRecommendationsHV
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush

Manual app/code installation: copy the module to app/code/Ppl/ProductRecommendationsHV, install the dependencies listed above, then run the same Magento commands without the Composer step.

First Use

  • Install Ppl_Hub and enable the module on a Hyvä-based storefront.
  • Enable the master switch under Product Recommendations, then enable the product-page block and/or the add-to-cart drawer.
  • Review the engine, source weights and similarity settings; the defaults are a safe starting point.
  • Build the co-purchase index once (CLI command below) or let the scheduled job run, then open the admin dashboard preview.

Admin entry: PPL Hub > Product Recommendations.

Configuration

Display settings live under PPL Hub > Product Recommendations:

  • General - master switch and optional debug reasons in AJAX responses.
  • Product Page - enable the block, title, maximum items and block position.
  • Add-to-cart Drawer - enable the drawer and its recommendation slider, titles, checkout button label and maximum items.

Engine tuning lives under Stores > Configuration > PPL Hub > Product Recommendations Engine:

  • Recommendation Engine - order lookback days, minimum co-purchase count, minimum score, source toggles and stock/cart exclusions.
  • Source Weights - co-purchase, native link, category-overlap and popularity weights.
  • Similarity Points - matching attributes and per-attribute points, price band and points, and industry "goes-with" affinity points.

Command Line

  • bin/magento ppl:productrecommendations:rebuild - rebuild the co-purchase index from recent orders.

Scheduled Tasks

  • ppl_productrecommendations_rebuild - rebuilds the co-purchase index (hourly).

Integrations And Boundaries

  • Requires only Ppl_Hub for the shared admin navigation; it does not depend on any PPL search or filter module.
  • The industry "goes-with" affinity lists use the active Search Intelligence vertical when present and stay inert otherwise.
  • Optionally consumes recommendation interaction signals from Ppl_TrackingHV in a later phase; it does not depend on it.
  • Conflicts with ppl/module-product-recommendations (the Luma package); install exactly one of the two per storefront.

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 documentation folders. The module package itself intentionally keeps only this technical README plus developer-relevant files.

Support

Support contact: [email protected]. Include the module version, Magento version, enabled PPL companion modules, and the relevant admin or storefront screenshot when reporting an issue.

Changelog

1.3.0

  • Adopted the shared PPL Hub UI theme for the Hyvä storefront recommendation cards
  • Aligned to the PPL Hub 1.3 line for admin navigation, ACL, and menu integration
  • Magento Open Source and Adobe Commerce 2.4.9 compatibility
  • Minor fixes and stability improvements

1.0.0

  • Initial release
  • Added product-page and add-to-cart recommendation surfaces for Hyvä-based storefronts, compatible with modern storefront themes
Versions
Version Stability QA Status Compatibility Released
1.3.0 stable Pass Magento 2.4.7-2.4.9 Details 2026-07-10 12:37:48
1.2.0 stable Pass Magento 2.4.7-2.4.9 Details 2026-07-08 08:57:41

Requires 18

Package Constraint
ext-json *
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-widget >=100.4.0 <101.0.0
magento/module-checkout >=100.4.0 <101.0.0
magento/module-config >=101.2.0 <102.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.0.0 <2.0.0
magento/module-inventory-sales-api >=1.0.0 <2.0.0
magento/module-sales >=103.0.0 <104.0.0
magento/module-store >=101.1.0 <102.0.0
magento/module-wishlist >=101.2.0 <102.0.0
php >=8.1
ppl/module-hub ^1.3
psr/log ^1.0 || ^2.0 || ^3.0
symfony/console ^6.4 || ^7.0

Conflicts 1

Package Constraint
ppl/module-product-recommendations *

Suggests 1

Package Reason
ppl/module-tracking-hv Adds optional co-interest and recommendation interaction signals in a later phase.

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 Pass

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 Warning 7 7 warnings (ruleset: Magento2), 1 auto-fixable with phpcbf
PHPMD Warning 8 8 rule violations (NPathComplexity:3, CyclomaticComplexity:2, ExcessiveMethodLength:2, ExcessiveClassComplexity:1)
Cpd Pass 0
PHP Compatibility Pending 0
Composer validate Info 1 valid; 1 advisory note (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.

PHPStan results by Magento and PHP version
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 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 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
License
proprietary
Authors
  • Pawel Pliousnin — Developer

More from Pawel Pliousnin Digital Solutions

View vendor
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.