Add value from variation custom field radio option
-
Hi there,
I have one flower website which is selling the different size of Bouquet for example: Grand, Lavish, Sumptuous & Divine. I don’t have photo for all these options. I am showing them on a product detail page with Radio option.
In the backend of each variation for a product I have added the option for free text input field. Where on setting up the variation I am typing a text “Shown in image”.
My question is is there any hook available that we can use to alter the output of the radio option to append the text for each variation if in the backend the above text input field is not empty?
The structure for radio option is:
<div class="woovr-variation-info"> <div class="woovr-variation-name">Lavish</div> <div class="woovr-variation-price"><span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">$</span>139.00</bdi></span></div> <div class="woovr-variation-availability"></div> </div>
and I want to add it inside above option like below:
<div class="woovr-variation-info"> <div class="woovr-variation-name">Lavish</div> <div class="woovr-variation-price"><span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">$</span>139.00</bdi></span></div> <div class="woovr-variation-availability"></div> <div class="shown-in-image">Shown in image</div> </div>
Any help would really be appreciated.
Thanks
- The topic ‘Add value from variation custom field radio option’ is closed to new replies.