Inhalte basierend auf Versandmethode anzeigen
Diese Seite wurde gedruckt um Jul 26, 2024. Die neueste Version findest du unter https://help.shopify.com/de/manual/orders/status-tracking/customize-order-status/show-content-based-on-shipping-method.
Du kannst ein bedingtes Skript mit der Variablen checkout.shipping_method.title
verwenden, um Inhalte auf der Bestellstatus-Seite anzuzeigen, wenn eine bestimmte Versandart für eine Bestellung verwendet wurde.
Du kannst zum Beispiel die Abholung im Geschäft für Kunden anbieten, die nicht weit entfernt von deinem stationären Geschäft wohnen. Du kannst die Einzelhandelsadresse deines Shops auf der Bestellstatus-Seite angeben, wenn Kunden die Option zur Abholung im Geschäft auswählen.
Schritte
- Navigiere in deinem Shopify-Adminbereich zu Einstellungen > Checkout.
- Scrolle nach unten zum Abschnitt Zusätzliche Skripte.
- Kopiere den folgenden Code in deine Zwischenablage (
Command + c
auf einem Mac,Strg + c
auf einem PC).
<script>
// DEBUG {{ checkout.shipping_method.title }} has been used
{% if checkout.shipping_method.title == 'Pick-up at the store' %}
Shopify.Checkout.OrderStatus.addContentBox(
`<p>Okay, we're ready for you to collect your products from 17 Mapple Crescent, Toronto. Our store is open 9:00 to 5:00 every day.</p>`
)
{% endif %}
</script>
- Füge den Code in das Feld Zusätzliche Skripte ein. (
Command + v
auf einem Mac,Strg + v
auf einem PC) - Führe eine Testbestellung aus, um deine Bestellstatusseite anzuzeigen:
- Tippe in der Shopify-App auf die Schaltfläche ... und anschließend auf Einstellungen.
- Tippe im Abschnitt Shop-Einstellungen auf Checkout.
- Scrolle nach unten zum Abschnitt Zusätzliche Skripte.
- Kopiere den folgenden Code in deine Zwischenablage (
Command + c
auf einem Mac,Strg + c
auf einem PC).
<script>
// DEBUG {{ checkout.shipping_method.title }} has been used
{% if checkout.shipping_method.title == 'Pick-up at the store' %}
Shopify.Checkout.OrderStatus.addContentBox(
`<p>Okay, we're ready for you to collect your products from 17 Mapple Crescent, Toronto. Our store is open 9:00 to 5:00 every day.</p>`
)
{% endif %}
</script>
- Füge den Code in das Feld Zusätzliche Skripte ein. (
Command + v
auf einem Mac,Strg + v
auf einem PC) - Führe eine Testbestellung aus, um deine Bestellstatusseite anzuzeigen:
- Tippe in der Shopify-App auf die Schaltfläche ... und anschließend auf Einstellungen.
- Tippe im Abschnitt Shop-Einstellungen auf Checkout.
- Scrolle nach unten zum Abschnitt Zusätzliche Skripte.
- Kopiere den folgenden Code in deine Zwischenablage (
Command + c
auf einem Mac,Strg + c
auf einem PC).
<script>
// DEBUG {{ checkout.shipping_method.title }} has been used
{% if checkout.shipping_method.title == 'Pick-up at the store' %}
Shopify.Checkout.OrderStatus.addContentBox(
`<p>Okay, we're ready for you to collect your products from 17 Mapple Crescent, Toronto. Our store is open 9:00 to 5:00 every day.</p>`
)
{% endif %}
</script>
- Füge den Code in das Feld Zusätzliche Skripte ein. (
Command + v
auf einem Mac,Strg + v
auf einem PC) - Führe eine Testbestellung aus, um deine Bestellstatusseite anzuzeigen: