How to edit the default notification message "Free Gift {name of the product} was added to your shopping cart"?

How to edit the default notification message "Free Gift {name of the product} was added to your shopping cart"?

You can change the default notification message to a more suitable one by modifying the translation file of the extension. Please follow the steps below to do so.

Step 1. Navigate to the extension’s directory. The location of the directory depends on the way of installation:

app/code/Amasty/auto-add-promo-items/i18n/ - for extensions installed via manual file upload;
vendor/amasty/promo/i18n - for extensions installed via Composer.

Step 2. For modifying the content of the notification, you can do the changes in the file of the main locale (out of the box, it's en_US.csv file). Or you can copy the en_US.csv file and rename it to the needed language code (e.g. pt_BR.csv) for translation of the notification text;

Step 3. Edit the file, replacing the right side of the line with edited/translated content: 



To make that translation appear on the frontend, please run the commands below: 

php bin/magento setup:static-content:deploy
php bin/magento cache:flush

As a result, the customized message will be displayed once the gift item is added to the cart: