blackaha / magento1-module-dynamic-pricing
Keeps your Magento 1 / OpenMage product prices in line with the prices you set in BlackAha: matched by SKU, applied automatically, every result reported back.
Package info
github.com/blackaha/BlackAha_DynamicPricingM1
Type:magento-module
pkg:composer/blackaha/magento1-module-dynamic-pricing
Requires
- php: >=7.2.0
- ext-curl: *
- ext-json: *
Requires (Dev)
None
Suggests
- magento-hackathon/magento-composer-installer: Installs the files listed in modman into the Magento root
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-11-27 05:57:56 UTC
README
Keeps your Magento 1 product prices in line with the prices you set in BlackAha. When BlackAha sends a new price, the module finds the product by its SKU, updates the price, and tells BlackAha whether it worked and why not when it didn't. You stay in control: nothing is converted, rounded or guessed.
- Module
BlackAha_DynamicPricingM1, version 1.0.0 - Magento Open Source 1.9.4 or OpenMage LTS 19 / 20 · PHP 7.2 to 8.5 with the
curlandjsonextensions - License: OSL-3.0 and AFL-3.0 (see
LICENSE.txtandLICENSE_AFL.txt) - Requires a BlackAha account whose plan includes automatic price updates
For Magento 2, use the separate module BlackAha_DynamicPricing (blackaha/module-dynamic-pricing).
What you need
- Magento 1.9.4 or OpenMage LTS 19 / 20.
- Your store served over HTTPS on a public domain (for example
https://www.myshop.com). Stores onlocalhost, an IP address or plainhttp://cannot be connected. - In System → Configuration → General → Web → Secure, for the default store view: the Base URL and Base Link URL on that same HTTPS address.
- A SKU on every product you want BlackAha to update. Prices go to simple, virtual and downloadable products; for configurable, bundle and grouped products, use the SKUs of their simple products.
- Your store's base currency (System → Configuration → General → Currency Setup) must be the currency your BlackAha prices are in.
Installation
The package follows the Magento 1 directory layout: app/ and skin/ go into the root of your Magento installation.
From the zip file
- Disable compilation if it is on (System → Tools → Compilation), or run
php shell/compiler.php disable. - Unzip the package into the root of your Magento installation, so that
app/etc/modules/BlackAha_DynamicPricingM1.xmlandapp/code/community/BlackAha/DynamicPricingM1/exist. - Flush the cache (System → Cache Management → Flush Magento Cache). The module creates its tables on the next request.
- Sign out of the admin and sign in again so that the new menu entry and permissions appear.
- If you use compilation, run it again.
With modman or Composer
The package contains a modman file. With modman:
modman clone <repository-url>
With Composer and magento-hackathon/magento-composer-installer:
composer require blackaha/magento1-module-dynamic-pricing
Then flush the cache and sign in to the admin again, as above. With modman symlinks, allow symlinks in System → Configuration → Advanced → Developer → Template Settings.
The module does not change any Magento file. It adds its own database tables, the menu entry
Catalog → Pricing Updater, a configuration section, and a daily cleanup cron job. Make sure the Magento cron is
running (cron.sh or cron.php every few minutes).
Connecting your store to BlackAha
One-click connection (recommended)
- Open Catalog → Pricing Updater.
- Check that both lines under Connect your store to BlackAha show a green tick. If not, see Troubleshooting.
- Click Connect to BlackAha. Sign in to BlackAha if asked, and approve the connection.
- You are brought back to Magento, which shows Configuration successful.
- In BlackAha, open Workspace Settings → Pricing rules → Store connection and click Test connection. The page in Magento then shows Connected.
BlackAha sends no price until the connection test has succeeded.
Manual connection
Use this if the one-click connection is not available for your store.
- Open Catalog → Pricing Updater and expand Connect manually.
- Click Copy next to Webhook URL.
- In BlackAha, open Workspace Settings → Pricing rules → Store connection, paste the Webhook URL and save. BlackAha shows a signing secret once: copy it.
- Back in Magento, paste it into Signing secret and click Save signing secret.
- In BlackAha, click Test connection.
Keep the signing secret private. It is stored encrypted, never shown again, and saving a new one replaces the old one.
Settings
System → Configuration → Catalog → BlackAha Pricing Updater → Price updates
- Website for price updates: used only when System → Configuration → Catalog → Catalog → Price → Catalog Price Scope is Website. Prices are written to this one website, never to all websites at once. With a single website it is chosen automatically. With the scope set to Global, prices apply to every website.
- Keep results for (days): how long results are kept (30 by default). A repeated update within this time is answered from the stored result instead of being applied again.
How prices are applied
- Each price is matched to exactly one product by SKU. If no product has that SKU, nothing is changed.
- A price counts as applied when a guest (NOT LOGGED IN customer group) buying one unit, before tax, in the base currency, pays exactly that price. This takes special prices, tier prices and catalog price rules into account. If the store would show another price, BlackAha shows the reason, with the price customers actually pay.
- Special prices:
- A product with a running special price keeps its regular price; the new price becomes the special price when it is lower than the regular price, so the product still shows as discounted.
- A new price equal to or above the regular price becomes the regular price, and the special price is removed.
- Prices are never converted to another currency and never rounded: a price with more than 2 decimals is reported as not applied.
- A price sent twice is applied once. BlackAha may resend an update; the module answers with the first result.
- Prices are saved the way Catalog → Manage Products → Update Attributes saves them. With the indexes on Update on Save, the price index and the catalog price rule prices of the product are refreshed right away, and the product's pages are cleared from the cache. With Manual Update, category pages and search show the new price after the next reindex.
Every update is listed under Recent price updates on the Pricing Updater page, with its result and, when it was not applied, the reason.
Troubleshooting
| Message or symptom | What to do |
|---|---|
| Your store must use HTTPS on a public domain to connect. | Serve the store over HTTPS on its public domain, and set the secure Base URL of the default store view to that address. |
| The base URL and the base link URL of the default store view use different domains or protocols. | In System → Configuration → General → Web → Secure, make Base URL and Base Link URL the same HTTPS address, for the default store view. |
| This store's addresses were not accepted (…). | Same as above. |
| The connection could not be started (invalid_request). | One-click connection is not available for your store yet. Use Connect manually. |
| Your plan does not include automatic price updates. | Upgrade your BlackAha plan, then connect again. |
| Your server clock is more than a day off… | Ask your host to correct the server time, or connect manually. |
| Too many connection attempts. | Wait the number of seconds shown, then try again. |
| Connection cancelled. | You declined the connection in BlackAha. Click Connect again when you are ready. |
| The connection test in BlackAha fails | Allow requests to /dynamicpricing/ in Cloudflare, your firewall or WAF, and make sure Varnish or any page cache passes POST requests to /dynamicpricing/ through. Remove maintenance.flag if the store is in maintenance mode. |
| No product with SKU "…" was found in the store. | Add the SKU to the product, exactly as it is written in BlackAha. |
| SKU "…" belongs to a configurable product… | Use the SKU of the simple product (the variant) in BlackAha. |
| The price is in EUR but the store's base currency is USD. | Use the same currency in BlackAha and in Magento. Prices are never converted. |
| The store sets prices per website, and no website is chosen… | Choose Website for price updates in the settings above. |
| The store did not keep the new price: … the product sells at … | A catalog price rule, a tier price or another extension changes the price. Adjust it, then send the price again. |
| The menu entry does not appear, or the page says Access denied | Sign out of the admin and sign in again; check that your admin role has Catalog → Pricing Updater allowed (System → Permissions → Roles). |
| The page shows 404 Not Found in the admin | Flush the cache, and disable then re-run compilation if it is on. |
The module writes connection problems (never secrets) to var/log/dynamic_pricing.log, whether or not logging is
switched on in the developer settings. Please include the relevant lines when you contact support.
Disconnecting and uninstalling
-
Disconnect (on the Pricing Updater page) removes the signing secret: the store refuses price updates until it is connected again.
-
To uninstall, delete the files listed in
modman(or runmodman remove), flush the cache, and remove what the module stored in the database (add your table prefix if you use one):DROP TABLE IF EXISTS blackaha_dynamic_pricing_ledger, blackaha_dynamic_pricing_nonce; DELETE FROM core_flag WHERE flag_code LIKE 'blackaha_dynamic_pricing_%'; DELETE FROM core_config_data WHERE path LIKE 'blackaha_dynamic_pricing/%'; DELETE FROM core_resource WHERE code = 'blackaha_dynamicpricingm1_setup';
Prices already applied stay as they are.
Privacy
The module stores, in your Magento database: the signing secret (encrypted), the BlackAha workspace it is connected to, and the results of price updates (SKU, price, result, date). It stores no customer data and sends BlackAha only the results of the updates it received, plus your store's address when you connect.
Support
- Email: support@blackaha.com
- Website: https://app.blackaha.com
License
Copyright © 2026 BlackAha. Licensed under the Open Software License 3.0 (LICENSE.txt) and the Academic Free
License 3.0 (LICENSE_AFL.txt).