SwissUpLabs Logo

Manual Installation

1. Download archive

Open your account page at the swissuplabs.com and download the archive from the “Downloads” page.

Do not unpack the archive! Just put it into <magento_root>/swissup folder.

2. Install the package

Automatic mode
curl -s https://raw.githubusercontent.com/swissup/scripts/master/install | bash -s - -l 'en_US en_GB'
  1. Unpack downloaded archive into <magento_root>/vendor/swissup/artifacts folder:

    mkdir -p vendor/swissup/artifacts
    unzip swissup.pro-labels-[version].zip -d vendor/swissup/artifacts
    
  2. Run composer and magento commands:

    composer config repositories.swissupartifacts artifact $(pwd)/vendor/swissup/artifacts
    
    # 0. Get the sources
    composer require swissup/pro-labels
    
    # 1. Enable new modules
    php bin/magento module:enable Swissup_Core Swissup_ProLabels
    
    # 2. Run magento upgrade scripts
    php bin/magento setup:upgrade
    
    # 3. Remove outdated files
    rm -rf pub/static/_requirejs var/view_preprocessed pub/static/frontend/ pub/static/adminhtml/ generated/code/
    
    # 4. If you use Production Mode you need to deploy static content and run di:compile command
    php bin/magento setup:static-content:deploy en_US en_GB
    php bin/magento setup:di:compile
    

If you want to use old module version that wasn’t released in a new archive format, follow the steps below:

  1. Unpack downloaded archive into <magento_root> folder.
  2. Run the following commands in terminal:

    # 1. Enable new modules
    php bin/magento module:enable Swissup_Core Swissup_ProLabels
    
    # 2. Run magento upgrade scripts
    php bin/magento setup:upgrade
    
    # 3. Remove outdated files
    rm -rf pub/static/_requirejs var/view_preprocessed pub/static/frontend/ pub/static/adminhtml/ generated/code/
    
    # 4. If you use Production Mode you need to deploy static content and run di:compile command
    php bin/magento setup:static-content:deploy en_US en_GB
    php bin/magento setup:di:compile
    

Upgrade from version 1.0.x to 1.1.0

You can get errors when you try to run setup:di:compile after upgrade. To solve them you have to remove deprecated files:

Block/Adminhtml/Label/Edit/Form.php
Block/Adminhtml/Label/Edit/Tab/Category.php
Block/Adminhtml/Label/Edit/Tab/Index/Grid.php
Block/Adminhtml/Label/Edit/Tab/Main.php
Block/Adminhtml/Label/Edit/Tab/Product.php
Block/Adminhtml/Label/Edit/Tabs.php
Block/Adminhtml/Label/Helper/CategoryImage.php
Block/Adminhtml/Label/Helper/ProductImage.php
Controller/Adminhtml/Label/NewConditionHtml.php
Model/Label/CategoryImage.php
Model/Label/CategoryUpload.php
Model/Label/ProductImage.php
Model/Label/ProductUpload.php
Ui/Component/Listing/Columns/CategoryImage.php
Ui/Component/Listing/Columns/ProductImage.php
view/adminhtml/requirejs-config.js
view/frontend/requirejs-config.js
view/frontend/web/css/prolabels.css
view/frontend/web/js/prolabel-product-view.js

Labels in Catalog and Search pages

ProLabels module does not require any changes in any templates or other source code files.

Installation instraction for ProLabels version 1.0.x reqired modification of theme templates to get labels on listing page. You can leave this modifications or rollback them. There are no conflicts with old version.

Reindex Labels From Command Line

    cd <magento_root>
    bin/magento prolabels:reindex:all
After installing the extension you can go to:
Edit this Page