Manufacturer number instead of product number
Description
Highlights
Features
About the Extension
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.
Details
- Available: English, German
- Latest update: 4 December 2024
- Publication date: 19 May 2020
- Version: 4.0.3
- Category: Special features
Resources
Reviews (1)
Super einfach
About the Extension Partner
ACRIS E-Commerce GmbH
Partner Status
-
Shopware
Gold Partner -
Shopware
Premium Extension Partner
Details
- Ø-Rating: 4.9
- Partner since: 2015
- Extensions: 122
Support
- Based in: Austria
- Speaks: German, English
- Response time: Very quickly