Skip to main content
Solved

How to downcase a merge tag


I’m trying to use downcase in liquid but on a merge tag. For example, I’m trying to do this:

Your next step is to {{ "{{customer.guide_space_heating_next_step_collection.step_title}}" | downcase }}.

 

But the result is this:

 

Your next step is to Review rebates and tax incentives" | downcase }}. 

 

Is there a way to downcase a merge tag?

Best answer by Felix

Hey vivao,

you used too many bracets ;)

Try this:

{{ customer.guide_space_heating_next_step_collection.step_title | downcase }}

View original
Did this topic help you find an answer to your question?

2 replies

Felix
  • Novice
  • 223 replies
  • Answer
  • October 19, 2023

Hey vivao,

you used too many bracets ;)

Try this:

{{ customer.guide_space_heating_next_step_collection.step_title | downcase }}


  • Author
  • Novice
  • 1 reply
  • October 19, 2023

Ah, doesn’t need quotes around it because it’s already a merge tag -- that makes perfect sense.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings