From 09755d61996f0cfbad24f9e8848e7fe6dad15791 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 21 Apr 2016 16:17:52 -0400 Subject: [PATCH] Attempt to fix the variations all autofilling with last selection --- woocommerce/single-product/add-to-cart/variable.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' ) . '' ) : ''; + ?>