App reviews, troubleshooting, and recommendations
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
Hi Again! I have run into another syntax error with the template migration to Shopify Order Printer. The line of code is
{% if billing_address And billing_address != "" And billing_address != nil %}
Last time it was something really simple. Can someone advise me on how to correct this?
Thank you, in advance!
Solved! Go to the solution
This is an accepted solution.
Hello @ShopifyUserTM
use the "and" operator instead of "And" and use "blank" instead of "nil".
{% if billing_address and billing_address != blank %}
If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.
This is an accepted solution.
Hello @ShopifyUserTM
use the "and" operator instead of "And" and use "blank" instead of "nil".
{% if billing_address and billing_address != blank %}
If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.
That worked. Thank you!