Add a new line/text formatting in abandoned cart email content

Solved
JoyStreet
Tourist
7 0 3

Hello Guys

 

Can you advise how can I add a newline in the email body such that following lines appear as depicted below (just 1 example posted here)

 

CURRENT:

Hi, you added an item to your shopping cart and haven't completed your purchase. If you have any questions, please feel free to drop a note at XXX@XXX.COM.

 

DESIRED:

Hi, you added an item to your shopping cart and haven't completed your purchase.

If you have any questions, please feel free to drop a note at XXX@XXX.COM.

 

 

 

{% capture email_body %}
{% if billing_address.first_name %}
{% if item_count == 1 %}
Hi {{ billing_address.first_name }}, you added an item to your shopping cart and haven't completed your purchase. If you have any questions, please feel free to drop a note at XXX@XXX.COM.
{% else %}
Hi {{ billing_address.first_name }}, you added items to your shopping cart and haven't completed your purchase. If you have any questions, please feel free to drop a note at XXX@XXX.COM.
{% endif %}
{% else %}
{% if item_count == 1 %}
Hi, you added an item to your shopping cart and haven't completed your purchase. If you have any questions, please feel free to drop a note at XXX@XXX.COM.
{% else %}
Hi, you added items to your shopping cart and haven't completed your purchase. If you have any questions, please feel free to drop a note at XXX@XXX.COM.
{% endif %}
{% endif %}
{% endcapture %}

Accepted Solution (1)
Visely-Team
Shopify Partner
1843 210 420

This is an accepted solution.

Works perfectly fine for my templates. What is the email client you are using to view the message? Rendering might differ from client to client.

 

Tested in Chrome/Gmail and MacOSX Mail.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog

View solution in original post

Replies 6 (6)
Visely-Team
Shopify Partner
1843 210 420

Use a <br> tag to move the second sentence to a new line. Just add it after the "purchase.". Unfortunately, can't provide you with a complete example, as the forum engine is interpreting my <br> tags 🙂

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
JoyStreet
Tourist
7 0 3
Unfortunately
tag didn’t work. I had tried that before posting to this forum.
Visely-Team
Shopify Partner
1843 210 420

This is an accepted solution.

Works perfectly fine for my templates. What is the email client you are using to view the message? Rendering might differ from client to client.

 

Tested in Chrome/Gmail and MacOSX Mail.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
JoyStreet
Tourist
7 0 3
It did work after I ensured there is space before and after HTML tag. Thanks
Raj_Rana
Shopify Partner
10 0 4

This is so frustrating, I have given a space before and after and still no joy. I had assumed this was quite a simple thing to do...

Can anyone spot anything I'm doing wrong here?

Hi {{ billing_address.first_name }}, <br> <br> you added an item to your shopping cart and for whatever reason haven't completed your purchase. You can complete it now while it's still available.

Output below.

Screenshot 2021-03-05 at 6.51.44 AM.png

BadBixchDecor
Tourist
5 0 5

Worked for me thanks a lot!