Customily information (textfields and image) on Packing slip and order confirmation mail

Hi!

We are about to start using Customily for our customized products.

When we are testing everything seems to work just fine but there are no information on packing slip or Order confirmation mail. (As a customer, i know i would like to know that all information is correct after the order is placed)

Customily says that they don’t have knowledge how this is done which i think is quite weird.

We also use another app for adding product options and they provide us with a code to fix this.

Is there any body having a solution for this?

Thanks in advance!

Hi @Bladh ,

If you are referring to display line items properties on the packing slip, then please follow the following steps:

Go to Settings >> Shipping and Delivery >> Packing slips >> Edit template

and then add the below piece of code at the appropriate position

{{ line_item.properties }}

Hope this helps

Best Regards
Jasmeet Kaur

1 Like

Thanks for information.

I have manage to show the information coming from Customily app.

Now the problem is that it shows way to much information. (See screen shot)

Is there anyone know how to hide everything but Textrad 1: and Textrad 2: and the thumb from the CustomilyProdukt?

Thanks in advance!

@Bladh
I’m glad it helped!

Try updating the previous piece of code with

{% for p in line_item.properties %}
  {% if p.first == 'Textrad 1' or p.first == 'Textrad 2' or p.first == '_customily-thumb' %}
    {% unless p.last == blank %}
      {{ p.first }}:{{ p.last }}
      {% endif %}
      

    {% endunless %}
  {% endif %}
{% endfor %}

Best Regards
Jasmeet Kaur

1 Like

Thanks for you effort in the matter.

I get an error when previewing

Bladh_0-1709719890689.png

Ahh think i got it. Removed first {% endif %}

This seems to be working. Only problem is that i have a lot of options and they are often namned after the product.
Does this mean that i have to add all the option name in the code to make it work?

Yes, it will depend if you want only the limited one’s.

Please Like and mark as Solution if any answers have helped you out

1 Like

Thanks again!

In my latest test order i have 2 products. One where Customily is added and one where BSS options is added (bss option also adds text fields but there are no customization in real time for this)
On my packing slip now i can se Textrad 1 and textrad 2 for the product with Customily.
For the product, where i have an option “Namn”, it won’t show.
I added “namn” in the code ({% if p.first == ‘Textrad 1’ or p.first == ‘Textrad 2’ or p.first == ‘Namn’ %})
Do i have to add “Namn” in another way?

@Bladh
Can you please provide screenshot of this property.
If the property is in lower case then you’ll have to update it the same way. like “namn” instead of “Namn”.

1 Like

@JasmeetVT14313

I have tried with both “Namn” and “namn”
See screenshot below.

@Bladh
These fields have the text which is visible to customers as labels.
You’ll have to check the exact property.
Try checking it in “Show Advanced Option Settings” or from one of you previous orders which has this property or by updating the code which we have updated today with this.

1 Like

@JasmeetVT14313

There are unfortunately there are no more options under Advanced.
The option is called “Namn”

I tried the updated code that suppose to show the thumb from customily, but that didn’t work out.

The code for showing the thumb in Order Confirmation mail is:

{% if line.properties['_customily-preview'] != blank %}
<img class="order-list__product-image" src="{{ line.properties['_customily-preview'] }}" width="60" height="60" align="left">
{% endif %}

I don’t know if this is usable in Packing slip?

@JasmeetVT14313

Do you have any other suggestions?

Thanks in advance

Best regards

Bladh

@Bladh
I request you to Like the replies which are helping you.

Try using below code for showing the thumb in Order Confirmation mail

{% for p in line_item.properties %}
  {% if p.first == 'Textrad 1' or p.first == 'Textrad 2' or p.first == '_customily-thumb' %}
    {% unless p.last == blank %}
      {{ p.first }}:{{ p.last }}
      {% endif %}
      

    {% endunless %}
  {% elsif p.first == '_customily-preview' %}
  
  {% endif %}
{% endfor %}

As for the “Namn” is concerned, I can’t guide more without checking the store code/app. If you’d like to have more assistance, don’t hesitate to send me a PM.

1 Like