Re: Migrating to Shopify Order Printer - Syntax Error

Solved

Migrating to Shopify Order Printer - Syntax Error

ShopifyUserTM
Tourist
7 0 2

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!

Accepted Solution (1)

Rishihuptech
Shopify Partner
642 118 129

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.

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required

View solution in original post

Replies 2 (2)

Rishihuptech
Shopify Partner
642 118 129

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.

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required
ShopifyUserTM
Tourist
7 0 2

That worked. Thank you!