Hi!
I am learning Liquid to use if to send a specific email notification to customers who order particular products.
I am not getting any errors, but when I send out the sample email, I don’t see the message even though it should show based on the the products in the sample order that are shown.
One question I have is Should the Liquid logic run using the products shown in the sample email, or do I need to actually create a test order?
The other question is Do you see any problem with this code. I want the text to display if any of the items on the invoice have the word “CardioChek” in them.
Thanks!
{% if line_items contains 'CardioChek' %} <p>If you've ordered a CardioChek Analyzer, but haven't ordered a starter kit or test strips, realize that you will need test strips to use your Analyzer. If you did not know this and need strips, we have planned for that. We sell a Starter Kit that includes 13 of the test strips that gives all the values your new analyzer provides: Overall Cholesterol, HDL, LDL, Triglycerides, Glucose, and Overall Cholesterol to HDL. The starter Kit also comes with 16 capillary tubes to move the blood from the finger to the unit and 16 lancets to puncture the skin. And it is available to you when you first buy your analyzer at a discount. If you order right away, we can ship the starter kit with your Analyzer. Here is the link to get your starter kit(s) <a href="https://bloodchekmedical.com/products/complete-cardiochek-starter-kit-only-99-with-analyzer-purchase">Click here for $99 Starter Kits</a> </p> {% endif %}