Using the supplier in the storefront

The plugin makes the supplier object available at various places in the Shopware storefront. The following snippets can be used in custom theme overrides (Twig templates).


Product detail page

{{ page.product.extensions.supplier }}                  {# Supplier object #}
{{ page.product.extensions.supplier.translated.name }}  {# Supplier name #}

Offcanvas cart

{% for lineItem in page.cart.lineItems %}
  {{ lineItem.extensions.supplier }}                  {# Supplier object #}
  {{ lineItem.extensions.supplier.translated.name }}  {# Supplier name #}
{% endfor %}

Cart & checkout pages (Cart, Checkout, Finish)

{% sw_extends '@Storefront/storefront/page/checkout/checkout-item.html.twig' %}

{% block page_checkout_item_info_ordernumber %}
{{ parent() }}

{{ lineItem.extensions.supplier }}                  {# Supplier object #}
{{ lineItem.extensions.supplier.translated.name }}  {# Supplier name #}
{% endblock %}

Account order history


Documents (invoices, delivery notes)


Email templates

In dropshipping email templates the supplier name is available via the item object:

For all other email template variables see Email templates.

Zuletzt aktualisiert