Werk de e-mailmelding voor ontvangst van POS exchange V2 bij voor de afronding van contant geld.

Als je winkel een aangepast meldingsjabloon gebruikt, moet je mogelijk je e-mailmelding POS Exchange V2-bon handmatig bijwerken om ervoor te zorgen dat de afronding van contant geld op de bon wordt weergegeven.

Voor deze wijzigingen moet je bekend zijn met de code die wordt gebruikt in de meldingstemplates van Shopify. Als je templates veel aanpassingen bevatten en je niet precies weet hoe je de vereiste wijzigingen moet doorvoeren, neem dan contact op met de ontwikkelaar die de wijzigingen heeft gemaakt. Je kunt ook op Weer instellen op standaard klikken om je template in de oorspronkelijke staat te herstellen. Als je teruggaat naar de standaard, verwijder je alle aanpassingen, maar dan weet je wel zeker dat je template de meest recente versie is.

Werk de e-mailmelding voor POS exchange V2 bon bij

Je kunt de melding POS exchante V2 bon bijwerken zodat het nettobedrag van de afronding van contant geld uit ruiltransacties wordt weergegeven, samen met het afgeronde totaalbedrag van de ruiltransactie op de bon.

Stappen:

  1. Ga in het Shopify-beheercentrum naar Instellingen > Meldingen.

  2. Klik op Klantmeldingen.

  3. Klik in het Point of Sale op POS exchange V2 bon.

  4. Klik op Code bewerken.

  5. Logica toevoegen om het netto contante afrondingsbedrag te berekenen en toe te voegen aan de exchange_total.

    1. Zoek het codeblok dat <span>Exchange total</span> bevat.
    2. Vervang het bestaande codeblok met het volgende codeblok dat een net_exchange_rounding berekent en deze toevoegt aan de exchange_total:
<table class="row subtotal-table">
  <div class="subtotal-table--total subtotal-table--total-no-border">
    <tr class="subtotal-line">
      <td class="subtotal-line__title">
        <p>
          <span>Exchange total</span>
        </p>
      </td>
      <td class="subtotal-line__value">
        <strong>{% if exchange_total < 0 %}-{% endif %}{{ exchange_total | abs | money_with_currency }}</strong>
      </td>
    </tr>
  </div>
  {% assign net_exchange_rounding = 0 %}
  {% for transaction in transactions %}
    {% if transaction.status == "success" %}
      {% if transaction.kind == "sale" or transaction.kind == "capture" %}
        {% if transaction.amount_rounding != nil %}
          {% assign net_exchange_rounding = net_exchange_rounding | plus: transaction.amount_rounding %}
        {% endif %}
      {% elsif transaction.kind == "refund" or transaction.kind == "change" %}
        {% if transaction.amount_rounding != nil %}
          {% assign net_exchange_rounding = net_exchange_rounding | minus: transaction.amount_rounding %}
        {% endif %}
      {% endif %}
    {% endif %}
  {% endfor %}
  {% if net_exchange_rounding != 0 %}
    <table class="row subtotal-table subtotal-table--total">
      <div class="subtotal-line__value-small">
        <tr class="subtotal-line">
          <td class="subtotal-line__title">
            <p> <span>Cash rounding</span> </p>
          </td>
          <td class="subtotal-line__value">
            <strong>{% if net_exchange_rounding < 0 %}-{% endif %} {{ net_exchange_rounding | abs | money }}</strong>
          </td>
        </tr>
      </div>
    </table>
    <table class="row subtotal-table subtotal-table--total">
      {% assign rounded_exchange_total = exchange_total | plus: net_exchange_rounding %}
      {% if rounded_exchange_total > 0 %}
        <tr class="subtotal-line">
          <td class="subtotal-line__title">
            <p> <span>Paid</span> </p>
          </td>
          <td class="subtotal-line__value">
            <strong>{{ rounded_exchange_total | money_with_currency }}</strong>
          </td>
        </tr>
      {% elsif rounded_exchange_total < 0 %}
        <tr class="subtotal-line">
        <td class="subtotal-line__title">
          <p> <span>Refund</span> </p>
        </td>
        <td class="subtotal-line__value">
          <strong>-{{ rounded_exchange_total | abs | money_with_currency }}</strong>
        </td>
      </tr>
      {% else %}
        <tr class="subtotal-line">
          <td class="subtotal-line__title">
            <p> <span>Adjusted exchange total</span> </p>
          </td>
          <td class="subtotal-line__value">
            <strong>{{ rounded_exchange_total | money_with_currency }}</strong>
          </td>
        </tr>
      {% endif %}
    </table>
  {% endif %}
</table>
Zat het antwoord dat je zocht er niet bij? Wij helpen je graag verder.