एक्सचेंज के लिए रिटर्न बनाए गए ईमेल नोटिफ़िकेशन को अपडेट करना

अगर आपका स्टोर कस्टमाइज़ किए गए नोटिफ़िकेशन टेम्पलेट का इस्तेमाल करता है, तो आपको अपने 'रिटर्न बनाया गया' ईमेल नोटिफ़िकेशन को मैन्युअल रूप से अपडेट करने की ज़रूरत पड़ सकती है, ताकि यह पक्का हो सके कि जब आप किसी रिटर्न में एक्सचेंज आइटम जोड़ते हैं तो यह काम करे।

इन बदलावों के लिए Shopify के नोटिफ़िकेशन टेम्पलेट में इस्तेमाल किए गए कोड से परिचित होना ज़रूरी है। अगर आपके टेम्पलेट बहुत ज़्यादा कस्टमाइज़ किए गए हैं और आप यह पक्का नहीं कर पा रहे हैं कि ज़रूरी बदलाव कैसे लागू करें, तो उस डेवलपर से संपर्क करें जिसने बदलाव किए थे या अपने टेम्पलेट को उसकी मूल स्थिति में वापस लाने के लिए डिफ़ॉल्ट पर वापस लाएं पर क्लिक करें। जब आप डिफ़ॉल्ट पर वापस लाते हैं, तो आपके सभी कस्टमाइज़ेशन हटा दिए जाते हैं, लेकिन डिफ़ॉल्ट टेम्पलेट यह पक्का करता है कि आपके पास सबसे नया टेम्पलेट वर्शन हो।

'रिटर्न बनाया गया' ईमेल नोटिफ़िकेशन अपडेट करें

आप निम्नलिखित बदलावों को शामिल करने के लिए 'रिटर्न बनाया गया' नोटिफ़िकेशन को अपडेट कर सकते हैं:

  • कुल देय एक्सचेंज के लिए, एक ग्राहक अब अपने रिटर्न ईमेल में पेमेंट कार्रवाई (अभी पेमेंट करें बटन) पा सकता है। इसमें ईमेल के निर्देश वाले हिस्से के अपडेट शामिल हैं, ताकि ग्राहक की बकाया राशि दिखाई दे और निर्देशों को ईमेल में सबसे ऊपर ले जाया जाता है।
  • एक नया सेक्शन जो 'वे आइटम जो आपको मिलेंगे' शीर्षक के तहत एक्सचेंज आइटम दिखाता है और 'रिटर्न किए गए आइटम' सेक्शन का नाम बदलकर 'रिटर्न करने के लिए आइटम' कर देता है।
  • रिटर्न और एक्सचेंज आइटम की लागत और लागू रिटर्न शुल्क के साथ एक वित्तीय समरी, रिटर्न ईमेल के हिस्से के रूप में शामिल की जाती है।

चरण:

  1. अपने Shopify एडमिन से, सेटिंग्स > नोटिफ़िकेशन पर जाएं.

  2. ग्राहक नोटिफ़िकेशन पर क्लिक करें.

  3. रिटर्न सेक्शन में, रिटर्न बनाया गया पर क्लिक करें.

  4. कोड एडिट करें पर क्लिक करें.

  5. {% if return_delivery.type == 'shopify_label' %} का पहला उदाहरण ढूंढें और फिर रिटर्न शिपिंग निर्देश अपडेट करें:

    1. <p class="return-creation__subtitle">...</p> कोड लाइन ढूंढें.
    2. कोड लाइन के बाद निम्नलिखित कोड ब्लॉक जोड़ें:
<div class="return-label-beta__instructions">
                <h2>Instructions</h2>

                <ol>
                  <li>Pack the items you're returning.</li>
                  {% if return.checkout_payment_collection_url %}
                    <li>Pay the outstanding balance.</li>
                  {% endif %}
                  <li>Print your return shipping label. If you haven't received it yet, we'll send it to you soon.</li>
                  <li>Attach the label to the package. Cover or remove any old shipping labels.</li>
                  <li>
                    {% if return_delivery.carrier_name %}
                      Give the package to {{ return_delivery.carrier_name }}.
                    {% else %}
                      Give the package to the carrier identified on the label.
                    {% endif %}
                  </li>
                  <li>
                    Track your return using <a target="_blank" href="{{ return_delivery.tracking_url) }}">your tracking number</a> to make sure we get it.
                  </li>
                </ol>
              </div>
  1. कॉल-टू-एक्शन को अपडेट करें ताकि इसमें अभी पेमेंट करें लॉजिक शामिल हो:
    1. <table class="row actions">...</table> कोड लाइन ढूंढें.
    2. मौजूदा कोड ब्लॉक को निम्नलिखित कोड ब्लॉक से बदलें:
{% capture url_primary %}{{ return.checkout_payment_collection_url }}{% endcapture %}
{% capture text_primary %}Pay now{% endcapture %}
{% capture url_secondary %}{% endcapture %}
{% capture text_secondary %}{% endcapture %}
{% if url_primary != blank or url_secondary != blank %}
<table class="row actions">
  <tr>
    <td class="empty-line">&nbsp;</td>
  </tr>
  <tr>
    <td class="actions__cell">
      {% if url_primary != blank %}
      <table class="button main-action-cell">
        <tr>
          <td class="button__cell">
            <a href="{{ url_primary }}" class="button__text">{{ text_primary }}</a>
          </td>
        </tr>
      </table>
      {% endif %}
      {% if url_secondary != blank %}
      <table class="button return__mobile-padding main-action-cell">
        <tr>
          <td class="button__cell">
            <a href="{{ url_secondary }}" class="button__text return__main-button">{{ text_secondary }}</a>
          </td>
        </tr>
      </table>
      {% endif %}
{% endif %}
  1. का पहला उदाहरण ढूंढें {% elsif return_delivery.type == 'manual' %}, और फिर रिटर्न मैन्युअल शिपिंग निर्देश अपडेट करें:
    1. <p class="return-creation__subtitle">...</p> कोड लाइन ढूंढें.
    2. कोड लाइन के बाद निम्नलिखित कोड ब्लॉक जोड़ें:
<div class="return-label-beta__instructions">
                <h2>Instructions</h2>

                <ol>
                  <li>Pack the items you're returning.</li>
                  {% if return.checkout_payment_collection_url %}
                    <li>Pay the outstanding balance.</li>
                  {% endif %}
                  <li>Print your return shipping label. If you haven't received it yet, we'll send it to you soon.</li>
                  <li>Attach the label to the package. Cover or remove any old shipping labels.</li>
                  <li>
                    {% if return_delivery.carrier_name %}
                      Give the package to {{ return_delivery.carrier_name }}.
                    {% else %}
                      Give the package to the carrier identified on the label.
                    {% endif %}
                  </li>
                  <li>
                    Track your return using <a target="_blank" href="{{ return_delivery.tracking_url) }}">your tracking number</a> to make sure we get it.
                  </li>
                </ol>
              </div>
  1. {% elsif return_delivery.type == 'manual' %} कोड ब्लॉक के अंदर पिछले चरण के बाद निम्नलिखित कोड ब्लॉक जोड़ें:
{% capture url_primary %}{{ return.checkout_payment_collection_url }}{% endcapture %}
{% capture text_primary %}Pay now{% endcapture %}
{% capture url_secondary %}{% endcapture %}
{% capture text_secondary %}{% endcapture %}
{% if url_primary != blank or url_secondary != blank %}
<table class="row actions">
  <tr>
    <td class="empty-line">&nbsp;</td>
  </tr>
  <tr>
    <td class="actions__cell">
      {% if url_primary != blank %}
      <table class="button main-action-cell">
        <tr>
          <td class="button__cell">
            <a href="{{ url_primary }}" class="button__text">{{ text_primary }}</a>
          </td>
        </tr>
      </table>
      {% endif %}
      {% if url_secondary != blank %}
      <table class="button return__mobile-padding main-action-cell">
        <tr>
          <td class="button__cell">
            <a href="{{ url_secondary }}" class="button__text return__main-button">{{ text_secondary }}</a>
          </td>
        </tr>
      </table>
      {% endif %}
      <table class="link secondary-action-cell">
        <tr>
          <td class="link__cell">or <a target="_blank" href="{{ order.order_status_url }}">View your order</a></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
{% endif %}
  1. नोटिफ़िकेशन के नीचे से पुराने निर्देश हटाएं:
    1. <h3>Instructions</h3> कोड लाइन ढूंढें.
    2. <h3>Instructions</h3> से सात लाइन ऊपर शुरू होने वाले <table class="row section">...</table> के पूरे कोड ब्लॉक को ढूंढें और हटाएं।
  2. एक्सचेंज लाइन आइटम जोड़ें और रिटर्न आइटम का शीर्षक अपडेट करें:
    1. <h3>Returned items</h3> टैग ढूंढें.
    2. <h3>Returned items</h3> से सात लाइन ऊपर शुरू होने वाले <table class="row section">...</table> के पूरे कोड ब्लॉक को ढूंढें और निम्नलिखित कोड ब्लॉक से बदलें:
