We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to replace a space in a customer name with %20 in emailed links?

Solved

How to replace a space in a customer name with %20 in emailed links?

specklefarms
Excursionist
40 1 12

I created a flow to email me a link to search for a customer's name whenever an Abandoned Checkout occurs, but the link breaks. How do I have Flow convert spaces in their name to %20?

 

The screenshot below is an example of what happens.

Accepted Solution (1)
PaulNewton
Shopify Partner
8031 688 1649

This is an accepted solution.

| replace  for when it must be %20 etc or one offs, otherwise use url_encode keeping in mind it turns spaces to + signs

https://shopify.github.io/liquid/filters/url_encode/ 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


View solution in original post

Replies 2 (2)

Kalen_Jordan
Shopify Partner
803 39 148

You should be able to use the replace liquid filter for that:

https://help.shopify.com/en/manual/shopify-flow/reference/variables#filters

PaulNewton
Shopify Partner
8031 688 1649

This is an accepted solution.

| replace  for when it must be %20 etc or one offs, otherwise use url_encode keeping in mind it turns spaces to + signs

https://shopify.github.io/liquid/filters/url_encode/ 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org