Shopify themes, liquid, logos, and UX
I need to add my custom customer metadata to the address section on my packing slip. I have been using the following code:
{% assign customer.metafields.adv_reg.LICENSE = nil %}
{% if customer.metafields.adv_reg.LICENSE %}
{{ customer.metafields.adv_reg.LICENSE }}
{% endif %}
{% if customer.metafields.adv_reg.LICENSE != blank %}
{{ customer.metafields.adv_reg.LICENSE }}
{% endif %}
Hi @Nataleigh ,
You can use this code:
{% if customer.metafields.adv_reg.LICENSE != blank %}
{{ customer.metafields.adv_reg.LICENSE }}
{% endif %}
This code will check if the Liscene metafield is not blank and display it on the packing slip.
Thanks, I tried it and it did not work. Not sure what is going on. The field is active in the customer profile and it has data populated.
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024