کیش راؤنڈنگ کے لیے POS ایکسچینج V2 رسید کا ای میل نوٹیفکیشن اپ ڈیٹ کریں
اگر آپ کا سٹور کسٹمائزڈ نوٹیفکیشن ٹیمپلیٹ استعمال کرتا ہے، تو آپ کو اپنی POS exchange V2 receipt ای میل نوٹیفکیشن کو مینوئلی اپ ڈیٹ کرنے کی ضرورت پڑ سکتی ہے تاکہ یہ یقینی بنایا جا سکے کہ رسید پر کیش راؤنڈنگ ظاہر ہو۔
ان تبدیلیوں کے لیے اس کوڈ سے واقفیت درکار ہے جو Shopify کی نوٹیفکیشن ٹیمپلیٹ میں استعمال ہوتا ہے۔ اگر آپ کی ٹیمپلیٹ بہت زیادہ کسٹمائز کی گئی ہے اور آپ کو یقین نہیں ہے کہ ضروری تبدیلیاں کیسے لاگو کی جائیں، تو اس ڈیولپر سے رابطہ کریں جس نے یہ تبدیلیاں کی تھیں یا اپنی ٹیمپلیٹ کو اس کی اصل حالت میں بحال کرنے کے لیے ڈیفالٹ پر ریورٹ کریں پر کلک کریں۔ جب آپ ڈیفالٹ پر ریورٹ کرتے ہیں، تو آپ کی تمام کسٹمائزیشن ہٹا دی جاتی ہے، لیکن ڈیفالٹ ٹیمپلیٹ اس بات کو یقینی بناتی ہے کہ آپ کے پاس ٹیمپلیٹ کا سب سے حالیہ ورژن موجود ہے۔
POS exchange V2 receipt ای میل نوٹیفکیشن کو اپ ڈیٹ کریں
آپ ایکسچینج ٹرانزیکشن سے پیدا ہونے والی خالص کیش راؤنڈنگ کی رقم، رسید میں راؤنڈ شدہ ایکسچینج کی کل رقم کے ساتھ ظاہر کرنے کے لیے POS exchange V2 receipt نوٹیفکیشن کو اپ ڈیٹ کر سکتے ہیں۔
اقدامات:
اپنے Shopify ایڈمن سے، سیٹنگز > نوٹیفکیشنز پر جائیں۔
کسٹمر نوٹیفکیشنز پر کلک کریں۔
Point of Sale سیکشن میں، POS exchange V2 receipt پر کلک کریں۔
کوڈ میں ترمیم کریں پر کلک کریں۔
خالص کیش راؤنڈنگ کی رقم کا حساب لگانے کے لیے لاجک شامل کریں اور اسے
exchange_totalمیں شامل کریں۔- وہ کوڈ بلاک تلاش کریں جس میں
<span>Exchange total</span>شامل ہے۔ - موجودہ کوڈ بلاک کو درج ذیل کوڈ بلاک سے تبدیل کریں جو
net_exchange_roundingکا حساب لگاتا ہے اور اسے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>