Manufacturer number instead of product number
Product information "Manufacturer number instead of product number"
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.
Â
- Compatibility with Shopware 6.7.
- Support for the following languages: de-DE, en-GB, nl-NL, fr-FR, es-ES, fi-FI, nn-NO, sv-SE, cs-CZ, pt-PT, tr-TR, da-DK, it-IT, pl-PL, bs-BA
- Optimised compatibility with ACRIS Seo Tools plugin.
- Fixed wrong product number in Fast order search suggest.
- Improved compatibility with ACRIS Fast Order plugin.
- Compatibility optimizations with 3rd party plugins.
- Compatibility with Shopware 6.6.
- Compatibility optimizations with 3rd party plugins.
- Compatibility with ACRIS Product Info Text plugin.
- Fixes a problem loading the manufacturer number
- Improves compatibility with the layout1 of the AcrisSearch plugin
- Compatibility with Shopware 6.5.
- Fixes a problem loading the manufacturer number
- Improves compatibility with the layout1 of the AcrisSearch plugin
- Change of the plugin name and the manufacturer links.
- Optimizes plugin image.
- Improved compatibility with Shopware 6.4*.
Login
1 review
21 October 2021 11:53
Super einfach
Einfacher geht es nicht, die Herstellernummer anstatt der Shopware Artikelnummer im Frontend zu nutzen.