amasty/module-smart-discounts-hook

Smart Discounts Hook by Amasty

1.0.0 2025-07-22 07:54 UTC

This package is auto-updated.

Last update: 2025-07-22 08:19:04 UTC


README

Overview

The extension is required for Magento 2 compatibility with the Smart Discounts extension on App Builder.

Key Features:

  • Verifies the connection to the Smart Discounts application via a provided URL input;
  • Adds the relevant discount to the order total;
  • Converts the applied discount into the store’s set currency.

Installation

Installation via Composer

  1. Open your terminal and navigate to the root directory of your Magento installation.
  2. Run the following command to install the module:
composer require amasty/module-smart-discounts-hook
  1. Enable the module by running:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush

Requirenements

This module requires:

  • PHP version 7.4 and higher
  • Magento_AdobeCommerceWebhooks module

Configuration

Navigate to Stores > System > Configuration > Amasty Smart Discounts > Settings and insert the webhook URL into the Webhook URL field. Once you’ve verified that the connection is successful, generate the module by running bin/magento webhooks:generate:module.
Please make sure to accurately copy the webhook URL from the Smart Discounts app settings page. If the URL is incorrect, the app may show errors when products are added to the cart.