We’d like to have the order notes that a customer inputs on their order to show up in the confirmation email they receive. I know I need to use {{ note }} to grab it, but beyond that I’m not sure where I should place it or what the code should look like surrounding it when I add it to the order confirmation. Can anyone help? One shopify guru told us that we needed our theme developer’s help to do this but I’m pretty sure this is standard cut and paste code into the order confirmation coding…? I just don’t know what to cut and paste…
Follow these steps
Click on Settings :-> Notifications :-> Order confirmation
or you can reach directly hp_yourstore - Administration
Now here you have template, paste your code a/to need e.g
I followed your code to add notes to order notifications and it worked great, thank you! One question though, is there any way to format it better. It does not add any line breaks so the notes are one long string which is hard to read. Here is an example of what it looks like - https://www.cloudhq.net/c/6fd5acb5b55e0c
I’m sorry I don’t understand how to do that. I don’t know html very well but have used html editors to create html code. In the case of formatting the Note Variable I don’t know where to put the html tags.
Can you show me the exact html code and where to put it in the following example so that it will honor line breaks in the note box -
{% if note != ’ ’ %}
Note: {{ note }}
{% endif %}
I’d be happy to make a small donation for your help.
I think you misunderstood what I’m trying to do. I added your code but what I’m trying to accomplish is that if the Note the customer types in is on mulitple lines I would like it to appear that way in the notification. Right now it is one long text string. Here is a screenshot - https://www.cloudhq.net/c/a2d0d92109beb0
Is it possible to create line breaks if the note contains multiple lines?
Run into same issue here. looking for a way to print out note with it’s original line break as it was entered. If just simply use {{note}}, it removed the original link breaks. do we have a solution here?
Hi,
Any idea how to take this a step further and whenever there are no Order Notes left by a customer, show a default text instead in the order confirmation email? For example, if a customer doesn’t leave anything in the Order Notes box, then it would show up in this way in order conf email:
Notes: You haven’t left any notes for your order
Any idea how to achieve something like this? Thanks!
I’m ready to leave you a decent tip if you can help me to sort this out. More like to pay you not just to tip, to be honest. This problem is really annoying and quite frankly I have already wasted too much time on it. I mean, seems that I’m really close to sorting it out since occasionally it works exactly as intended, which is
Show the order notes in order confirmation email whenever a customer leaves some notes on the cart page;
Show the generic text (You have not added any notes regarding this order) in order confirmation email whenever a customer doesn’t leave any order notes;
You can find the piece of code above- the one I’m inserting in the order confirmation email. It works occasionally (as seen in the dropbox link provided in my previous msg on this forum thread), but then running the next text without changing a single detail in code - it suddenly doesn’t work. I have no explanation for this because 2 tests I run back-to-back are completely the same- the same product I’m adding to cart, the same browser etc.etc.- and it one occasion it doesn’t work while in the other one it works.
Please let me know if you have any ideas. As I mentioned, I’m ready to pay for sorting this out. Thanks!