Skip Navigation

[Resolved] Types with barn2 WooCoomerce product Table: show not the value, but the text

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 6 replies, has 2 voices.

Last updated by thomasB-2 1 year, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#2583159

Hi,
we try to show content from Toolset Custom Field "Anzahl Tage / Stunden", with slug "anzahl-tage" with a product table, coming form barn2media WC Commerce Product Table. In Types we have a custom field as Radiobutton wich have 12 different possible values and with different Text Values, then the content of the CF.
F.E. you have "Text 1 Day - Value 1 "and so on.
We use in prduct table the commited shortcode for these column "cf:wpcf-anzahl-tage" . But these show only the value, but not the text of the option.
Was there a chance to get the text of the options also in product table?

#2583367

Hello,

It seems that the "barn2media WC Commerce Product Table" supports getting custom field value with field slug.

In Toolset side, you can display the custom radio field option "Display text" with Types shortcode, see our document:
https://toolset.com/documentation/customizing-sites-using-php/functions/#radio

Or you can get the option "Display text" with PHP function: types_render_field():
https://toolset.com/documentation/customizing-sites-using-php/functions/

You will need to check if "barn2media WC Commerce Product Table" plugin author, if their plugin can support WordPress shortcode or custom PHP codes.

#2583435

Yes - product table has function for Toolset Custom Fields: [product_table columns="name,cf:wpcf-link"]
hidden link

And it should show ShortCode Content - but my first trys with [types field='anzahl-tage'][/types] are not displayed.
hidden link

#2583865

It seems they do not support to use other shortcodes as "columns" attribute, did you contact their support?

#2583917

yes, is informed. But not every support reacts as quickly as the Toolset Support 😉
I also give feedback here when I have feedback from barn2 support.

#2585719

Please update here if you still need assistance in Toolset side.

#2585751

I get the information from Barn2 Support, that only the values in Database of a custom Field could displayed.

My issue is resolved now. Thank you!