Skip to content

A shopware 6 extension for badges for the navigation and the product detail page.

Notifications You must be signed in to change notification settings

sschreier/SschreierBadgeNavigationProductDetailPage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

A extension for badges for the navigation and the product detail page for Shopware 6

A extension for badges for the navigation and the product detail page. The text from the custom badges is set at the custom fields at the product. The background color and the font color of the badges could be set over the configuration or at the product. The custom badges are also displayed when assigning a product page layout. When you increase the value from the constant NUMBER_BADGES in the file SschreierBadgeNavigationProductDetailPage.php in the src-directory before the installation, you can add so much badges as you like.

Possible Configurations

  • select, if the discount badge should be shown in the category lists
  • select, if the discount badge should be shown on the product detail page
  • select, if the topseller badge should be shown in the category lists
  • select, if the topseller badge should be shown on the product detail page
  • select, if the new badge should be shown in the category lists
  • select, if the new badge should be shown on the product detail page
  • select, if the out of stock badge should be shown in the category lists
  • select, if the out of stock badge should be shown on the product detail page
  • set the background color of the out of stock badge
  • set the font color of the out of stock badge
  • set the content of the out of stock badge via snippet
  • select, if the custom badge 1 should be shown in the category lists
  • select, if the custom badge 1 should be shown on the product detail page
  • select, if the colors of the custom badge 1 should be set via the configuration
  • set the background color of the custom badge 1
  • set the font color of the custom badge 1
  • select, if the custom badge 2 should be shown in the category lists
  • select, if the custom badge 2 should be shown on the product detail page
  • select, if the colors of the custom badge 2 should be set via the configuration
  • set the background color of the custom badge 2
  • set the font color of the custom badge 2
  • select, if the custom badge 3 should be shown in the category lists
  • select, if the custom badge 3 should be shown on the product detail page
  • select, if the colors of the custom badge 3 should be set via the configuration
  • set the background color of the custom badge 3
  • set the font color of the custom badge 3
  • select, if the custom badge 4 should be shown in the category lists
  • select, if the custom badge 4 should be shown on the product detail page
  • select, if the colors of the custom badge 4 should be set via the configuration
  • set the background color of the custom badge 4
  • set the font color of the custom badge 4
  • select, if the custom badge 5 should be shown in the category lists
  • select, if the custom badge 5 should be shown on the product detail page
  • select, if the colors of the custom badge 5 should be set via the configuration
  • set the background color of the custom badge 5
  • set the font color of the custom badge 5

Available snippets

  • badgeOutOfStockText
  • badgeText
  • boxLabelDiscount

How to install the extension

via console (recommended)

  1. Download the latest SschreierBadgeNavigationProductDetailPage-master.zip.
  2. Unzip the zip file and rename the folder to SschreierBadgeNavigationProductDetailPage.
  3. Move the folder to the project folder custom/plugins/ .
  4. Connect to the console via ssh:
bin/console plugin:refresh
bin/console plugin:install --activate SschreierBadgeNavigationProductDetailPage

via composer

  1. Add the repository URL to the composer.json of the project
"repositories": [
    ...,
    {
        "type": "vcs",
        "url": "https://github.com/sschreier/SschreierBadgeNavigationProductDetailPage"
    }
],
  1. Connect to the console via ssh and install the plugin source code via the command
composer require sschreier/sschreierbadgenavigationproductdetailpage
bin/console plugin:refresh
bin/console plugin:install --activate SschreierBadgeNavigationProductDetailPage

via zip upload

  1. Download the latest SschreierBadgeNavigationProductDetailPage-master.zip.
  2. Unzip the zip file and rename the folder to SschreierBadgeNavigationProductDetailPage.
  3. Zip the folder to SschreierBadgeNavigationProductDetailPage.zip.
  4. Upload the zip in the Shopware Administration.
  5. Install & Activate the extension.

extension update (zip)

  1. Download the latest SschreierBadgeNavigationProductDetailPage-master.zip.
  2. Unzip the zip file and rename the folder to SschreierBadgeNavigationProductDetailPage.
  3. Zip the folder to SschreierBadgeNavigationProductDetailPage.zip.
  4. Upload the zip in the Shopware Administration.
  5. Update the extension.

Images

custom badge in navigation

custom badge in navigation

custom badge on product detail page

custom badge on product detail page

extension configuration part 1

extension configuration part 1

extension configuration part 2

extension configuration part 2

extension configuration part 3

extension configuration part 3

extension configuration part 4

extension configuration part 4

custom badges in shopware administration

custom badge in shopware administration