Support » Plugin: WC Variations Radio Buttons » Reset or Clear Selection

  • Hi-What would the code be, and where would I add the code for me to be able to have the standard “Clear Selection” button so users do not have to reload the entire page when they want to clear selections on the variable product. Currently I have 3 options. Option 2 and 3 can be changed but option 1 will not let you change it.

Viewing 1 replies (of 1 total)
  • Modify the plugin file variable.php to include “Reset” or “Clear” on line 63 which is blank by default. File is found in plugins/wc-variations-radio-buttons/templates/single-product/add-to-cart/variable.php

    echo end( $attribute_keys ) === $name ? wp_kses_post( apply_filters( 'woocommerce_reset_variations_link', '<a href="#">' . esc_html__( 'Reset', 'woocommerce' ) . '</a>' ) ) : '';

    • This reply was modified 10 months, 3 weeks ago by shanemckay.
    • This reply was modified 10 months, 3 weeks ago by shanemckay.
Viewing 1 replies (of 1 total)
  • The topic ‘Reset or Clear Selection’ is closed to new replies.