Translations
Every piece of text the widget prints can be edited on the Translation tab. The tab is organised into cards, each card grouping closely related snippets, and every field is a Shopware snippet field — meaning you can override it per language (per Shopware snippet set) without touching code.
Weekdays — long and short
Section titled “Weekdays — long and short”Long (Monday, Tuesday, …) — used by date formats like l, j F (“Wednesday, 2 October”).
Short (Mon, Tue, …) — used by date formats like D, jS M (“Wed, 2nd Oct”) and by the message default (“ships Mon”).
Snippet keys: P2LabEstimatedDelivery.widget.global.monday … sunday (long) and mon … sun (short).
Months — long and short
Section titled “Months — long and short”Same idea — January … December for F, and Jan … Dec for M.
Snippet keys: january … december (long), jan_sh … dec_sh (short).
Today / tomorrow / “for X days”
Section titled “Today / tomorrow / “for X days””The Steps and Message widgets can substitute date placeholders with friendly relative labels:
| Snippet | Default | Used when |
|---|---|---|
today | today | Shipping date is today |
tomorrow | tomorrow | Shipping date is tomorrow |
for_x_days | for %xDays% days | Countdown spans multiple days |
Time units — singular / plural
Section titled “Time units — singular / plural”| Snippet | Default |
|---|---|
day | day |
days | days |
hour | hour |
hours | hours |
minute | minute |
minutes | minutes |
second | second |
seconds | seconds |
These power the %transDays%, %transHours%, %transMinutes%, %transSeconds% placeholders — they are auto-pluralised based on the numeric value next to them.
Message and tooltip
Section titled “Message and tooltip”| Snippet | Default |
|---|---|
message.text | <strong>🕖Cut-Off Time:</strong> %cutoffTime%, ships %shippingMinDateName% %tooltip% |
tooltip.text | Does not apply to holidays |
The message can be plain text, HTML, or contain any of the snippet variables.
Clock labels
Section titled “Clock labels”| Snippet | Default |
|---|---|
clock.orderInTheNext | Order in the next |
clock.orderInTheNextWithDays | Order in the next %days% %transDays% and |
clock.forDispatch | for dispatch |
clock.forDispatchDate | %shippingMinDate% |
Step labels
Section titled “Step labels”Each of the three steps has its own title and date snippet:
| Snippet | Default |
|---|---|
steps.step1.title | Order |
steps.step1.date | %todayDate% |
steps.step2.title | Shipping |
steps.step2.date | %shippingMinDate% |
steps.step3.title | Estimated Delivery |
steps.step3.date | %deliveryMinDate% - %deliveryMaxDate% |
How to override per language
Section titled “How to override per language”The snippet field component on the page edits one snippet set at a time — the one selected at the top of the Shopware admin. To translate the widget for a new language:
- Add the language to the Sales channel → Languages assignment so the language is active on the storefront.
- Switch the admin’s language to that language using the global language picker.
- Open the Translation tab and edit each snippet — the values you save are stored against that language’s snippet set.
Snippets that you haven’t customised fall back to the plugin’s built-in translations (en-GB and de-DE).
Snippet vs. configuration value
Section titled “Snippet vs. configuration value”A snippet field is not the same as a regular configuration field:
- A regular config field stores a value per sales channel.
- A snippet field stores a value per language (snippet set), independent of sales channel.
This means that two sales channels in the same language will share the same widget text, but two sales channels in different languages can have different text — which is almost always what you want.