नकद राउंडिंग के लिए POS एक्सचेंज V2 रसीद ईमेल नोटिफिकेशन को अपडेट करें
अगर आपका स्टोर कस्टमाइज़ किए गए नोटिफिकेशन टेम्पलेट का उपयोग करता है, तो रसीद पर नकद राउंडिंग का दिखना सुनिश्चित करने के लिए, आपको अपनी POS एक्सचेंज V2 रसीद ईमेल नोटिफिकेशन को मैन्युअल रूप से अपडेट करना पड़ सकता है।
इन बदलावों के लिए, Shopify के नोटिफ़िकेशन टेम्पलेट के कोड की जानकारी होना ज़रूरी है। अगर आपके टेम्पलेट बहुत ज़्यादा कस्टमाइज़ किए गए हैं और आप पक्के तौर पर नहीं जानते कि ज़रूरी बदलाव कैसे लागू करें, तो उस डेवलपर से संपर्क करें जिसने बदलाव किए थे या अपने टेम्पलेट को उसकी मूल स्थिति में वापस लाने के लिए डिफ़ॉल्ट पर वापस लाएं पर क्लिक करें। डिफ़ॉल्ट पर वापस लाने से सभी अनुकूलन हट जाते हैं, लेकिन इससे यह पक्का होता है कि आपके पास टेम्पलेट का सबसे नया वर्शन है।
POS एक्सचेंज V2 रसीद ईमेल नोटिफिकेशन को अपडेट करें
आप रसीद में एक्सचेंज की राउंड की गई कुल राशि के साथ-साथ, एक्सचेंज लेन-देन से होने वाली कुल नकद राउंडिंग राशि को दिखाने के लिए POS एक्सचेंज V2 रसीद नोटिफिकेशन को अपडेट कर सकते हैं।
चरण:
अपने Shopify एडमिन से, सेटिंग > नोटिफिकेशन पर जाएं।
ग्राहक नोटिफिकेशन पर क्लिक करें।
Point of Sale सेक्शन में, POS एक्सचेंज V2 रसीद पर क्लिक करें।
कोड एडिट करें पर क्लिक करें।
कुल नकद राउंडिंग राशि की गणना करने के लिए लॉजिक जोड़ें और इसे
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>