Answer the question
In order to leave comments, you need to log in
Display custom fields for woocommerce product when clicking radiobutton ACF?
In general, the task is this:
Display radio buttons using the ACF plugin so that you can set the text that will be displayed when you click on the radio button.
Perhaps it will be the same custom fields with ACF. Well, that is, we click on radio button 1 and see
, click on button 2 and see -
In a nutshell, I have different options for packing goods on the site - Pack and Do not pack, you just need to specify the dimensions. Well, that is, a person presses on "Do not pack" and sees 1m3 for the previously filled field, presses "pack" and sees, for example, 2m3.
I tried to display radio buttons in the product card, they are displayed, but there is no way to set the content for display in order to display data when clicked. Although there may be such an option in the presets, but I did not find it. Thanks to everyone for earlier -'text1');
the_field(-'text2');
the_field(
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question