How To Find Out The Variable Names

Hi,

We just created several new profile fields (Administration > Profile Fields) and we would like to add some of them to the invoice but we do not know the variables assigned. How can we find this out?

Thank you for the help!

Regards.

They will be numerically indexed so you'll have to look them up in the DB to find the index related to that description.

Search the cscart_profile_field_descriptions table for the 'description' you are interested in. The 'object_id' is the index value you will want to use in your templates or PHP code that references custom profile fields.

They should have done this by prompting for not only the "name", but also the 'index name' to use. But....

They will be numerically indexed so you'll have to look them up in the DB to find the index related to that description.

Search the cscart_profile_field_descriptions table for the 'description' you are interested in. The 'object_id' is the index value you will want to use in your templates or PHP code that references custom profile fields.

They should have done this by prompting for not only the "name", but also the 'index name' to use. But....

Hi tbirnseth,
Thanks for the detailed info.
Do you know now how to add the 'object_id' field into the invoice? We managed to add the 'field_name' but not the 'object_id'.
Many Thanks,
Oscar

I don't remember exactly, but it's something like doing {$user_info.37} or {$order_info.37} (for index 37). Note that you have to have them set to be visible on checkout or I don't think they will be available. I'd give you a precise answer but I don't have the time to go research it right now.

Please add the following code to the invoice template:

{$order_info|fn_print_r}

You will see full content of the array with order data. Review it and find where the custom profile fields values are stored