Bestellbestätigung ignoriert meine Bearbeitung (Bankverbindung angegeben)

Guten Tag,

ich versuche gerade, die Bankverbindung bei E-Mail Bestätigungen einzubinden, die Vorkasse ausgewählt haben.

In der Theorie ist das ganz leicht, in der Praxis wird mein Code ignoriert. Darüber hinaus ist mir aufgefallen, dass in dem Template Variablen für einen nicht abgeschlossenen Kauf sind

 {% if has_pending_payment %}
    {% if buyer_action_required %}
      Du erhältst eine Bestätigungs-E-Mail, nachdem du deine Zahlung abgeschlossen hast.

die aber bei Auswahl von Vorkasse gar nicht benutzt werden. Es wird in der E-Mail direkt ausgegeben:

Wir bereiten deine Bestellung gerade für den Versand vor. Wir benachrichtigen dich, sobald die Bestellung verschickt wurde.

obwohl die Zahlung ausstehend ist.

Ich habe das mit Testkäufen geprüft!

Zurück zum eigentlichen Anliegen:

Ich habe, entsprechend dieser Anleitung, den Code entsprechend modifiziert. Zum finden einfach nach “Bitte überweisen Sie den Betrag auf folgendes Konto” suchen.

Kann mir jemand sagen, warum es nicht funktioniert?

Liebe Grüße

Show More

{% capture email_title %} {% if has_pending_payment %} Vielen Dank für deine Bestellung! {% else %} Vielen Dank für deinen Einkauf! {% endif %} {% endcapture %} {% capture email_body %} {% if has_pending_payment %} {% if buyer_action_required %} Du erhältst eine Bestätigungs-E-Mail, nachdem du deine Zahlung abgeschlossen hast. {% else %} Deine Zahlung wird verarbeitet. Du erhältst eine E-Mail, wenn deine Bestellung bestätigt ist. {% endif %} {% else %} {% if requires_shipping %} {% case delivery_method %} {% when ‘pick-up’ %} Du erhältst eine E-Mail, sobald deine Bestellung zur Abholung bereit ist. {% when ‘local’ %} Hallo {{ customer.first_name }}! Wir bereiten deine Bestellung gerade für die Zustellung vor. {% else %} Wir bereiten deine Bestellung gerade für den Versand vor. Wir benachrichtigen dich, sobald die Bestellung verschickt wurde. {% endcase %} {% if delivery_instructions != blank %}

Informationen zur Zustellung: {{ delivery_instructions }}

{% endif %} {% if consolidated_estimated_delivery_time %}

Voraussichtliche Zustellung {{ consolidated_estimated_delivery_time }}

{% endif %} {% endif %} {% endif %} {% assign gift_card_line_items = line_items | where: “gift_card” %} {% assign found_gift_card_with_recipient_email = false %} {% for line_item in gift_card_line_items %} {% if line_item.properties[“__shopify_send_gift_card_to_recipient”] and line_item.properties[“Recipient email”] %} {% assign found_gift_card_with_recipient_email = true %} {% break %} {% endif %} {% endfor %} {% if found_gift_card_with_recipient_email %}

Der Empfänger deines Geschenkgutschein erhält eine E-Mail mit dem Code des Geschenkgutscheins.

{% elsif gift_card_line_items.first %}

Du erhältst separate Benachrichtigungen für Geschenkgutscheine.

{% endif %} {% endcapture %}

{%- if po_number %} {%- endif %}

{%- if shop.email_logo_url %} {%- else %} # {{ shop.name }} {%- endif %}

Bestellung {{ order_name }}

Bestellnummer {{ po_number }}

## {{ email_title }}

{{ email_body }}

{% assign transaction_count = transactions | size %} {% if transaction_count > 0 %} {% for transaction in transactions %} {% if transaction.show_buyer_pending_payment_instructions? %}

{{transaction.buyer_pending_payment_notice}}

{% for instruction in transaction.buyer_pending_payment_instructions %} {% endfor %} {% for instruction in transaction.buyer_pending_payment_instructions %} {% endfor %}

{{ instruction.header }}

Betrag

{{ instruction.value }}

{{transaction.amount | money}}

{% endif %} {% endfor%} {% endif %} {% if order_status_url %}

Bestellung ansehen

{% if shop.url %}

oder Zu unserem Shop

{% endif %} {% else %} {% if shop.url %}

Zu unserem Shop

{% endif %} {% endif %}

Bestellübersicht

