The following code will display line 2 of the customer's address if they have entered data into the field created by {FIELD-BILL-ADDRESS-2}.
- A customer has entered 123 Example Street into the field created by {FIELD-BILL-ADDRESS-2}.
- The following content in the web page's template:
{IF-CUSTOMER-BILL-ADDRESS-2-BEGIN} Address 2: {CUSTOMER-BILL-ADDRESS-2} {IF-CUSTOMER-BILL-ADDRESS-2-END}
- Will display the following when viewing that web page in the storefront:
Address 2: 123 Example Street
The following code will hide line 2 of the customer's address if they have not entered data into the field created by {FIELD-BILL-ADDRESS-2}.
- A customer has skips the field created by {FIELD-BILL-ADDRESS-2} and enters nothing into it.
- The following content in the web page's template:
{IF-CUSTOMER-BILL-ADDRESS-2-BEGIN} Address 2: {CUSTOMER-BILL-ADDRESS-2} {IF-CUSTOMER-BILL-ADDRESS-2-END}
- Will display the nothing when viewing that web page in the storefront:
|