I have a basic grip on php and can usually get away with a few minutes research when checking how to do a thing. But I’ve stumbled a bit here.
I’ve got a custom field which allows the author to select some checkboxes when making a post to define the variations available. On the other side the customer can then select a product from those available using a selection box. All good so far.
I’d like to display the labels of the boxes checked rather than their values and I can’t seem to make it work. I need the values for some js so they could come through as the option ids.