Solved

How to downcase a merge tag

  • 19 October 2023
  • 2 replies
  • 16 views

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?

icon

Best answer by Felix 19 October 2023, 17:10

View original

2 replies

Userlevel 4

Hey vivao,

you used too many bracets ;)

Try this:

{{ customer.guide_space_heating_next_step_collection.step_title | downcase }}

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

Reply