<table class="row content">
  <tr>
    <td class="content__cell">
      <center>
        <table class="container">
          <tr>
            <td>

          <h2>Items to return</h2>
          <table class="row">
  {% for line_item in return.line_items %}
  <tr class="order-list__item">
    <td class="order-list__item__cell">
      <table>
        <td>
          {% if line_item.image %}
            <img src="{{ line_item | img_url: 'compact_cropped' }}" align="left" width="60" height="60" class="order-list__product-image"/>
          {% endif %}
        </td>
        <td class="order-list__product-description-cell">
          {% assign line_display = line_item.quantity  %}

          <span class="order-list__item-title">{{ line_item.title_without_variant }}&nbsp;&times;&nbsp;{{ line_display }}</span><br/>

          {% if line_item.variant.title != 'Default Title' %}
            <span class="order-list__item-variant">{{ line_item.variant.title }}</span><br/>
          {% endif %}

          {% if line_item.discount_allocations %}
            {% for discount_allocation in line_item.discount_allocations %}
              {% if discount_allocation.amount > 0 %}
                <span class="order-list__item-discount-allocation">
                  <img src="{{ 'notifications/discounttag.png' | shopify_asset_url }}" width="18" height="18" class="discount-tag-icon" />
                  <span>
                    {{ discount_allocation.discount_application.title | upcase }}
                    (-{{ discount_allocation.amount | money }})
                  </span>
                </span>
              {% endif %}
            {% endfor %}
          {% endif %}
        </td>

        <td class="order-list__price-cell">
          {% if line_item.original_line_price != line_item.final_line_price %}
            <del class="order-list__item-original-price">{{ line_item.original_line_price | money }}</del>
          {% endif %}
          <p class="order-list__item-price">
            {% if line_item.final_line_price > 0 %}
              {{ line_item.final_line_price | money }}
            {% else %}
              Free
            {% endif %}
          </p>
        </td>
      </table>
    </td>
  </tr>
  {% endfor %}
</table>


            </td>
          </tr>
        </table>
      </center>
    </td>
  </tr>
</table>

        {% if return.exchange_line_items.size > 0 %}
          <table class="row content">
  <tr>
    <td class="content__cell">
      <center>
        <table class="container">
          <tr>
            <td>

            <h2>Items you'll receive</h2>
            <table class="row">
  {% for line_item in return.exchange_line_items %}
  <tr class="order-list__item">
    <td class="order-list__item__cell">
      <table>
        <td>
          {% if line_item.image %}
            <img src="{{ line_item | img_url: 'compact_cropped' }}" align="left" width="60" height="60" class="order-list__product-image"/>
          {% endif %}
        </td>
        <td class="order-list__product-description-cell">
          {% assign line_display = line_item.quantity  %}

          <span class="order-list__item-title">{{ line_item.title_without_variant }}&nbsp;&times;&nbsp;{{ line_display }}</span><br/>

          {% if line_item.variant.title != 'Default Title' %}
            <span class="order-list__item-variant">{{ line_item.variant.title }}</span><br/>
          {% endif %}

          {% if line_item.discount_allocations %}
            {% for discount_allocation in line_item.discount_allocations %}
              {% if discount_allocation.amount > 0 %}
                <span class="order-list__item-discount-allocation">
                  <img src="{{ 'notifications/discounttag.png' | shopify_asset_url }}" width="18" height="18" class="discount-tag-icon" />
                  <span>
                    {{ discount_allocation.discount_application.title | upcase }}
                    (-{{ discount_allocation.amount | money }})
                  </span>
                </span>
              {% endif %}
            {% endfor %}
          {% endif %}
        </td>

        <td class="order-list__price-cell">
          {% if line_item.original_line_price != line_item.final_line_price %}
            <del class="order-list__item-original-price">{{ line_item.original_line_price | money }}</del>
          {% endif %}
          <p class="order-list__item-price">
            {% if line_item.final_line_price > 0 %}
              {{ line_item.final_line_price | money }}
            {% else %}
              Free
            {% endif %}
          </p>
        </td>
      </table>
    </td>
  </tr>
  {% endfor %}
</table>


            </td>
          </tr>
        </table>
      </center>
    </td>
  </tr>
</table>
        {% endif %}
  1. वित्तीय जानकारी और रिटर्न शुल्क शामिल करें। पिछले चरण के बदलावों के बाद निम्नलिखित ब्लॉक जोड़ें या <table class="row footer"> कोड लाइन से पहले ब्लॉक जोड़ें:
<table class="row section">
  <tr>
    <td class="section__cell">
      <center>
        <table class="container">
          <tr>
            <td>

          <table class="row subtotal-lines">
  <tr>
    <td class="subtotal-spacer"></td>
    <td>
      <table class="row subtotal-table">

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Subtotal</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <span>{{ return.line_items_subtotal_price | money }}</span>
  </td>
</tr>


        {% assign fees = return.fees %}
        {% for fee in fees %}

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>{{ fee.title }}</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <span>{{ fee.subtotal | money }}</span>
  </td>
</tr>

{% endfor %}


        {% if return.total_tax_price > 0 %}

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Estimated taxes</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <span>{{ return.total_tax_price | money }}</span>
  </td>
</tr>

        {% endif %}

        {% if return.total_price > 0 %}
        <table class="row subtotal-table subtotal-table--total">

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Amount to pay</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{{ return.total_price | money_with_currency }}</strong>
  </td>
</tr>

        </table>
        {% elsif return.total_price <= 0 %}
        <table class="row subtotal-table subtotal-table--total">

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Estimated refund</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{{ return.total_price | abs | money_with_currency }}</strong>
  </td>
</tr>

        </table>
        {% endif %}
      </table>
    </td>
  </tr>
</table>


            </td>
          </tr>
        </table>
  1. सेव करें पर क्लिक करें.