From: Laury GvR Date: Thu, 21 Apr 2016 20:17:52 +0000 (-0400) Subject: Attempt to fix the variations all autofilling with last selection X-Git-Tag: v1.0.0^2~10 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=09755d61996f0cfbad24f9e8848e7fe6dad15791;p=WP-Themes%2Fjollylama.git Attempt to fix the variations all autofilling with last selection --- diff --git a/woocommerce/single-product/add-to-cart/variable.php b/woocommerce/single-product/add-to-cart/variable.php index 7b9bc20..30d3f6e 100644 --- a/woocommerce/single-product/add-to-cart/variable.php +++ b/woocommerce/single-product/add-to-cart/variable.php @@ -40,7 +40,8 @@ do_action( 'woocommerce_before_add_to_cart_form' ); ?> get_variation_default_attribute( $attribute_name ); wc_dropdown_variation_attribute_options( array( 'options' => $options, 'attribute' => $attribute_name, 'product' => $product, 'selected' => $selected ) ); - echo end( $attribute_keys ) === $attribute_name ? '' . __( 'Clear selection', 'woocommerce' ) . '' : ''; ?> + echo end( $attribute_keys ) === $attribute_name ? apply_filters( 'woocommerce_reset_variations_link', '' . __( 'Clear', 'woocommerce' ) . '' ) : ''; + ?>