amasty / module-smart-discounts-hook
Smart Discounts Hook by Amasty
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: >=7.4
- magento/module-adobe-commerce-webhooks: *
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
- Open your terminal and navigate to the root directory of your Magento installation.
- Run the following command to install the module:
composer require amasty/module-smart-discounts-hook
- 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.