From 9554d3f2533a20acbf7b35b021804d195626a14d Mon Sep 17 00:00:00 2001 From: superjinya Date: Mon, 15 Oct 2012 11:01:42 +0900 Subject: [PATCH] Update templates/single-product/add-to-cart/variable.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Variation options fixed as issues provided by ksemel. Woo Jin Koh --- templates/single-product/add-to-cart/variable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/single-product/add-to-cart/variable.php b/templates/single-product/add-to-cart/variable.php index 5e923789063..fccc5b74342 100644 --- a/templates/single-product/add-to-cart/variable.php +++ b/templates/single-product/add-to-cart/variable.php @@ -41,7 +41,7 @@ global $woocommerce, $product, $post; switch ( $orderby ) { case 'name' : - $args = array( 'orderby' => 'name', 'order' => 'ASC', 'menu_order' => false ); + $terms = get_terms( sanitize_title($name), array('menu_order' => 'ASC', 'hide_empty' => false) ); break; case 'id' : $args = array( 'orderby' => 'id', 'order' => 'ASC', 'menu_order' => false );