Labels do not appear on the storefront. What might be the issue?

Labels do not appear on the storefront. What might be the issue?

Checking module settings

First, extension settings and label conditions should be configured correctly. Please review the configurations following these tips:
      
1. Make sure to choose the correct attribute in Amasty → Product Labels → choose the label Product Conditions tab, and that products with such values are active in your store. To quickly check products that fall under given conditions, use the Preview Products button:



If you can't find the required attribute in the conditions list, please refer to another article to find out how you can add it: How to add attributes to label conditions? 
 
2. If the labels are to be applied to specific products and you set comma-separated attribute values in one condition line, make sure to choose the 'is one of' option in the rule: 



3. For the Is New condition to work properly, its general configurations should be set correctly. Please review another article to make sure it is configured as per your expectations: How does the 'Is New' condition work? 
     

Technical check

If all the settings are correct, we'd recommend running a technical check on cron and caches:

1. In case Redis or Varnish caches are in use, try to flush them and check if the labels appear. 

2. If the above point doesn't help or is not relevant, navigate to System → Index Management, choose the Product Labels indexers and move them to the Update On Save mode with the help of the Actions option:




a. If the labels appear on the frontend after this action, check if the cron is configured on your end with the help of this command: 

crontab -l

The output of the command should be similar to the one mentioned in the official Magento documentation

#~ MAGENTO START c5f9e5ed71cceaabc4d4fd9b3e827a2b
* * * * * /usr/bin/php /var/www/html/magento2/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /var/www/html/magento2/var/log/magento.cron.log
#~ MAGENTO END c5f9e5ed71cceaabc4d4fd9b3e827a2b

b. If it turned out that the cron is not set, configure it according to the Magento guidelines to make sure the labels appear on the storefront by schedule. 


In case the above instructions do not help or you can't perform them yourself, please contact our support team. We will check the issue on your side and make sure the extension works smoothly. 
      • Related Articles

      • I don't see some attributes in the conditions list of labels rules. How can I add them?

        Some attributes might not be available in the conditions list when you create a new label. To add an attribute to the labels conditions follow the steps below. Step 1. Navigate to Stores → Attributes → Product, choose the attribute and open the ...
      • How to ensure product labels are responsive?

        Occasionally, labels may appear excessively large in contrast to the product image when viewed on mobile devices. This problem usually stems from the Label Size setting not being correctly configured. To ensure your labels remain responsive on mobile ...
      • Product Labels API

        Amasty\Label\Api\LabelRepositoryInterface - class for managing lables: GET /V1/amasty_labels/get/:id, method="getById" - get information about a label; DELETE /V1/amasty_labels/delete/:id, method="deleteById" - delete a label; POST ...
      • I face some issues with the Elastic Search extension. What should I check?

        If the extension doesn't work as expected (e.g. search results are not relevant or do not display at all), we'd recommend checking the module configurations following the instructions below. 1. A compatible version of the Elasticsearch Engine should ...
      • Can labels be created on a per-store basis?

        The Product Labels extension offers the capability to select a specific store where the label will be displayed. To set this up, go to the label configuration page and find the Store View field. Select the desired store view from the provided list. ...