Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics

Create Column from custom array

Hi there,
For products I have a custom field of type array from the WooCommerce Appointments Plugin that looks like this:

the first number following the a is the size of the array (in this case 3 & 2).
“i” stands for the user id
“s” is a custom field for staff prices.

I would like to display the usernames (display name by id “i”) of those users and the custom price value of (“s”).

How can I do this?

Thanks a lot

7 years, 10 months ago
Stefan van den Dungen Gronovius

Hi Johannes,

Our plugin cannot handle these more complex values by default but you can use one of these two options to show the correct value on your overviews.

Change the value by using one of our filters
You can add a Custom Field Column and select your custom field in the dropdown. It will not show you the correct value but you can use the following filter to alter the value.

Create your own custom column
To have a more solid solution is to create your own column. By doing this, you have better control over the value and you can even add filtering, sorting and inline edit support for your column, depending on the complexity of the value. You can have a look at this page where you can find also a starter-kit. If you choose this option, you may want to wait for our 4.0 where it will be easier to add your own columns. But you still need to be a developer to create your own column.

7 years, 10 months ago

You must be logged in to reply to this topic.