Liquid, JavaScript, themes, sales channels
Hello folks,
have been looking for a solution in the forum for a while but unfortunately haven't found any.
I would like to add an individual link to the order notes for the customer to download. However, the "<a" link does not resolve. I also tried to add <html> or {{order.note | to the liquid url}} to use ...
The tags can be issued from links, but the character length is limited to 40 characters 🙂
do you have an idea how I could solve that?
Thanks in advance!
(Screenshots in the attachment)
Markus.
Hi @Wabema ,
If it is just image link, you can follow these steps:
- Step 1( image 1 😞 Add the name in order notes, not the whole html. Ex: if you want to display an image named ABC.png you just need to add ABC.png at order notes.
- Step 2( image 2 😞 Add this code in Customize:
<h2>More Info</h2>
{%- if order.note != blank -%}
Planzeichnung: <a href="{{ order.note | asset_url }}">HERE</a>
{%- else -%}
--
{%- endif -%}
<hr>
Or simply a link, you can still add the link in the note and display it with the code:
<h2>More Info</h2>
{%- if order.note != blank -%}
Planzeichnung: <a href="{{ order.note }}">HERE</a>
{%- else -%}
--
{%- endif -%}
Hope it helps!
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024