De e-mailmelding voor de POS exchange V2-bon updaten voor het afronden van contant geld
Als je winkel aangepaste meldingstemplates gebruikt, moet je mogelijk de e-mailmelding voor de POS exchange V2-bon handmatig updaten om ervoor te zorgen dat het afronden van contant geld op de bon wordt weergegeven.
Voor deze wijzigingen is kennis van de code vereist die wordt gebruikt in de meldingstemplates van Shopify. Als je templates sterk zijn aangepast en je niet zeker weet hoe je de benodigde wijzigingen moet toepassen, neem dan contact op met de ontwikkelaar die de wijzigingen heeft aangebracht of klik op Terug naar standaard om je template naar de oorspronkelijke staat te herstellen. Wanneer je terugkeert naar de standaardinstelling, worden al je aanpassingen verwijderd, maar de standaardtemplate zorgt ervoor dat je de meest recente templateversie hebt.
Op deze pagina
De e-mailmelding voor de POS exchange V2-bon updaten
Je kunt de melding voor de POS exchange V2-bon updaten om het netto-afrondingsbedrag voor contant geld dat voortvloeit uit ruiltransacties weer te geven, samen met het afgeronde totale ruilbedrag op de bon.
Stappen:
Ga in je Shopify-beheercentrum naar Instellingen > Meldingen.
Klik op Klantmeldingen.
Klik in de sectie Point of Sale op POS exchange V2-bon.
Klik op Code bewerken.
Voeg logica toe om het netto-afrondingsbedrag voor contant geld te berekenen en toe te voegen aan de
exchange_total.- Zoek het codeblok dat
<span>Exchange total</span>bevat. - Vervang het bestaande codeblok door het volgende codeblok, dat een
net_exchange_roundingberekent en deze toevoegt aan deexchange_total:
- Zoek het codeblok dat
<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>