Replace or delete instruction

Chiara3
New Member
1 0 0

Hi All,

I'm managing my PO PRINT using liquid language.

On part of the PO Print is related to the ship to address, that is correctly taken from the user profile:

Name   Company Name

Line 1    Company address

City       Kingston 11

Country Code    JM

Location Code   JM20

 

Now, the LOCATION CODE (in this example is JM20) must be hide or deleted only on the PO print and not from the user profile.

So I'm trying to write the instruction like:

{% if ship_to_address.location_code == 'JM20' %}   -->OK

I don't know how to write in liquid if the statement is true, delete JM20. In order to don't have the location code on the PO print.

Any suggestion?

Thank you very much to all,

Chiara 

 

0 Likes