Inhalte basierend auf Versandmethode anzeigen
Diese Seite wurde gedruckt um Nov 28, 2023. 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 eine Bedingung 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.
Zum Beispiel hast du möglicherweise eine lokale Abholoption für Kunden, die nahe genug an deinem stationären Geschäft wohnen. Du kannst die Einzelhandelsadresse deines Shops auf der Bestellstatusseite angeben, wenn Kunden die Option "lokale Abholung" 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: