For some products, the shipping carriers require the customer's email address. You'll find these settings in the shipping adapter configurations:
Transmit customer phone number to [the shipping carrier]
Transmit customer email address to [the shipping carrier]
If you select Transmit at customer's request for the email address setting, a corresponding checkbox appears in the checkout for every shipping method that has a product from the respective shipping carrier assigned to it in the shipping cost module. This way, the customer can decide for themselves whether to share their email address.
The checkbox text can also be customized. You'll learn how this works further below in this article.
Consequences of the customer's decision
If the customer agrees to share their data, the data is transmitted to the shipping carrier if necessary — for example, the customer's email address is also printed on the shipping label.
If the customer does not agree, the data is not transmitted to the shipping carrier and the corresponding fields in the shipping label creation screen are grayed out and not printed on the shipping label. However, since the email address is required for some products, a shipping label cannot be created for these products without the customer's consent. In this case, you should contact the customer and agree on an alternative shipping method with them.
You can see whether a customer has agreed to the data transfer in the order details, in the Overview tab. There, you can also give or withdraw consent on the customer's behalf by checking or unchecking the checkbox. Every change made here is also logged under Settings → Logfile → Backend log.
With DHL and UPS as shipping carriers, your customers also have the option to receive shipping notifications and package announcements from the carrier by email. You can find more information on this in the respective articles on the plugin configuration.
Sending an email notification from the backend
For all other shipping carriers that don't offer this service (or in addition to DHL and UPS, or if you've disabled their shipping notifications), you can also customize your Shopware email templates for shipping confirmation, including the tracking code. This way, your customers receive a shipping confirmation directly from your shop, either instead of or in addition to the email notifications from the shipping carrier. You'll find instructions on how to do this here.
Configuring the checkbox for sharing the email address
If you've configured the settings so that the email address is only transmitted to the shipping carrier at the customer's request, the checkbox outlined in red here appears by default:
The checkbox text can be customized individually via the Shopware text snippets under Settings → Text snippets. The name of the text snippet is transfer_customer_contact_data_allowed_label.
If you want to change parts of the text snippet depending on the customer's selected shipping method, you can implement this using a Smarty variable in the text snippets, for example as follows:
Ich stimme zu, dass meine E-Mail-Adresse an {if $sDispatch.name == "DHL"} DHL {elseif $sDispatch.name =="DPD"} DPD {else} den Versanddienstleister {/if} übermittelt wird.Here, the variable $sDispatch.name represents the name of the selected shipping method.

