ایکسچینجز کے لیے Return created ای میل نوٹیفکیشن اپ ڈیٹ کرنا

اگر آپ کا سٹور کسٹمائزڈ نوٹیفکیشن ٹیمپلیٹس استعمال کرتا ہے، تو آپ کو اپنی Return created ای میل نوٹیفکیشن کو دستی طور پر اپ ڈیٹ کرنے کی ضرورت ہو سکتی ہے تاکہ یہ یقینی بنایا جا سکے کہ جب آپ ریٹرن میں ایکسچینج آئٹمز شامل کرتے ہیں تو یہ کام کرے۔

ان تبدیلیوں کے لیے اس کوڈ سے واقفیت درکار ہے جو Shopify کے نوٹیفکیشن ٹیمپلیٹس میں استعمال ہوتا ہے۔ اگر آپ کے ٹیمپلیٹس بہت زیادہ کسٹمائزڈ ہیں اور آپ کو یقین نہیں ہے کہ ضروری تبدیلیاں کیسے لاگو کرنی ہیں، تو اس ڈویلپر سے رابطہ کریں جس نے تبدیلیاں کی تھیں یا اپنے ٹیمپلیٹ کو اس کی اصل حالت میں بحال کرنے کے لیے Revert to default پر کلک کریں۔ جب آپ ڈیفالٹ پر ریورٹ کرتے ہیں، تو آپ کی تمام کسٹمائزیشنز ہٹا دی جاتی ہیں، لیکن ڈیفالٹ ٹیمپلیٹ یہ یقینی بناتا ہے کہ آپ کے پاس موجودہ ٹیمپلیٹ ورژن موجود ہے۔

Return created ای میل نوٹیفکیشن کو اپ ڈیٹ کریں

آپ درج ذیل تبدیلیوں کو شامل کرنے کے لیے Return created نوٹیفکیشن کو اپ ڈیٹ کر سکتے ہیں:

  • نیٹ قابل ادائیگی ایکسچینجز کے لیے، اب کوئی کسٹمر اپنی ریٹرن ای میل میں ایک پیمنٹ ایکشن (Pay now بٹن) موصول کر سکتا ہے۔ اس میں ای میل کے ہدایات کے حصے میں اپ ڈیٹس شامل ہیں تاکہ اس بقایا بیلنس کو ظاہر کیا جا سکے جو کسٹمر کے ذمے ہو سکتا ہے اور ہدایات کو ای میل کے اوپری حصے میں منتقل کر دیا جاتا ہے۔
  • ایک نیا سیکشن جو ایکسچینج آئٹمز کو Items you'll receive کی ہیڈنگ کے نیچے ڈسپلے کرتا ہے اور Returned items سیکشن کا نام تبدیل کر کے Items to return رکھ دیتا ہے۔
  • ریٹرن ای میل کے حصے کے طور پر ایک مالیاتی سمری شامل کی گئی ہے جس میں ریٹرن اور ایکسچینج آئٹمز کی لاگت اور قابل اطلاق ریٹرن فیس شامل ہے۔

اقدامات:

  1. اپنے Shopify ایڈمن سے، Settings > Notifications پر جائیں。

  2. Customer notifications پر کلک کریں۔

  3. Returns سیکشن میں، Return created پر کلک کریں۔

  4. Edit code پر کلک کریں۔

  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. <table class="row section">...</table> کا پورا کوڈ بلاک تلاش کریں اور ہٹائیں، جو <h3>Instructions</h3> کے سات لائنیں اوپر سے شروع ہوتا ہے۔
  2. ایکسچینج لائن آئٹم شامل کریں اور ریٹرن آئٹم کا عنوان اپ ڈیٹ کریں:
    1. <h3>Returned items</h3> ٹیگ تلاش کریں۔
    2. <table class="row section">...</table> کا پورا کوڈ بلاک تلاش کریں اور اسے درج ذیل کوڈ بلاک سے تبدیل کریں، جو <h3>Returned items</h3> سے سات لائنیں اوپر شروع ہوتا ہے:
<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. محفوظ کریں پر کلک کریں۔