Magento 2 Product Label

Installation and User Guide for Magento 2 Prdouct Label Extension

Table of Contents

  1. Installation

    • Installation via app/code

    • Installation via Composer

  2. Configuration Settings for Product Label

    • General Settings

    • Product Label Grid

    • Add New Product Label

  3. Front-end Site View

    • Product Label on Category Page

    • Product Label on Product Page

Installation

  • Installation via app/code: Upload the content of the module to your root folder. This will not overwrite the existing Magento folder or files, only the new contents will be added. After the successful upload of the package, run below commands on Magento 2 root directory.

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
  • Installation via Composer: Please follow the guide provided in the below link to complete the installation via composer.

pageInstallation Via Composer

Configuration Settings for Product Label

Go to Admin > Stores > Configuration > Scommerce Configuration > Product Label

General Settings

  • Enabled – Select “Yes” or “No” to enable or disable the module.

  • License Key – Please add the license key for the extension which is provided in the order confirmation email. Please note license keys are site URL specific. If you require license keys for dev/staging sites then please email us at core@scommerce-mage.com

Product Label Grid

Go to Admin>Catalog>Scommerce Product Labels>Product Labels

Add New Product Label

Go to Admin>Catalog>Scommerce Product Labels>Product Labels>Add New Product Label

  • Status– Select “Enabled” or “Disabled” to enable or disable the product label.

  • Scope– Choose the website scope where the product label will be applicable

  • Text– Enter the text displayed in the product label. You can use the several special variables mentioned below the inputbox to create enticing labels. Following special variables can be used for the tag:-

      • {PRICE} - regular price;

      • {PRICE_EXTAX} - price excluding tax;

      • {BR} - new line

      • {SAVE_PERCENT} - save percent

      • {SAVE_PERCENT_EXTAX} - save percent excluding tax

      • {SAVE_AMOUNT} - save amount

      • {SAVE_AMOUNT_EXTAX} - save amount excluding tax

      • {SPECIAL_PRICE} - special price

      • {SPECIAL_PRICE_EXTAX} - special price excluding tax;

      • {ATTR:code} - attribute value, e.g. {ATTR:color}

      • {SPDL} - days left for special price

      • {SPHL} - hours left for special price

      • {NEW_FOR} - days ago the product was added

      • {SKU} - product SKU

      • {STOCK} - product qty (for product view page)

  • Upload Label Image– Upload the product label image

  • Hide From Category– Select “Yes” or “No” to hide or show the label on Category page.

  • Hide From Product– Select “Yes” or “No” to hide or show the label on product page.

  • Hide From Search– Select “Yes” or “No” to enable or disable the label on search page.

  • Priority– Add the priority of the label with 0 being the highest priority. Product with multiple labels assigned will display the lable with highest priority.

  • Conditions– Add conditions for the label as per your requirement

  • Text Size– Enter the text size for the product label.

  • Text Color– Enter the text color for the product label.

  • Background Color– Enter the background color for the product label.

  • Label Position– Enter the label position for the product label.

  • Custom CSS– Enter the custom CSS for the product label.

Front-end Site View

  • Product Label on Category Page

  • Product label on Product Page

  • Product label on Search Page

If you have a question related to this extension please check out our FAQ Section first. If you can't find the answer you are looking for then please contact support@scommerce-mage.com.

Last updated