You need to have the Amasty Product Labels module installed and configured within your Magento 2 installation.
composer require rapidez/amasty-label
If you haven't published the Rapidez views yet, publish them with:
php artisan vendor:publish --provider="Rapidez\Core\RapidezServiceProvider" --tag=views
Add @include('amastylabel::product')
where you'd like to display the labels, most likely somewhere around the images: resources/views/vendor/rapidez/product/overview.blade.php
.
Add @include('amastylabel::category')
in: resources/views/vendor/rapidez/category/partials/listing/item.blade.php
.
If you need to change the views you can publish them with:
php artisan vendor:publish --provider="Rapidez\AmastyLabel\AmastyLabelServiceProvider" --tag=views
Not all features are implemented yet! For example the priorities and shape/image label types aren't supported. Also not all variables are supported, supported variables:
SPECIAL_PRICE
PRICE
SAVE_AMOUNT
SAVE_PERCENT
GNU General Public License v3. Please see License File for more information.