bradsearch / magento-verkter-price-adapter
Verkter-specific bridge: maps BradSearch PriceCalculatorInterface to Magenmagic ProductPrices helper so indexed prices match the storefront productPrice GraphQL query.
Package info
github.com/Invertus/brad-magento2-verkter-price-adapter
Type:magento2-module
pkg:composer/bradsearch/magento-verkter-price-adapter
Requires
- php: ~7.4.0||~8.1.0||~8.2.0||~8.3.0||~8.4.0
- bradsearch/magento-extension: *
- magento/framework: *
- magento/module-catalog: *
- magento/module-store: *
Requires (Dev)
- captainhook/captainhook: ^5.22
- captainhook/plugin-composer: ^5.3
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- magento/magento-coding-standard: *
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.6 || ^10.0
- squizlabs/php_codesniffer: ^3.7
- vimeo/psalm: ^6.0 <6.5
This package is not auto-updated.
Last update: 2026-04-25 10:21:02 UTC
README
Verkter-specific bridge between bradsearch/magento-extension and Magenmagic_ProductPrices.
Registers the Magento module Magenmagic_BradSearchPrice, which provides a single
<preference> overriding BradSearch\SearchGraphQl\Api\PriceCalculatorInterface
with an implementation that delegates to Magenmagic\ProductPrices\Helper\Price.
This guarantees that the calculated_price BradSearch indexes is the same value
the storefront returns from the productPrice GraphQL query — including country
scope, currency, special prices, and tax handling.
Why this exists as its own package
The bridge is client-specific (it depends on Verkter's Magenmagic_ProductPrices),
but it is extracted into its own composer package so that when Verkter engineers
refactor Magenmagic\ProductPrices\Helper\Price, the consumer shows up in
vendor/ search and does not silently rot. The alternative — keeping the bridge
inside app/code/Magenmagic/ — hides this coupling from IDE refactor tools.
Installation
Add the private composer registry to the consumer composer.json (already
configured in Verkter) and require the package:
composer require bradsearch/magento-verkter-price-adapter bin/magento setup:upgrade bin/magento setup:di:compile
Development
composer install # installs captainhook hooks automatically composer phpcbf # auto-fix Magento2 coding standard composer phpcs # Magento2 coding standard check composer phpstan # static analysis at level 6 composer psalm # static analysis at error level 4 composer test # phpunit unit tests composer check # all of the above
Pre-commit hooks run phpcbf + phpcs + phpstan on staged PHP files.
Pre-push runs psalm + full test suite.
Module dependency sequence
Magenmagic_BradSearchPrice sequences after:
BradSearch_SearchGraphQl— providesPriceCalculatorInterfaceandCalculatedPrice/PriceTuple/Moneyvalue objects.Magenmagic_ProductPrices— provides thePricehelper this bridge wraps.
Verification after install
bin/magento module:status Magenmagic_BradSearchPrice→enabled- Run a BradSearch-routed
products(search: "…")GraphQL query and compare theprice_range.minimum_price.final_priceagainst the storefrontproductPriceresponse for the same product + store view. They must match to the cent.