El. pašto pranešimo „Sukurtas grąžinimas“ atnaujinimas keitimams
Jei Jūsų parduotuvėje naudojami pritaikyti pranešimų šablonai, gali tekti rankiniu būdu atnaujinti el. pašto pranešimą „Sukurtas grąžinimas“, kad jis veiktų, kai į grąžinimą įtraukiate keičiamų prekių.
Šiems pakeitimams atlikti reikia išmanyti kodą, naudojamą „Shopify“ pranešimų šablonuose. Jei Jūsų šablonai yra labai pritaikyti ir nesate tikri, kaip atlikti būtinus pakeitimus, susisiekite su kūrėju, kuris atliko pakeitimus, arba spustelėkite „Grąžinti numatytuosius nustatymus“, kad atkurtumėte pradinę šablono būseną. Grąžinus numatytuosius nustatymus, pašalinami visi Jūsų atlikti tinkinimai, tačiau numatytasis šablonas užtikrina, kad turėsite naujausią šablono versiją.
Šiame puslapyje
Atnaujinkite el. pašto pranešimą „Sukurtas grąžinimas“
Galite atnaujinti pranešimą „Sukurtas grąžinimas“, įtraukdami šiuos pakeitimus:
- Atliekant keitimus, už kuriuos reikia primokėti, klientas dabar gali gauti mokėjimo veiksmą (mygtuką „Mokėti dabar“) savo grąžinimo el. laiške. Tai apima el. laiško instrukcijų dalies atnaujinimus, kad atsispindėtų neapmokėtas likutis, kurį klientas gali būti skolingas, o instrukcijos perkeliamos į el. laiško viršų.
- Naujas skyrius, kuriame rodomos keičiamos prekės po antrašte „Prekės, kurias gausite“, o skyrius „Grąžinamos prekės“ pervadinamas į „Prekės, kurias reikia grąžinti“.
- Į grąžinimo el. laišką įtraukiama finansinė suvestinė, kurioje nurodoma grąžinamų ir keičiamų prekių kaina bei taikomi grąžinimo mokesčiai.
Veiksmai:
Savo „Shopify“ administratoriaus skydelyje eikite į Nustatymai > Pranešimai.
Spustelėkite Klientų pranešimai.
Skyriuje Grąžinimai spustelėkite Sukurtas grąžinimas.
Spustelėkite Redaguoti kodą.
Raskite pirmą
{% if return_delivery.type == 'shopify_label' %}egzempliorių ir atnaujinkite grąžinimo pristatymo instrukcijas:- Raskite kodo eilutę
<p class="return-creation__subtitle">...</p>. - Po šia kodo eilute pridėkite šį kodo bloką:
- Raskite kodo eilutę
<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>- Atnaujinkite raginimą veikti, įtraukdami Mokėti dabar logiką:
- Raskite kodo eilutę
<table class="row actions">...</table>. - Pakeiskite esamą kodo bloką šiuo kodo bloku:
- Raskite kodo eilutę
{% 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"> </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 %}- Raskite pirmąjį
{% elsif return_delivery.type == 'manual' %}egzempliorių ir atnaujinkite rankinio grąžinimo pristatymo instrukcijas:- Raskite kodo eilutę
<p class="return-creation__subtitle">...</p>. - Po šia kodo eilute pridėkite šį kodo bloką:
- Raskite kodo eilutę
<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>- Po ankstesnio veiksmo pridėkite šį kodo bloką
{% elsif return_delivery.type == 'manual' %}kodo bloko viduje:
{% 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"> </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 %}- Pašalinkite senas instrukcijas pranešimo apačioje:
- Raskite kodo eilutę
<h3>Instructions</h3>. - Raskite ir pašalinkite visą
<table class="row section">...</table>kodo bloką, kuris prasideda septyniomis eilutėmis aukščiau<h3>Instructions</h3>.
- Raskite kodo eilutę
- Pridėkite keičiamų prekių pozicijas ir atnaujinkite grąžinamų prekių pavadinimą:
- Raskite žymą
<h3>Returned items</h3>. - Raskite ir pakeiskite visą
<table class="row section">...</table>kodo bloką, kuris prasideda septyniomis eilutėmis aukščiau<h3>Returned items</h3>, šiuo kodo bloku:
- Raskite žymą
<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 }} × {{ 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 }} × {{ 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 %}- Pateikite finansinius duomenis ir grąžinimo mokesčius. Pridėkite šį bloką po ankstesniame veiksme atliktų pakeitimų arba prieš
<table class="row footer">kodo eilutę:
<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>- Spustelėkite Išsaugoti.