WPIntell

Source evidence

Reset or Clear Selection

WC Variations Radio Buttons · support · 2018-11-13T16:48:00+00:00

complaintsentiment
mediumseverity
0.81relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

10 / 67 rows with source links

14.9% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

57 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
kevins1987 unresolved
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. 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 7 years, 1 month ago by shanemckay . This reply was modified 7 years, 1 month ago by shanemckay .

Comments

1 shown
shanemckay 2019-04-12T02:47:00+00:00

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 7 years, 1 month ago by shanemckay . This reply was modified 7 years, 1 month ago by shanemckay .