{% for line in subtotal_line_items %} {% endfor %}
{% if line.product.title %} {% assign line_title = line.product.title %} {% else %} {% assign line_title = line.title %} {% endif %} {% if line.quantity < line.quantity %} {% capture line_display %} {{ line.quantity }} of {{ line.quantity }} {% endcapture %} {% else %} {% assign line_display = line.quantity %} {% endif %} {{ line_title }} × {{ line_display }} {% if line.variant.title != 'Default Title' %} {{ line.variant.title }} {% endif %} {% for group in line.groups %} Teil von: {{ group.display_title }} {% endfor %} {% if line.gift_card and line.properties["__shopify_send_gift_card_to_recipient"] %} {% for property in line.properties %} {% assign property_first_char = property.first | slice: 0 %} {% if property.last != blank and property_first_char != '_' %}
{{ property.first }}:
{% if property.last contains '/uploads/' %} {{ property.last | split: '/' | last }} {% else %} {{ property.last }} {% endif %}
{% endif %} {% endfor %} {% endif %} {% if line.selling_plan_allocation %} {{ line.selling_plan_allocation.selling_plan.name }} {% endif %} {% if line.refunded_quantity > 0 %} Zurückerstattet {% endif %} {% if line.discount_allocations %} {% for discount_allocation in line.discount_allocations %} {% if discount_allocation.discount_application.target_selection != 'all' %} {{ discount_allocation.discount_application.title | upcase }} (-{{ discount_allocation.amount | money }}) {% endif %} {% endfor %} {% endif %} {% if line.original_line_price != line.final_line_price %} {{ line.original_line_price | money }} {% endif %}

{% if line.final_line_price > 0 %} {{ line.final_line_price | money }} {% if line.unit_price_measurement %}

{{ line.unit_price | money }}/ {%- if line.unit_price_measurement.reference_value != 1 -%} {{- line.unit_price_measurement.reference_value -}} {%- endif -%} {{ line.unit_price_measurement.reference_unit }}
{% endif %} {% else %} Kostenlos {% endif %}

{% if line.image %} {% endif %}

{% for discount_application in discount_applications %} {% if discount_application.target_selection == 'all' %} {% capture discount_title %} {% if discount_application.title %} {{ discount_application.title | upcase }} {% else %} Rabatt {% endif %} {% endcapture %} {% endif %} {% endfor %} {% if delivery_method == 'pick-up' %} {% else %} {% endif %} {% if total_duties %} {% endif %} {% if total_tip and total_tip > 0 %} {% endif %}

Rabatt {{ discount_title }}

-{{ discount_application.total_allocated_amount | money }}

Zwischensumme

{{ subtotal_price | money }}

Abholungen

{{ shipping_price | money }}

Versand

{{ shipping_price | money }}

Zollgebühren

{{ total_duties | money }}

Steuern

{{ tax_price | money }}

Tip

{{ total_tip | money }}

{% assign transaction_size = 0 %} {% assign transaction_amount = 0 %} {% for transaction in transactions %} {% if transaction.status == "success" %} {% unless transaction.kind == "authorization" or transaction.kind == "void" %} {% assign transaction_size = transaction_size | plus: 1 %} {% assign transaction_amount = transaction_amount | plus: transaction.amount %} {% endunless %} {% endif %} {% endfor %} {% if payment_terms %} {% assign due_at_date = payment_terms.next_payment.due_at | date: "%b %d, %Y" %} {% else %} {% endif %}

Gesamtbetrag heute bezahlt

{{ transaction_amount | money_with_currency }}

Gesamtbetrag am {{ due_at_date }} fällig

{{ payment_terms.next_payment.amount_due | money_with_currency }}

Gesamt

{{ total_price | money_with_currency }}

{% if total_discounts > 0 %}

Du hast {{ total_discounts | money }} gespart

{% endif %} {% unless payment_terms %} {% if transaction_size > 1 or transaction_amount < total_price %} {% for transaction in transactions %} {% if transaction.status == “success” and transaction.kind == “capture” or transaction.kind == “sale” %} {% if transaction.payment_details.credit_card_company %} {% capture transaction_name %}{{ transaction.payment_details.credit_card_company }} (mit den letzten Ziffern {{ transaction.payment_details.credit_card_last_four_digits }}){% endcapture %} {% else %} {% capture transaction_name %}{{ transaction.gateway_display_name }}{% endcapture %} {% endif %} {% endif %} {% if transaction.kind == ‘refund’ %} {% if transaction.payment_details.credit_card_company %} {% assign refund_method_title = transaction.payment_details.credit_card_company %} {% else %} {% assign refund_method_title = transaction.gateway %} {% endif %} {% endif %} {% endfor %}

Zurückerstatten
{{ refund_method_title | capitalize }}

- {{ transaction.amount | money }}

{{transaction_name}}

{{ transaction.amount | money }}

{% endif %} {% endunless %}

Kundeninformationen

{% if requires_shipping and shipping_address %} {% endif %} {% if billing_address %} {% endif %}

