Catalog Selections personalization based on array data type
Hello ,I am using Selections and want to display some personalization into an email, but apparently it's not working. The selection is taking a custom attribute of type array on the user profile and then should display both of the values in the array from the catalog. I have used the personalization feature in the email template, but it's not showing up any data. The Liquid code is as follows: {% catalog_selection_items TestNew NewSelection %} {{ items[0].property_name }} {{ items[1].property_name }} {{ items[2].property_name }} The selection looks like on the image: So basically I would like the selection to have all of the properties from the catalog that have withdrawn status FALSE and also have all the values in the array of property_instructed_id custom attribute. In this case the user I am testing with has 2 values in the array, but it's not showing up neither of them. Can you please help out on what might be the issue here? Many thanks101Views0likes1CommentCan email address be used as a custom attribute in liquid?
Hi I am writing liquid code to exclude people with yahoo and gmail addresses. When I added the code to a campaign - this is the response that I received - "The following variables are not valid: email_address. If you attempted to use a custom attribute, it must use the format {{custom_attribute.${your_variable}}}" This is the code that I have ={{custom_attribute.${email_address}}} include “yahoo” The format of the custom attribute seems on point so what is not working with it'? Is it not possible to choose "email_address" as a custom attribute in liquid?Solved349Views0likes1Commentcomplex Liquid with percentages
Calling all Liquid Masters👀 (prob my use case is not even that complex, but bear with me) Is it possible to create a Liquid syntax that will spit out a result which is the percentile difference between 2 values? Let's say there's an attribute called 'last_week_total_meals' with value 5 and another one 'this_week_total_meals' with a value of 3, what liquid can I code to show that there's a -40% difference between both values?82Views0likes1Commenttime zones and time stamps in Liquid
Hi, is there a dynamic way to convert timestamps to different time zones with Liquid? I know that you can convert to %s and how to manipulate timestamps manually but I don't want to touch my code every time we change to summer/winter time here in Germany.75Views0likes1Commentstopping abandoned cart
Hey everyone! I'm trying to stop an abandoned cart email being sent if the customer's cart is empty, but it doesn't seem to be working. Is this code snippet in the correct place of the email? {% if canvas_entry_properties.${cart}.total == 0 %} {% abort_message("Cart value null") %} {% endif %}76Views0likes1CommentLiquid using time of open conditions in email?
Can we use liquid in an email to display certain content based on time ofemail open? So, if a user opens an email during morning hours, have it serve X content. And if a user opens the same email during evening hours, have it serve Y content. I believe there's use cases for time of send, but I'm looking specifically for time of email open. Thanks!Solved375Views0likes2CommentsHow to convert e-06 number to 0.0000... number with liquid
Hi everybody! I was wondering: I am getting a number with connected content that has 8 numbers behind the 0 (0.00000677). I want this number to show up with all of the numbers behind the 0, but for some reason Braze returns this:6,77e-06. Is there a way to keep the number like the 0.000... ? In the code I am using, I have some rules set up for how different number sizes should show, so maybe it could also be that i have done something wrong: <td align="right" style="font-size: 22px; font-family: Viga, Arial, Helvetica, sans-serif; color: #000000; font-weight: bold;"><span style="font-size:20px;">€ {% if coin_price == 0 %}{{coin_price | round: 2 | replace: ".", ","}}{% elsif coin_price < 0.0001 and coin_price > -0.0001 %}{{coin_price | round: 8 | replace: ".", ","}}{% elsif coin_price < 0.01 and coin_price > -0.01 %}{{coin_price | round: 6 | replace: ".", ","}}{% elsif coin_price < 1 and coin_price > -1 %}{{coin_price | round: 4 | replace: ".", ","}}{% else %}{{coin_price | round: 2 | replace: ".", ","}}{% endif %}</span></td> </tr>345Views0likes2CommentsLiquid logic - using a conditional within forloop
Hi all! I'm running into an issue where my liquid logic is breaking my email... not sure if i'm doing something wrong or if what i'm trying to do isn't possible... I'm trying to use a conditional within a forloop using canvas entry properties... i've followed the template below but the email won't even send when i test it: {% for item in {{canvas_entry_properties.${array}}} %} {% if {{item.metric}} > 1 %} {{item.image}} {% endif %} {% endfor %} i know the conditional is breaking it because the email sends successfully when i remove it. anybody know what's going on here?Solved831Views0likes6Comments