Manufacturer number instead of product number
Technical Information
Highlights
-
Use manufacturer number instead of product number
-
Display on product detail page, cart & order confirmation
-
Integration into documents & email templates possible
Features
-
Display of the manufacturer number instead of the product number
-
Product number as fallback - if the manufacturer number has not been maintained
-
Provided code snippet can be easily used in documents or e-mail templates
-
SEO URL customization with provided code snippet possible
-
Works with the standard search (search finds the manufacturer number of the article)
Configuration of the plugin
After installing the plugin, the manufacturer number is always displayed as soon as it has been filled at the product.If you want the manufacturer number to be displayed in the order confirmation email, you have to replace one line of HTML code:
Adjust documents and e-mail templates
using the example of the order confirmation e-mail
In the Shopware standard the product number is displayed in the email templates and documents. If the manufacturer number should also be displayed in the order confirmation (analogous in documents or other e-mail templates), then a small adjustment is necessary:
Shopware Admin: Settings -> Shop -> E-Mail templates -> "edit" order confirmation
In the mail text area in line 10 and in HTML line 25
instead of
{% if lineItem.payload.productNumber is defined %}{{ lineItem.payload.productNumber|u.wordwrap(80) }}{% endif %}Â Â Â
 this line must be inserted
{% if lineItem.payload.manufacturerNumber is defined %}Artikel-Nr: {{ lineItem.payload.manufacturerNumber|u.wordwrap(80) }}{% else %}{% if lineItem.payload.productNumber is defined %}Artikel-Nr: {{ lineItem.payload.productNumber|u.wordwrap(80) }}{% endif %}{% endif %}
Adaptation of further templates
If you need further adjustments for invoice, delivery note or other e-mail templates, then you can exchange the above program line analogous to the order confirmation e-mail instructions.
Search
The Shopware Standard Search also finds the "new" product number - i.e. manufacturer number automatically.
SEO URL
If the SEO Url should also be adapted accordingly, then please proceed as follows:
Settings -> SEO in the product detail page
instead of
{{ product.translated.name }}/{{ product.productNumber }}
this line must be inserted
{{ product.translated.name }}/{% if product.manufacturerNumber %}{{ product.manufacturerNumber }}{% else %}{{ product.productNumber }}{% endif %}Using the plugin
Application example: The shop owner wants to display the manufacturer number instead of the product number.
(Of course, you can also enter any other number in the Manufacturer Number field (alphanumeric))
For documents or e-mail templates a small customization is required - see configuration info above.
Plugin Manager via Settings > System > Plugins
Upload, install and activate the plugin
no further configuration of the plugin required
Frequently Asked Questions
Es wurden keine Fragen gefunden. Kontaktieren Sie uns, wenn Sie konkrete Fragen haben!| Version | Date | Compatibility | Changelog |
|---|---|---|---|
| 5.0.0 | 10 May 2025 | >=6.7.0.0 <6.8.0.0 |
|
| 4.0.4 | 6 May 2025 | >=6.6.0.0 <6.7.0.0 |
|
| 4.0.3 | 4 December 2024 | >=6.6.0.0 <6.7.0.0 |
|
| 4.0.2 | 28 November 2024 | >=6.6.0.0 <6.7.0.0 |
|
| 4.0.1 | 25 June 2024 | >=6.6.0.0 <6.7.0.0 |
|
| 4.0.0 | 20 March 2024 | >=6.6.0.0 |
|
| 3.0.4 | 25 June 2024 | >=6.5.0.0 |
|
| 3.0.3 | 12 February 2024 | >=6.5.0.0 |
|
| 3.0.2 | 26 June 2023 | >=6.5.0.0 |
|
| 3.0.1 | 26 June 2023 | >=6.5.0.0 |
|
| 3.0.0 | 23 March 2023 | >=6.5.0.0 |
|
| 2.0.4 | 26 June 2023 | >=6.4.12.0 < 6.5.0.0 |
|
| 2.0.3 | 26 June 2023 | >=6.4.12.0 |
|
| 2.0.2 | 15 February 2023 | >=6.4.0.0 |
|
| 2.0.1 | 26 November 2022 | >=6.4.0.0 |
|
| 2.0.0 | 26 November 2022 | >=6.4.0.0 |
|
Login
Super einfach
Einfacher geht es nicht, die Herstellernummer anstatt der Shopware Artikelnummer im Frontend zu nutzen.