Lieferadresse {{ shipping_address | format_address }}

Rechnungsadresse {{ billing_address | format_address }}

{% if company_location %} {% endif %} {% if transaction_size > 0 or payment_terms %} {% endif %} {% if requires_shipping and shipping_address %} {% if shipping_method %} {% endif %} {% endif %}

Standort

{{ company_location.name }}

Zahlung

{% if payment_terms %} {% assign due_date = payment_terms.next_payment.due_at | default: nil %} {% if payment_terms.type == ‘receipt’ or payment_terms.type == ‘fulfillment’ and payment_terms.next_payment.due_at == nil %} {{ payment_terms.translated_name }}
{% else %} {{ payment_terms.translated_name }}: fällig am {{ due_date | date: format: ‘date’ }}
{% endif %} {% endif %} {% if transaction_size > 0 %} {% for transaction in transactions %} {% if transaction.status == “success” or transaction.status == “pending” %} {% if transaction.kind == “capture” or transaction.kind == “sale” %} {% if transaction.payment_details.credit_card_company %} endet mit {{ transaction.payment_details.credit_card_last_four_digits }}
{% elsif transaction.gateway_display_name == “Gift card” %} endet mit {{ transaction.payment_details.gift_card.last_four_characters | upcase }}
    Geschenkgutscheinguthaben - {{ transaction.payment_details.gift_card.balance | money }} {% elsif transaction.gateway_display_name != “Shop Cash” %} {{ transaction.gateway_display_name }}
{% endif %} {% elsif transaction.kind == “authorization” and transaction.gateway_display_name == “Shop Cash” %} Shop Cash - {{ transaction.amount | money }} {% endif %} {% endif %} {% endfor %} {% endif %} {% if transaction.gateway == “Bank Deposit” %}

Bitte überweisen Sie den Betrag auf folgendes Konto:
Name: XXX
IBAN: XXX
BIC: XXX

{% endif %}

Versand

{% if delivery_promise_branded_shipping_line %} {{ delivery_promise_branded_shipping_line }} {% else %} {{ shipping_method.title }} {% endif %}

Falls du Fragen hast, antworte auf diese E-Mail oder kontaktiere uns unter [{{ shop.email }}](mailto:{{ shop.email }}).

{%- if shop.terms_of_service.body != blank -%} {{ shop.terms_of_service | attach_as_pdf: "AGB" }} {%- endif -%} {%- if shop.refund_policy.body != blank -%} {{ shop.refund_policy | attach_as_pdf: "Widerrufsrecht" }} {%- endif -%}

Hey @ChristophKoni

Es ist schwer zu sagen, warum der Code nicht funzt.

  1. Stelle sicher, dass du die Liquidlogik korrekt verwendest. Beispielsweise {% if has_pending_payment %}, stellt es bedingt dass die Bankverbindungsinformationen angezeigt werden wenn eine Zahlung aussteht. Wenn das der Fall ist, und die Bedingung wird nicht erfüllt, wird der Code ignoriert.

Überprüfe, ob es Einschränkungen in Bezug auf den verwendeten Zahlungsgateway gibt. Einige Zahlungsgateways unterstützen möglicherweise keine anstehenden Zahlungen.

Stelle sicher, dass der Code richtig formatiert ist. Ein kleiner Fehler wie ein fehlendes Anführungszeichen oder eine schließende Klammer kann dazu führen, dass der gesamte Code nicht funktioniert.

Überprüfe, ob die Bedingungen {% if has_pending_payment %} und {% if buyer_action_required %} korrekt sind. Ist es möglich, dass die Zahlung als ausstehend betrachtet wird, aber keine Aktion vom Käufer erforderlich ist (z.B. bei Auswahl der Vorkasse)?

Vielleicht hilft dir dieser Beitrag und auch dieser etwas weiter! :wink:

Hallo Gabe,

ich habe doch den kompletten Original-Code oben eingefügt. Kannst du oder ein anderer Shopify-Mitarbeiter mir nicht sagen, was daran verkehrt ist?

Gut, ich hatte den Code noch schön formatiert, dass habt ihr irgendwie gelöscht :confused:

Lieben Gruß

Hey @ChristophKoni

Bitte füge immer einen sehr langen Code in einen Code Markup Kästchen und das ganze innerhalb Spoiler Tags, wie ich hier demonstriere:

06-29-fnnbj-1tv4b

Dein Code oben ist nach wie vor dasselbe, es ist aber fehlerhaft und kann nur von jemanden getestet werden der einen Deep-Dive in dein Theme Code machen kann.

Von hier aus wird das nicht gehen und somit empfehle ich einen Experten dafür zu beauftragen. Hast du schon jemanden mit dem du das machen kannst?

VG,