De orderbevestiging, de pakbon en de personeelsmelding voor nieuwe bestellingen van Shopify tonen het product, niet wat de koper heeft gepersonaliseerd. Customix slaat de ontwerpafbeelding en de opties al op bij elke orderregel. Plak een kort stukje code in elk sjabloon en onder elk gepersonaliseerd product wordt getoond:

  • de ontwerpafbeelding;
  • de opties die de koper heeft gekozen (technische velden worden verborgen; geüploade foto's worden een link "View image");
  • in e-mails een link "View your design" die het ontwerp weer opent.

Producten zonder ontwerp zien er uit zoals voorheen.

Je vindt de code in de Customix-app onder Instellingen > Integraties > Store notifications, kaart Code voor meldingssjablonen, met een tabblad per sjabloon en een knop Kopiëren bij elk stukje. De naam van het sjabloon in de eerste stap is een link die het opent in je Shopify admin.

Bestelbevestiging per e-mail

1. Open het sjabloon: Shopify admin > Settings > Notifications > Customer notifications > Order confirmation > Edit code (https://YOUR-STORE.myshopify.com/admin/email_templates/order_confirmation/edit).

2. Zoek in de code de eerste {{ line.variant.title }} en plak deze code na de {% endif %} die erop volgt:

<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. Verkoop je Shopify-bundels? Zoek de eerste {{ component.quantity }} en plak deze code na de <br> die erop volgt:

<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. Sla het sjabloon op en plaats een testbestelling om het te controleren.

Pakbon

1. Open het sjabloon: Shopify admin > Settings > Shipping and delivery > Packing slips > Edit (https://YOUR-STORE.myshopify.com/admin/settings/packing_slip_template).

2. Zoek de eerste {{ line_item.sku }} en plak deze code na de </p> die erop volgt:

<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. Sla het sjabloon op.

De pakbon heeft geen link "View your design": hij wordt afgedrukt.

Personeelsmelding per e-mail (Nieuwe bestelling)

1. Open het sjabloon: Shopify admin > Settings > Notifications > Staff notifications > New order > Edit code (https://YOUR-STORE.myshopify.com/admin/email_templates/new_order_notification/edit).

2. Zoek de eerste {{ line.sku }} en plak dezelfde code als in stap 2 van de orderbevestiging na de {% endif %} die erop volgt.

3. Verkoop je bundels? Zoek de eerste {{ component_display }} en plak de bundelcode (stap 3 van de orderbevestiging) na de <br> die erop volgt.

4. Verkoop je bundels? Zoek de eerste {{ component.quantity }} en plak de bundelcode na de {% endif %} die erop volgt.

5. Sla het sjabloon op.

Goed om te weten

  • De stappen volgen de standaardsjablonen van Shopify. Als je een sjabloon hebt aangepast, plak de code dan op de plek waar de naam of de opties van het product worden getoond.
  • De bundelstappen zijn alleen van belang als je Shopify-bundels verkoopt.
  • Om terug te gaan verwijder je de geplakte code, of gebruik je Revert to default van Shopify.
  • Je kunt in de code de woorden "View image" en "View your design" en de breedte van de afbeelding (120) aanpassen.
  • Geen ontwerpafbeelding? Als de ontwerpafbeelding niet kon worden opgeslagen toen de koper het product aan de winkelwagen toevoegde, toont de regel de opties zonder afbeelding.