Customers' metafields to be output in PDF invoices, orders and/or packing slips

Highlighted
New Member
1 0 0

Dear All,

 

we would like to have some extra fields for customers to be auto typed by own users in the register step, so we installed an App called "Advanced Registration - Customer Fields, Locks, and Approval".

 

This App was really cool for this purpose since it has a smart interface and good result, but when we tried to output the values of customer metafields stored in Shopify in the "Order Printer" App, nothing happens.

 

After two days testing by ourselves, we decided to contact both developers ("Advanced Registration - Customer Fields, Locks, and Approval" App as well as "Order Printer" App).

 

"Advanced Registration - Customer Fields, Locks, and Approval" support told us that their App was doing his job correctlly, since we could see an example in https://blueberrydx.myshopify.com/admin/customers/1373264281663/metafields.json.

 

The metafields output for that user (1373264281663) is:

 

{"metafields":[{"id":5919293014079,"namespace":"adv_reg","key":"datepicker-QE0Y","value":"1968-01-24T00:00:00.000+01:00","value_type":"string","description":null,"owner_id":1373264281663,"created_at":"2019-09-05T19:56:13+02:00","updated_at":"2019-09-05T19:56:13+02:00","owner_resource":"customer"},{"id":5919293046847,"namespace":"adv_reg","key":"dropdown-LU4V","value":"DNI","value_type":"string","description":null,"owner_id":1373264281663,"created_at":"2019-09-05T19:56:13+02:00","updated_at":"2019-09-05T19:56:13+02:00","owner_resource":"customer"},{"id":5919292981311,"namespace":"adv_reg","key":"dropdown-MYQG","value":"Masculino","value_type":"string","description":null,"owner_id":1373264281663,"created_at":"2019-09-05T19:56:13+02:00","updated_at":"2019-09-05T19:56:13+02:00","owner_resource":"customer"},{"id":5919293079615,"namespace":"adv_reg","key":"dropdown-W0BI","value":"Otro","value_type":"string","description":null,"owner_id":1373264281663,"created_at":"2019-09-05T19:56:13+02:00","updated_at":"2019-09-05T19:56:13+02:00","owner_resource":"customer"},{"id":5919293112383,"namespace":"adv_reg","key":"text-SVCA","value":"46563399","value_type":"string","description":null,"owner_id":1373264281663,"created_at":"2019-09-05T19:56:13+02:00","updated_at":"2019-09-05T19:56:13+02:00","owner_resource":"customer"},{"id":5919293145151,"namespace":"adv_reg","key":"token","value":"68baeef5-7394-4e3b-8231-782aeea2eba7","value_type":"string","description":null,"owner_id":1373264281663,"created_at":"2019-09-05T19:56:13+02:00","updated_at":"2019-09-05T19:56:13+02:00","owner_resource":"customer"}]}

And then they told us to contact to "Order Printer" support because "it seems this App doesn't allow to recover metafields"...

 

The way we are using to recovery customers' metafields is (as suggested by "Advanced Registration - Customer Fields, Locks, and Approval" support):

 

{{ customer.metafields.adv_reg.dropdown-LU4V }}
{{ customer.metafields.adv_reg.dropdown-W0BI }}
{{ customer.metafields.adv_reg.datepicker-QE0Y }}
{{ customer.metafields.adv_reg.dropdown-LU4V }}
{{ customer.metafields.adv_reg.text-SVCA }}

But nothing achieved. Maybe we should need some "for" sentence? If so, could anybody tell us the correct syntax to recover these metafirelds? I mean, something like:

 

{% for fields in customer.metafields.adv_reg %}
  {{ customer.metafields.adv_reg.dropdown-LU4V }}
  {{ customer.metafields.adv_reg.dropdown-W0BI.value }}
  {{ customer.metafields.adv_reg.datepicker-QE0Y }}
  {{ customer.metafields.adv_reg.dropdown-LU4V }}
  {{ customer.metafields.adv_reg.text-SVCA }}
{% endfor %}

Please note we don't known if "fields" is correct, or we should use "item_list", or another variable. Same for "customer.metafields.adv_reg".

 

Besides, in our frustation, we have also installed another App, called "Order Printer Pro" (just to check if "Order Printer" was the problem as suggested by "Advanced Registration - Customer Fields, Locks, and Approval" support), but nothing achiever too.

 

So, does anybody created custom fields for customers in the register process and then show their values in the invoices, orders and/or packing slips?

 

Thank you in advance,

 

Sergio

 

 

0 Likes