การอัปเดตการแจ้งเตือนทางอีเมลเมื่อมีการสร้างคำขอคืนสินค้าสำหรับการเปลี่ยนสินค้า
หากร้านค้าของคุณใช้เทมเพลตการแจ้งเตือนที่ปรับแต่งเอง คุณอาจต้องอัปเดตการแจ้งเตือนทางอีเมลเมื่อมีการสร้างคำขอคืนสินค้าด้วยตนเองเพื่อให้แน่ใจว่าการแจ้งเตือนนั้นจะใช้งานได้เมื่อคุณเพิ่มสินค้าที่ต้องการเปลี่ยนไปยังคำขอคืนสินค้า
การเปลี่ยนแปลงเหล่านี้จำเป็นต้องอาศัยความคุ้นเคยกับโค้ดที่ใช้ในเทมเพลตการแจ้งเตือนของ Shopify หากเทมเพลตของคุณมีการปรับแต่งขั้นสูงและคุณไม่แน่ใจว่าจะปรับใช้การเปลี่ยนแปลงที่จำเป็นได้อย่างไร โปรดติดต่อนักพัฒนาที่ทำการเปลี่ยนแปลงดังกล่าว หรือคลิกเปลี่ยนกลับไปเป็นค่าเริ่มต้นเพื่อกู้คืนเทมเพลตของคุณกลับสู่สถานะดั้งเดิม เมื่อคุณเปลี่ยนกลับไปเป็นค่าเริ่มต้น การปรับแต่งทั้งหมดของคุณจะถูกลบออก แต่เทมเพลตเริ่มต้นจะช่วยให้แน่ใจว่าคุณมีเวอร์ชันของเทมเพลตล่าสุด
อัปเดตการแจ้งเตือนทางอีเมลเมื่อมีการสร้างคำขอคืนสินค้า
คุณสามารถอัปเดตการแจ้งเตือนเมื่อมีการสร้างคำขอคืนสินค้าเพื่อรวมการเปลี่ยนแปลงต่อไปนี้:
- สำหรับการเปลี่ยนสินค้าที่ต้องชำระเงินเพิ่ม ลูกค้าจะได้รับการดำเนินการชำระเงิน (ปุ่มชำระเงินตอนนี้) ในอีเมลแจ้งการคืนสินค้า ซึ่งรวมถึงการอัปเดตส่วนคำแนะนำของอีเมลเพื่อแสดงยอดคงเหลือที่ลูกค้าต้องชำระและมีการย้ายคำแนะนำไปไว้ที่ด้านบนสุดของอีเมล
- ส่วนใหม่ที่แสดงสินค้าที่ต้องการเปลี่ยนภายใต้หัวข้อสินค้าที่คุณจะได้รับและเปลี่ยนชื่อส่วนสินค้าที่ส่งคืนเป็นสินค้าที่ต้องส่งคืน
- มีการรวมข้อมูลสรุปทางการเงินเป็นส่วนหนึ่งของอีเมลแจ้งการคืนสินค้า พร้อมด้วยค่าใช้จ่ายของสินค้าที่ส่งคืนและสินค้าที่ต้องการเปลี่ยน รวมถึงค่าธรรมเนียมการคืนสินค้าที่เกี่ยวข้อง
ขั้นตอน:
จากส่วนผู้ดูแล Shopify ของคุณ ให้ไปที่การตั้งค่า > การแจ้งเตือน
คลิกการแจ้งเตือนลูกค้า
ในส่วนการคืนสินค้า ให้คลิกสร้างการส่งคืนแล้ว
คลิกแก้ไขโค้ด
ค้นหาอินสแตนซ์แรกของ
{% if return_delivery.type == 'shopify_label' %}แล้วอัปเดตคำแนะนำในการจัดส่งสินค้าคืน:- ค้นหาบรรทัดของโค้ด
<p class="return-creation__subtitle">...</p> - เพิ่มบล็อกโค้ดต่อไปนี้หลังบรรทัดของโค้ดดังกล่าว:
- ค้นหาบรรทัดของโค้ด
<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>- อัปเดตคำกระตุ้นการตัดสินใจเพื่อรวมตรรกะ ชำระเงินตอนนี้ :
- ค้นหาบรรทัดของโค้ด
<table class="row actions">...</table> - แทนที่บล็อกโค้ดที่มีอยู่ด้วยบล็อกโค้ดต่อไปนี้:
- ค้นหาบรรทัดของโค้ด
{% 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 %}- ค้นหาอินสแตนซ์แรกของ
{% elsif return_delivery.type == 'manual' %}จากนั้นอัปเดตคำแนะนำในการจัดส่งสินค้าคืนด้วยตนเอง:- ค้นหาบรรทัดของโค้ด
<p class="return-creation__subtitle">...</p> - เพิ่มบล็อกโค้ดต่อไปนี้หลังบรรทัดของโค้ดดังกล่าว:
- ค้นหาบรรทัดของโค้ด
<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>- เพิ่มบล็อกโค้ดต่อไปนี้หลังขั้นตอนก่อนหน้าภายในบล็อกโค้ด
{% 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"> </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 %}- ลบคำแนะนำเก่าที่ด้านล่างของการแจ้งเตือน:
- ค้นหาบรรทัดของโค้ด
<h3>Instructions</h3> - ค้นหาและลบบล็อกโค้ดทั้งหมดของ
<table class="row section">...</table>ซึ่งเริ่มต้นเจ็ดบรรทัดก่อนหน้า<h3>Instructions</h3>
- ค้นหาบรรทัดของโค้ด
- เพิ่มสินค้าเฉพาะรายการสำหรับการเปลี่ยนและอัปเดตชื่อสินค้าที่ส่งคืน:
- ค้นหาแท็ก
<h3>Returned items</h3> - ค้นหาและแทนที่บล็อกโค้ดทั้งหมดของ
<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 }} × {{ 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 %}- ระบุข้อมูลทางการเงินและค่าธรรมเนียมการคืนสินค้า เพิ่มบล็อกต่อไปนี้หลังการเปลี่ยนแปลงจากขั้นตอนก่อนหน้า หรือเพิ่มบล็อกก่อนบรรทัดของโค้ด
<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>- คลิกบันทึก