Shopify themes, liquid, logos, and UX
All line breaks are removed from the text area inputs on my product page when the customer clicks "add to cart". How do I preserve the line breaks that they enter in the text area so they show in the cart?
Image 1 shows how the text looks when a customer enters it on the product page. Image 2 shows what happens after you click "add to cart". As you can see, all line breaks are removed so the text is one big run on sentence.
Product page: https://www.palmettowoodshop.com/products/personalized-baby-block
Image 1
Image 2
Hi,
You need to add the code from where the cart page content is appearing.
{{ product.metafields.my_fields.accordian_content_2.value | newline_to_br}}
Check the code in cart page liquid file.
Any other suggestions? That code didn't work.
User | RANK |
---|---|
182 | |
150 | |
80 | |
72 | |
61 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023