App reviews, troubleshooting, and recommendations
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!
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025