Shopify'ın sipariş onayı e-postası, paketleme fişi ve personel yeni sipariş bildirimi, alıcının kişiselleştirdiği şeyi değil ürünü gösterir. Customix tasarım görselini ve seçenekleri zaten her sipariş satırına kaydeder. Her şablona kısa bir kod yapıştırın; kişiselleştirilmiş her ürünün altında şunlar gösterilir:
- tasarım görseli;
- alıcının seçtiği seçenekler (teknik alanlar gizlenir; yüklenen fotoğraflar “View image” bağlantısına dönüşür);
- e-postalarda, tasarımı yeniden açan bir “View your design” bağlantısı.
Tasarımı olmayan ürünler eskisi gibi görünür.
Kodu Customix uygulamasında bulabilirsiniz: Ayarlar > Entegrasyonlar > Store notifications, Bildirim şablonu kodu kartı; her şablon için bir sekme ve her parça için bir Kopyala düğmesi vardır. İlk adımdaki şablon adı, şablonu Shopify admin'de açan bir bağlantıdır.
Sipariş onayı
1. Şablonu açın: Shopify admin > Settings > Notifications > Customer notifications > Order confirmation > Edit code (https://YOUR-STORE.myshopify.com/admin/email_templates/order_confirmation/edit).
2. Kodda ilk {{ line.variant.title }} ifadesini bulun ve bu kodu onu izleyen {% endif %} ifadesinden sonra yapıştırın:
<div class="customix-options">
{% for property in line.properties %}
{% if property.first == '_cm-thumb-url' and property.last != blank %}
<img src="{{ property.last }}" width="120" alt="" style="display:block;width:120px;max-width:120px;height:auto;margin:4px 0;border-radius:8px;"/>
{% endif %}
{% endfor %}
{% for property in line.properties %}
{% assign cm_first_char = property.first | slice: 0 %}
{% if property.last != blank and cm_first_char != '_' %}
{{ property.first }}: {% if property.last contains 'https://' %}<a href="{{ property.last }}">View image</a>{% else %}{{ property.last }}{% endif %}<br/>
{% endif %}
{% if property.first == '_cm-customization-url' and property.last != blank %}
<a href="{{ property.last }}">View your design</a><br/>
{% endif %}
{% endfor %}
</div>3. Shopify paketleri (bundles) mi satıyorsunuz? İlk {{ component.quantity }} ifadesini bulun ve bu kodu onu izleyen <br> ifadesinden sonra yapıştırın:
<div class="customix-options">
{% for property in component.properties %}
{% if property.first == '_cm-thumb-url' and property.last != blank %}
<img src="{{ property.last }}" width="120" alt="" style="display:block;width:120px;max-width:120px;height:auto;margin:4px 0;border-radius:8px;"/>
{% endif %}
{% endfor %}
{% for property in component.properties %}
{% assign cm_first_char = property.first | slice: 0 %}
{% if property.last != blank and cm_first_char != '_' %}
{{ property.first }}: {% if property.last contains 'https://' %}<a href="{{ property.last }}">View image</a>{% else %}{{ property.last }}{% endif %}<br/>
{% endif %}
{% if property.first == '_cm-customization-url' and property.last != blank %}
<a href="{{ property.last }}">View your design</a><br/>
{% endif %}
{% endfor %}
</div>4. Şablonu kaydedin, ardından kontrol etmek için bir test siparişi verin.
Paketleme fişi
1. Şablonu açın: Shopify admin > Settings > Shipping and delivery > Packing slips > Edit (https://YOUR-STORE.myshopify.com/admin/settings/packing_slip_template).
2. İlk {{ line_item.sku }} ifadesini bulun ve bu kodu onu izleyen </p> ifadesinden sonra yapıştırın:
<div class="customix-options">
{% for property in line_item.properties %}
{% if property.first == '_cm-thumb-url' and property.last != blank %}
<img src="{{ property.last }}" width="120" alt="" style="display:block;width:120px;max-width:120px;height:auto;margin:4px 0;border-radius:8px;"/>
{% endif %}
{% endfor %}
{% for property in line_item.properties %}
{% assign cm_first_char = property.first | slice: 0 %}
{% if property.last != blank and cm_first_char != '_' %}
{{ property.first }}: {% if property.last contains 'https://' %}<a href="{{ property.last }}">View image</a>{% else %}{{ property.last }}{% endif %}<br/>
{% endif %}
{% endfor %}
</div>3. Şablonu kaydedin.
Paketleme fişinde “View your design” bağlantısı yoktur, çünkü fiş yazdırılır.
Yeni sipariş (personel bildirimi)
1. Şablonu açın: Shopify admin > Settings > Notifications > Staff notifications > New order > Edit code (https://YOUR-STORE.myshopify.com/admin/email_templates/new_order_notification/edit).
2. İlk {{ line.sku }} ifadesini bulun ve sipariş onayının 2. adımındaki kodun aynısını onu izleyen {% endif %} ifadesinden sonra yapıştırın.
3. Paket mi satıyorsunuz? İlk {{ component_display }} ifadesini bulun ve paket kodunu (sipariş onayının 3. adımı) onu izleyen <br> ifadesinden sonra yapıştırın.
4. Paket mi satıyorsunuz? İlk {{ component.quantity }} ifadesini bulun ve paket kodunu onu izleyen {% endif %} ifadesinden sonra yapıştırın.
5. Şablonu kaydedin.
Bilmekte fayda var
- Adımlar Shopify'ın varsayılan şablonlarını esas alır. Bir şablonu değiştirdiyseniz kodu ürünün adının veya seçeneklerinin gösterildiği yere yapıştırın.
- Paket adımları yalnızca Shopify paketleri satıyorsanız geçerlidir.
- Geri dönmek için yapıştırdığınız kodu silin veya Shopify'ın Revert to default seçeneğini kullanın.
- Koddaki “View image” ve “View your design” ifadelerini ve görsel genişliğini (120) değiştirebilirsiniz.
- Tasarım görseli yok mu? Alıcı ürünü sepete eklediğinde tasarım görseli kaydedilemediyse, satır seçenekleri görselsiz gösterir.