Support

Search results for ""

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

How to inline edit a field with serialized data

WordPress Support Ticket Link

On the ticket above, you provided a solution for doing some changes manually with PHP but I’m not familiar enough. Can you help me / guide me a bit further on how to proceed please? Thanks

——–

I’m using YITH Point of Sale to manage a stock per store, and this plugin has two meta fields :

_yith_pos_multistock_enabled

This is a simple “yes” or “no”

_yith_pos_multistock

This is encoded as serialized data like a:2:{i:8924;i:7;i:9131;i:3;}, where :

– 8924 refers to the Store 1
– 7 refers to the stock of Store 1
– 9131 refers to the Store 2
– 3 refers to the stock of Store 2

Now, in your plugin, when you select “multiple values / serialized”, it asks for array keys but I’m facing difficulty to define this information. I tried entering “8924; 9131” or “8924,9131” but I’m not able to make it work. What am I supposed to enter exactly there?

Thanks

1 month ago
Stefan van den Dungen Gronovius
Developer

We don’t offer a way to inline edit serialized data, even with the hook to display the value, inline editing will not be possible with the changes in the hook. The only way to support this specific field is to write your own column with the necessary editing support. We have a template that can be used for that, but it requires some advanced programming knowledge to make it work for your use case.

https://docs.admincolumns.com/article/21-how-to-create-my-own-column

1 month ago
Simon Gevcen

Hi Stefan,

I’m a web designer, but not a web developer.

I saw the link you gave but I am not capable of making my own column, there is really no other way to overcome this issue?

If not, can you please help a bit further in this? Otherwise I’m really blocked… :/

1 month ago

You must be logged in to reply to this topic.