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.
- 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
- badgeOutOfStockText
- badgeText
- boxLabelDiscount
- Download the latest SschreierBadgeNavigationProductDetailPage-master.zip.
- Unzip the zip file and rename the folder to SschreierBadgeNavigationProductDetailPage.
- Move the folder to the project folder custom/plugins/ .
- Connect to the console via ssh:
bin/console plugin:refresh
bin/console plugin:install --activate SschreierBadgeNavigationProductDetailPage
- Add the repository URL to the composer.json of the project
"repositories": [
...,
{
"type": "vcs",
"url": "https://github.com/sschreier/SschreierBadgeNavigationProductDetailPage"
}
],
- 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
- Download the latest SschreierBadgeNavigationProductDetailPage-master.zip.
- Unzip the zip file and rename the folder to SschreierBadgeNavigationProductDetailPage.
- Zip the folder to SschreierBadgeNavigationProductDetailPage.zip.
- Upload the zip in the Shopware Administration.
- Install & Activate the extension.
- Download the latest SschreierBadgeNavigationProductDetailPage-master.zip.
- Unzip the zip file and rename the folder to SschreierBadgeNavigationProductDetailPage.
- Zip the folder to SschreierBadgeNavigationProductDetailPage.zip.
- Upload the zip in the Shopware Administration.
- Update the extension.