Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Roney,

    did you create a github for this? I would really appreciate if you could pass me the code as I’m trying to do exactly that, enable inserting images in the radio buttons.
    Thanks a lot & looking forward to hearing from you!

    btw, I just found this. It looks like someone is already working on the code. Maybe you want to contact Isabella.
    https://github.com/isabelc/woocommerce-variation-description-radio-buttons

    Thread Starter roneymoscato

    (@roneymoscato)

    Desculpe a demora, de uma olhada está funcionando perfeitamente há uns dias, hoje tem pequenos bugs.

    https://github.com/moskatus/woocommerce-radio-buttons

    I found solution for latest woocommerce 2.4.0, in variable.php put this apply_filters( 'woocommerce_variation_option_name', $option ) in radio value, hope it will solve issue

    Thanks nkjskj.
    Works now for me.
    Line 49 changed to:
    echo ‘<input type=”radio” value=”‘ .apply_filters( ‘woocommerce_variation_option_name’, $option ) . ‘” ‘ . checked( sanitize_title( $selected_value ), sanitize_title( $option ), false ) . ‘ id=”‘. esc_attr( sanitize_title($name) ) .'” name=”attribute_’. sanitize_title($name).'”>’ . apply_filters( ‘woocommerce_variation_option_name’, $option ) . ‘
    ‘;

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Upgrade Code’ is closed to new replies.