From fe1e12df18d178602c88110b538bea8eb6673dc8 Mon Sep 17 00:00:00 2001 From: Patrick Garman Date: Thu, 10 May 2012 06:37:10 -0500 Subject: [PATCH 01/23] WC_Debug Filters Added some filters which allow extensions to tie into the debug page. --- admin/woocommerce-admin-debug.php | 113 ++++++++++++++++++++---------- 1 file changed, 75 insertions(+), 38 deletions(-) diff --git a/admin/woocommerce-admin-debug.php b/admin/woocommerce-admin-debug.php index 91bdc94b415..e0dea153c28 100644 --- a/admin/woocommerce-admin-debug.php +++ b/admin/woocommerce-admin-debug.php @@ -9,7 +9,20 @@ function woocommerce_debug() { global $woocommerce; - + $tools = apply_filters( 'wc_debug_tools', array( + 'clear_transients' => array( + 'name' => __('Transients','woocommerce'), + 'button' => __('Clear Transients','woocommerce'), + 'desc' => __( 'This tool will clear the product/shop transients cache.', 'woocommerce' ), + ), + 'reset_roles' => array( + 'name' => __('Capabilities','woocommerce'), + 'button' => __('Reset Capabilities','woocommerce'), + 'desc' => __( 'This tool will reset the admin, customer and shop_manager roles to default. Use this if your users cannot access all of the WooCommerce admin pages.', 'woocommerce' ), + ), + ) ); + $classes = array('alternate',''); + $class = 0; ?>

@@ -37,6 +50,19 @@ function woocommerce_debug() { echo '

' . __('Roles successfully reset', 'woocommerce') . '

'; break; + default: + if( isset( $tools[$_GET['action']]['callback'] ) ) { + $callback = $tools[$_GET['action']]['callback']; + $return = call_user_func( $callback ); + if( $return === false ) { + if( is_array( $callback ) ) { + echo '

' . sprintf( __('There was an error calling %s::%s', 'woocommerce'), get_class( $callback[0] ), $callback[1] ) . '

'; + + } else { + echo '

' . sprintf( __('There was an error calling %s', 'woocommerce'), $callback ) . '

'; + } + } + } } } ?> @@ -288,31 +314,49 @@ function woocommerce_debug() { + '; + $posting['fsockopen_curl']['success'] = false; + } + + // WP Remote Post Check + $posting['wp_remote_post']['name'] = __('WP Remote Post Check','woocommerce'); + $params = array( + 'sslverify' => false, + 'timeout' => 30, + 'user-agent' => 'WooCommerce/'.$woocommerce->version + ); + $response = wp_remote_post( 'https://www.paypal.com/cgi-bin/webscr', $params ); + if ( ! is_wp_error($response) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) { + $posting['wp_remote_post']['note'] = __('wp_remote_post() was successful - PayPal IPN is working.', 'woocommerce'); + $posting['wp_remote_post']['success'] = true; + } else { + $posting['wp_remote_post']['note'] = __('wp_remote_post() failed. PayPal IPN won\'t work with your server. Contact your hosting provider. Error: ', 'woocommerce') . $response->get_error_message(); + $posting['wp_remote_post']['success'] = false; + } + + $posting = apply_filters( 'wc_debug_posting', $posting ); + ?> + - - - ' . __('Your server has fsockopen or Curl enabled.', 'woocommerce'). ''; - else - echo '' . __('Your server does not have fsockopen or Curl enabled - PayPal IPN and other scripts which communicate with other servers will not work. Contact your hosting provider.', 'woocommerce'). ''; ?> - - - - false, - 'timeout' => 30, - 'user-agent' => 'WooCommerce/'.$woocommerce->version - ); - $response = wp_remote_post( 'https://www.paypal.com/cgi-bin/webscr', $params ); - - if ( ! is_wp_error($response) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) - echo '' . __('wp_remote_post() was successful - PayPal IPN is working.', 'woocommerce'). ''; - else - echo '' . __('wp_remote_post() failed. PayPal IPN won\'t work with your server. Contact your hosting provider. Error: ', 'woocommerce') . $response->get_error_message() . ''; - ?> + + + + + + + + + @@ -320,26 +364,19 @@ function woocommerce_debug() { - + - - + $tool) { ?> + +

- - -

- - - - - -

- - + +

+ From 4406751afd528658d0c9941ce07a53c8d13dbd29 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 14 May 2012 15:36:47 +0100 Subject: [PATCH 02/23] more flexible template loader --- readme.txt | 1 + woocommerce-core-functions.php | 34 ++++++++++++++++++++++++---------- 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/readme.txt b/readme.txt index 6469107ec31..55f21280fff 100644 --- a/readme.txt +++ b/readme.txt @@ -154,6 +154,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc * Tweak - Optimisations to monthly and product reports * Tweak - Individually sold variation handling * Tweak - Removed mdash; from shipping options +* Tweak - Made woocommerce_locate_template more useful for third party plugins - ability to pass a full path * Fix - Google Analytics options fix * Fix - % discount rounding diff --git a/woocommerce-core-functions.php b/woocommerce-core-functions.php index aa017bb313e..b85ea463f62 100644 --- a/woocommerce-core-functions.php +++ b/woocommerce-core-functions.php @@ -262,13 +262,13 @@ function woocommerce_get_template_part( $slug, $name = '' ) { /** * Get other templates (e.g. product attributes) passing attributes and including the file */ -function woocommerce_get_template( $template_name, $args = array(), $template_path = '' ) { +function woocommerce_get_template( $template_name, $args = array(), $template_path = '', $default_path = '' ) { global $woocommerce; if ( $args && is_array($args) ) extract( $args ); - $located = woocommerce_locate_template( $template_name, $template_path ); + $located = woocommerce_locate_template( $template_name, $template_path, $default_path ); do_action( 'woocommerce_before_template_part', $template_name, $template_path, $located ); @@ -278,19 +278,33 @@ function woocommerce_get_template( $template_name, $args = array(), $template_pa } /** - * Locate a template and return the path for inclusion + * Locate a template and return the path for inclusion. + * + * This is the load order: + * + * yourtheme / $template_path / $template_name + * yourtheme / $template_name + * $default_path / $template_name */ -function woocommerce_locate_template( $template_name, $template_path = '' ) { +function woocommerce_locate_template( $template_name, $template_path = '', $default_path = '' ) { global $woocommerce; - $template = ( ! empty( $template_path ) ) ? locate_template( array( $template_path . $template_name , $template_name ) ) : ''; - - // Look in yourtheme/woocommerce/template-name and yourtheme/template-name - if ( ! $template ) $template = locate_template( array( $woocommerce->template_url . $template_name , $template_name ) ); + if ( ! $template_path ) $template_path = $woocommerce->template_url; + if ( ! $default_path ) $default_path = $woocommerce->plugin_path() . '/templates/'; - // Get default template - if ( ! $template ) $template = $woocommerce->plugin_path() . '/templates/' . $template_name; + // Look within passed path within the theme - this is priority + $template = locate_template( + array( + $template_path . $template_name, + $template_name + ) + ); + // Get default template + if ( ! $template ) + $template = $default_path . $template_name; + + // Return what we found return apply_filters('woocommerce_locate_template', $template, $template_name, $template_path); } From ad27e2244fa39175a0cd50bd8c84513f7f547f62 Mon Sep 17 00:00:00 2001 From: Coen Jacobs Date: Tue, 15 May 2012 08:28:31 +0200 Subject: [PATCH 03/23] Extra check in best sellers widget for price 0 when it should be excluded --- widgets/widget-best_sellers.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/widgets/widget-best_sellers.php b/widgets/widget-best_sellers.php index 58d3aeed4b9..521472780fa 100644 --- a/widgets/widget-best_sellers.php +++ b/widgets/widget-best_sellers.php @@ -68,7 +68,12 @@ class WooCommerce_Widget_Best_Sellers extends WP_Widget { ); if ( isset( $instance['hide_free'] ) && 1 == $instance['hide_free'] ) { - $query_args['meta_query'] = array( array( 'key' => '_price', 'value' => 0, 'compare' => '>' ) ); + $query_args['meta_query'] = array( + array( 'key' => '_price', 'value' => 0, 'compare' => '>' ), + array( 'key' => '_price', 'value' => '0.00', 'compare' => '!=' ), + ); + + $query_args['meta_query']['relation'] = 'AND'; } $r = new WP_Query($query_args); From d23fbcc698a55aaac3e9a045398bdf0720ccd606 Mon Sep 17 00:00:00 2001 From: Justin Stern Date: Tue, 15 May 2012 20:23:43 -0400 Subject: [PATCH 04/23] Order Number Changes Order number changes in preparation for the Sequential Order Number plugin --- admin/post-types/shop_order.php | 6 +++--- admin/post-types/writepanels/writepanel-order_data.php | 2 +- classes/class-wc-email.php | 2 +- shortcodes/shortcode-order_tracking.php | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/admin/post-types/shop_order.php b/admin/post-types/shop_order.php index f3274edc48a..a03571b934d 100644 --- a/admin/post-types/shop_order.php +++ b/admin/post-types/shop_order.php @@ -77,7 +77,7 @@ function woocommerce_custom_order_columns($column) { $user = __('Guest', 'woocommerce'); endif; - echo ''.sprintf( __('Order #%s', 'woocommerce'), $post->ID ).' ' . __('made by', 'woocommerce') . ' ' . $user; + echo ''.sprintf( __('Order %s', 'woocommerce'), $order->get_order_number() ).' ' . __('made by', 'woocommerce') . ' ' . $user; if ($order->billing_email) : echo ''.__('Email:', 'woocommerce') . ' ' . ''.esc_html( $order->billing_email ).''; @@ -330,7 +330,7 @@ function woocommerce_shop_order_search_custom_fields( $wp ) { if( !isset( $wp->query_vars['s'] ) || !$wp->query_vars['s'] ) return $wp; if ($wp->query_vars['post_type']!='shop_order') return $wp; - $search_fields = array( + $search_fields = apply_filters( 'woocommerce_shop_order_search_fields', array( '_order_key', '_billing_first_name', '_billing_last_name', @@ -344,7 +344,7 @@ function woocommerce_shop_order_search_custom_fields( $wp ) { '_billing_email', '_order_items', '_billing_phone' - ); + ) ); // Query matching custom fields - this seems faster than meta_query $post_ids = $wpdb->get_col($wpdb->prepare('SELECT post_id FROM '.$wpdb->postmeta.' WHERE meta_key IN ('.'"'.implode('","', $search_fields).'"'.') AND meta_value LIKE "%%%s%%"', esc_attr($_GET['s']) )); diff --git a/admin/post-types/writepanels/writepanel-order_data.php b/admin/post-types/writepanels/writepanel-order_data.php index 16306399534..d934e668655 100644 --- a/admin/post-types/writepanels/writepanel-order_data.php +++ b/admin/post-types/writepanels/writepanel-order_data.php @@ -52,7 +52,7 @@ function woocommerce_order_data_meta_box($post) {
-

— #

+

get_order_number(); ?>

- - [?] - [?] + + [?] + [?] - - + + flat_rates) foreach( $this->flat_rates as $class => $rate ) : $i++; + $i = -1; + if ( $this->flat_rates ) { + foreach ( $this->flat_rates as $class => $rate ) { + $i++; - echo ' - - - - - - - '; - endforeach; + echo ' + + + + + + + '; + } + } ?> @@ -456,39 +444,36 @@ class WC_Flat_Rate extends WC_Shipping_Method { $flat_rate_fee = array(); $flat_rates = array(); - if (isset($_POST[$this->id . '_class'])) $flat_rate_class = array_map('woocommerce_clean', $_POST[$this->id . '_class']); - if (isset($_POST[$this->id . '_cost'])) $flat_rate_cost = array_map('woocommerce_clean', $_POST[$this->id . '_cost']); - if (isset($_POST[$this->id . '_fee'])) $flat_rate_fee = array_map('woocommerce_clean', $_POST[$this->id . '_fee']); + if ( isset( $_POST[ $this->id . '_class'] ) ) $flat_rate_class = array_map( 'woocommerce_clean', $_POST[ $this->id . '_class'] ); + if ( isset( $_POST[ $this->id . '_cost'] ) ) $flat_rate_cost = array_map( 'woocommerce_clean', $_POST[ $this->id . '_cost'] ); + if ( isset( $_POST[ $this->id . '_fee'] ) ) $flat_rate_fee = array_map( 'woocommerce_clean', $_POST[ $this->id . '_fee'] ); // Get max key $values = $flat_rate_class; - ksort($values); - $value = end($values); - $key = key($values); + ksort( $values ); + $value = end( $values ); + $key = key( $values ); - for ($i=0; $i<=$key; $i++) : - - if (isset($flat_rate_class[$i]) && isset($flat_rate_cost[$i]) && isset($flat_rate_fee[$i])) : + for ( $i = 0; $i <= $key; $i++ ) { + if ( isset( $flat_rate_class[ $i ] ) && isset( $flat_rate_cost[ $i ] ) && isset( $flat_rate_fee[ $i ] ) ) { $flat_rate_cost[$i] = number_format($flat_rate_cost[$i], 2, '.', ''); // Add to flat rates array $flat_rates[ sanitize_title($flat_rate_class[$i]) ] = array( - 'cost' => $flat_rate_cost[$i], - 'fee' => $flat_rate_fee[$i] - ); - - endif; - - endfor; + 'cost' => $flat_rate_cost[ $i ], + 'fee' => $flat_rate_fee[ $i ], + ); + } + } - update_option($this->flat_rate_option, $flat_rates); + update_option( $this->flat_rate_option, $flat_rates ); $this->get_flat_rates(); } function get_flat_rates() { - $this->flat_rates = array_filter((array) get_option($this->flat_rate_option)); + $this->flat_rates = array_filter( (array) get_option( $this->flat_rate_option ) ); } } @@ -497,4 +482,4 @@ function add_flat_rate_method( $methods ) { $methods[] = 'WC_Flat_Rate'; return $methods; } -add_filter('woocommerce_shipping_methods', 'add_flat_rate_method' ); +add_filter( 'woocommerce_shipping_methods', 'add_flat_rate_method' ); From a3cd01c53549985936438f431e3e63d86085ccae Mon Sep 17 00:00:00 2001 From: Coen Jacobs Date: Wed, 16 May 2012 12:00:18 +0200 Subject: [PATCH 08/23] Added cost per order to Flat Rate shipping. Closes #1036 --- classes/shipping/class-wc-flat-rate.php | 44 +++++++++++++++---------- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/classes/shipping/class-wc-flat-rate.php b/classes/shipping/class-wc-flat-rate.php index 356a3440379..378650efaae 100644 --- a/classes/shipping/class-wc-flat-rate.php +++ b/classes/shipping/class-wc-flat-rate.php @@ -32,19 +32,20 @@ class WC_Flat_Rate extends WC_Shipping_Method { $this->init_settings(); // Define user set variables - $this->enabled = $this->settings['enabled']; - $this->title = $this->settings['title']; - $this->availability = $this->settings['availability']; - $this->countries = $this->settings['countries']; - $this->type = $this->settings['type']; - $this->tax_status = $this->settings['tax_status']; - $this->cost = $this->settings['cost']; - $this->fee = $this->settings['fee']; - $this->minimum_fee = isset( $this->settings['minimum_fee'] ) ? $this->settings['minimum_fee'] : ''; - $this->options = isset( $this->settings['options'] ) ? $this->settings['options'] : ''; + $this->enabled = $this->settings['enabled']; + $this->title = $this->settings['title']; + $this->availability = $this->settings['availability']; + $this->countries = $this->settings['countries']; + $this->type = $this->settings['type']; + $this->tax_status = $this->settings['tax_status']; + $this->cost = $this->settings['cost']; + $this->cost_per_order = isset( $this->settings['cost_per_order'] ) ? $this->settings['cost_per_order'] : ''; + $this->fee = $this->settings['fee']; + $this->minimum_fee = isset( $this->settings['minimum_fee'] ) ? $this->settings['minimum_fee'] : ''; + $this->options = isset( $this->settings['options'] ) ? $this->settings['options'] : ''; // Get options - $this->options = (array) explode( "\n", $this->options ); + $this->options = (array) explode( "\n", $this->options ); // Load Flat rates $this->get_flat_rates(); @@ -69,6 +70,12 @@ class WC_Flat_Rate extends WC_Shipping_Method { 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce' ), 'default' => __( 'Flat Rate', 'woocommerce' ), ), + 'cost_per_order' => array( + 'title' => __( 'Cost per order', 'woocommerce' ), + 'type' => 'text', + 'description' => __( 'Enter a cost per order, e.g. 5.00. Leave blank to disable.', 'woocommerce' ), + 'default' => '', + ), 'availability' => array( 'title' => __( 'Method availability', 'woocommerce' ), 'type' => 'select', @@ -140,6 +147,7 @@ class WC_Flat_Rate extends WC_Shipping_Method { global $woocommerce; $this->rates = array(); + $cost_per_order = ( isset( $this->cost_per_order ) && ! empty( $this->cost_per_order ) ) ? $this->cost_per_order : 0; if ( $this->type == 'order' ) { $shipping_total = $this->order_shipping( $package ); @@ -147,7 +155,7 @@ class WC_Flat_Rate extends WC_Shipping_Method { $rate = array( 'id' => $this->id, 'label' => $this->title, - 'cost' => $shipping_total, + 'cost' => $shipping_total + $cost_per_order, ); } elseif ( $this->type == 'class' ) { $shipping_total = $this->class_shipping( $package ); @@ -155,10 +163,11 @@ class WC_Flat_Rate extends WC_Shipping_Method { $rate = array( 'id' => $this->id, 'label' => $this->title, - 'cost' => $shipping_total, + 'cost' => $shipping_total + $cost_per_order, ); } elseif ( $this->type == 'item' ) { $costs = $this->item_shipping( $package ); + $costs['order'] = $cost_per_order; $rate = array( 'id' => $this->id, @@ -169,19 +178,19 @@ class WC_Flat_Rate extends WC_Shipping_Method { } // Register the rate - $this->add_rate( $rate ); + $this->add_rate( $rate ); // Add any extra rates if ( sizeof( $this->options ) > 0) foreach ( $this->options as $option ) { $this_option = preg_split( '~\s*\|\s*~', trim( $option ) ); - if (sizeof($this_option)!==3) continue; + if ( sizeof( $this_option ) !== 3 ) continue; $extra_rate = $rate; - $extra_rate['id'] = $this->id . ':' . sanitize_title($this_option[0]); - $extra_rate['label'] = $this_option[0]; + $extra_rate['id'] = $this->id . ':' . sanitize_title($this_option[0]); + $extra_rate['label'] = $this_option[0]; $per_order_cost = ( $this_option[2] == 'yes' ) ? 1 : 0; $this_cost = $this_option[1]; @@ -437,7 +446,6 @@ class WC_Flat_Rate extends WC_Shipping_Method { } // End admin_options() function process_flat_rates() { - // Save the rates $flat_rate_class = array(); $flat_rate_cost = array(); From 50c7b6edd4b23f588eaff99b23bf687e65f74dd8 Mon Sep 17 00:00:00 2001 From: Coen Jacobs Date: Wed, 16 May 2012 12:01:42 +0200 Subject: [PATCH 09/23] Readme bump for previous commit --- readme.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.txt b/readme.txt index 55f21280fff..059448ae4f6 100644 --- a/readme.txt +++ b/readme.txt @@ -150,6 +150,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc = 1.5.6 = * Feature - Default display for shipping methods is radio buttons. Before, when methods were enabled/disabled based on coupons or customer, changed methods could go unnoticed. Radio options are always visible. * Feature - Option to display shipping methods as a select box vs. radio buttons +* Feature - Added support for cost per order to Flat Rate shipping * Tweak - When the count of available shipping methods changes, reset to default * Tweak - Optimisations to monthly and product reports * Tweak - Individually sold variation handling From a8210e3c8bb5e7f366ee7fee10953f7050af11d0 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 16 May 2012 15:29:19 +0100 Subject: [PATCH 10/23] line breaks --- admin/includes/cssmin.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/includes/cssmin.inc.php b/admin/includes/cssmin.inc.php index 9c4444d9e77..7bc14c5e350 100644 --- a/admin/includes/cssmin.inc.php +++ b/admin/includes/cssmin.inc.php @@ -1,4 +1,4 @@ - \ No newline at end of file From 1a07a86c3eb2fd07737ee91aa493c738cebd7bc1 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 16 May 2012 18:09:34 +0100 Subject: [PATCH 11/23] debug --- admin/woocommerce-admin-debug.php | 34 ++++++++++++++++--------------- readme.txt | 1 + 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/admin/woocommerce-admin-debug.php b/admin/woocommerce-admin-debug.php index e0dea153c28..1776628cb02 100644 --- a/admin/woocommerce-admin-debug.php +++ b/admin/woocommerce-admin-debug.php @@ -9,6 +9,7 @@ function woocommerce_debug() { global $woocommerce; + $tools = apply_filters( 'wc_debug_tools', array( 'clear_transients' => array( 'name' => __('Transients','woocommerce'), @@ -21,8 +22,7 @@ function woocommerce_debug() { 'desc' => __( 'This tool will reset the admin, customer and shop_manager roles to default. Use this if your users cannot access all of the WooCommerce admin pages.', 'woocommerce' ), ), ) ); - $classes = array('alternate',''); - $class = 0; + ?>


@@ -30,6 +30,7 @@ function woocommerce_debug() { clear_product_transients(); @@ -51,8 +52,9 @@ function woocommerce_debug() { echo '

' . __('Roles successfully reset', 'woocommerce') . '

'; break; default: - if( isset( $tools[$_GET['action']]['callback'] ) ) { - $callback = $tools[$_GET['action']]['callback']; + $action = esc_attr( $_GET['action'] ); + if( isset( $tools[ $action ]['callback'] ) ) { + $callback = $tools[ $action ]['callback']; $return = call_user_func( $callback ); if( $return === false ) { if( is_array( $callback ) ) { @@ -77,7 +79,7 @@ function woocommerce_debug() { - + version; ?> @@ -85,7 +87,7 @@ function woocommerce_debug() { - + - + @@ -131,7 +133,7 @@ function woocommerce_debug() { - + @@ -188,7 +190,7 @@ function woocommerce_debug() { foreach ( $check_pages as $page_name => $values ) { - if ( $alt == 1 ) echo ''; else echo ''; + if ( $alt == 1 ) echo ''; else echo ''; echo '' . $page_name . ''; @@ -232,7 +234,7 @@ function woocommerce_debug() { - + - + - + - + ' . __('Yes', 'woocommerce') . ''; else echo '' . __('No', 'woocommerce') . ''; ?> @@ -292,7 +294,7 @@ function woocommerce_debug() { - + - + @@ -367,7 +369,7 @@ function woocommerce_debug() { $tool) { ?> - +

diff --git a/readme.txt b/readme.txt index 059448ae4f6..a3012f4b1ac 100644 --- a/readme.txt +++ b/readme.txt @@ -156,6 +156,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc * Tweak - Individually sold variation handling * Tweak - Removed mdash; from shipping options * Tweak - Made woocommerce_locate_template more useful for third party plugins - ability to pass a full path +* Tweak - WC Debug page hooks * Fix - Google Analytics options fix * Fix - % discount rounding From 01abd92f0ab55119779fc05dc6913ae05f33715d Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 16 May 2012 18:13:29 +0100 Subject: [PATCH 12/23] woocommerce_get_price_html Closes #1040. --- classes/class-wc-product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/class-wc-product.php b/classes/class-wc-product.php index d7e4f254568..45be09fb123 100644 --- a/classes/class-wc-product.php +++ b/classes/class-wc-product.php @@ -692,7 +692,7 @@ class WC_Product { endif; endif; - return $price; + return apply_filters('woocommerce_get_price_html', $price, $this); } /** Functions for getting parts of a price, in html, used by get_price_html */ From 11a7c438f5018264878e9ac67fdea8e664320e5d Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 16 May 2012 18:32:11 +0100 Subject: [PATCH 13/23] sharethis image support Closes #1038. --- .../integrations/sharethis/class-wc-sharethis.php | 13 +++++++++---- readme.txt | 1 + 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/classes/integrations/sharethis/class-wc-sharethis.php b/classes/integrations/sharethis/class-wc-sharethis.php index 664576b90ab..a781df8dbb0 100644 --- a/classes/integrations/sharethis/class-wc-sharethis.php +++ b/classes/integrations/sharethis/class-wc-sharethis.php @@ -20,7 +20,7 @@ class WC_ShareThis extends WC_Integration { $this->default_code = '

'; // Load the form fields. @@ -33,7 +33,7 @@ class WC_ShareThis extends WC_Integration { $this->publisher_id = $this->settings['publisher_id']; $this->sharethis_code = $this->settings['sharethis_code']; - if ( ! $this->sharethis_code ) $this->sharethis_code = $this->default_code; + if ( ! $this->sharethis_code ) $this->settings['sharethis_code'] = $this->sharethis_code = $this->default_code; // Actions add_action( 'woocommerce_update_options_integration_sharethis', array( &$this, 'process_admin_options') ); @@ -73,10 +73,15 @@ class WC_ShareThis extends WC_Integration { global $post; if ( $this->publisher_id ) { - + + $thumbnail = ( $thumbnail_id = get_post_thumbnail_id( $post->ID ) ) ? current(wp_get_attachment_image_src( $thumbnail_id, 'large' )) : ''; + $sharethis = ( is_ssl() ) ? 'https://ws.sharethis.com/button/buttons.js' : 'http://w.sharethis.com/button/buttons.js'; - echo str_replace( '{permalink}', urlencode(get_permalink($post->ID)), $this->sharethis_code ); + $sharethis_code = str_replace( '{permalink}', urlencode( get_permalink( $post->ID ) ), $this->sharethis_code ); + if ( isset( $thumbnail ) ) $sharethis_code = str_replace( '{image}', urlencode( $thumbnail ), $sharethis_code ); + + echo $sharethis_code; echo ''; echo ''; diff --git a/readme.txt b/readme.txt index a3012f4b1ac..8f0853042ec 100644 --- a/readme.txt +++ b/readme.txt @@ -151,6 +151,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc * Feature - Default display for shipping methods is radio buttons. Before, when methods were enabled/disabled based on coupons or customer, changed methods could go unnoticed. Radio options are always visible. * Feature - Option to display shipping methods as a select box vs. radio buttons * Feature - Added support for cost per order to Flat Rate shipping +* Feature - image support added to sharethis * Tweak - When the count of available shipping methods changes, reset to default * Tweak - Optimisations to monthly and product reports * Tweak - Individually sold variation handling From a00ae6adf25842d9f3a616fca334f1fe98e23606 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 16 May 2012 18:38:28 +0100 Subject: [PATCH 14/23] div prefix. Closes #1034. --- assets/js/woocommerce.js | 8 ++++---- assets/js/woocommerce.min.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/js/woocommerce.js b/assets/js/woocommerce.js index 8848934d053..aaae08ea08d 100755 --- a/assets/js/woocommerce.js +++ b/assets/js/woocommerce.js @@ -262,11 +262,11 @@ jQuery(document).ready(function($) { }); /* Tabs */ - $('div.woocommerce_tabs .panel').hide(); - $('div.woocommerce_tabs ul.tabs li a').click(function(){ + $('.woocommerce_tabs .panel').hide(); + $('.woocommerce_tabs ul.tabs li a').click(function(){ var $tab = $(this); - var $tabs_wrapper = $tab.closest('div.woocommerce_tabs'); + var $tabs_wrapper = $tab.closest('.woocommerce_tabs'); $('ul.tabs li', $tabs_wrapper).removeClass('active'); $('div.panel', $tabs_wrapper).hide(); @@ -275,7 +275,7 @@ jQuery(document).ready(function($) { return false; }); - $('div.woocommerce_tabs').each(function() { + $('.woocommerce_tabs').each(function() { var hash = window.location.hash; if (hash.toLowerCase().indexOf("comment-") >= 0) { $('ul.tabs li.reviews_tab a', $(this)).click(); diff --git a/assets/js/woocommerce.min.js b/assets/js/woocommerce.min.js index 659d739a2a6..758a4e902f7 100644 --- a/assets/js/woocommerce.min.js +++ b/assets/js/woocommerce.min.js @@ -10,4 +10,4 @@ * http://www.gnu.org/licenses/gpl.html * * Thanks to Amir-Hossein Sobhi for some excellent contributions! - */(function(a){function h(c,h){var j=c==window,l=h&&h.message!==undefined?h.message:undefined;h=a.extend({},a.blockUI.defaults,h||{});h.overlayCSS=a.extend({},a.blockUI.defaults.overlayCSS,h.overlayCSS||{});var p=a.extend({},a.blockUI.defaults.css,h.css||{}),q=a.extend({},a.blockUI.defaults.themedCSS,h.themedCSS||{});l=l===undefined?h.message:l;j&&f&&i(window,{fadeOut:0});if(l&&typeof l!="string"&&(l.parentNode||l.jquery)){var r=l.jquery?l[0]:l,s={};a(c).data("blockUI.history",s);s.el=r;s.parent=r.parentNode;s.display=r.style.display;s.position=r.style.position;s.parent&&s.parent.removeChild(r)}a(c).data("blockUI.onUnblock",h.onUnblock);var t=h.baseZ,u=a.browser.msie||h.forceIframe?a(''):a(''),v=h.theme?a(''):a(''),w,x;h.theme&&j?x='":h.theme?x='":j?x='':x='';w=a(x);if(l)if(h.theme){w.css(q);w.addClass("ui-widget-content")}else w.css(p);!h.theme&&(!h.applyPlatformOpacityRules||!a.browser.mozilla||!/Linux/.test(navigator.platform))&&v.css(h.overlayCSS);v.css("position",j?"fixed":"absolute");(a.browser.msie||h.forceIframe)&&u.css("opacity",0);var y=[u,v,w],z=j?a("body"):a(c);a.each(y,function(){this.appendTo(z)});h.theme&&h.draggable&&a.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var A=d&&(!a.boxModel||a("object,embed",j?null:c).length>0);if(e||A){j&&h.allowBodyStretch&&a.boxModel&&a("html,body").css("height","100%");if((e||!a.boxModel)&&!j)var B=o(c,"borderTopWidth"),C=o(c,"borderLeftWidth"),D=B?"(0 - "+B+")":0,E=C?"(0 - "+C+")":0;a.each([u,v,w],function(a,b){var c=b[0].style;c.position="absolute";if(a<2){j?c.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:"+h.quirksmodeOffsetHack+') + "px"'):c.setExpression("height",'this.parentNode.offsetHeight + "px"');j?c.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):c.setExpression("width",'this.parentNode.offsetWidth + "px"');E&&c.setExpression("left",E);D&&c.setExpression("top",D)}else if(h.centerY){j&&c.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');c.marginTop=0}else if(!h.centerY&&j){var d=h.css&&h.css.top?parseInt(h.css.top):0,e="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+d+') + "px"';c.setExpression("top",e)}})}if(l){h.theme?w.find(".ui-widget-content").append(l):w.append(l);(l.jquery||l.nodeType)&&a(l).show()}(a.browser.msie||h.forceIframe)&&h.showOverlay&&u.show();if(h.fadeIn){var F=h.onBlock?h.onBlock:b,G=h.showOverlay&&!l?F:b,H=l?F:b;h.showOverlay&&v._fadeIn(h.fadeIn,G);l&&w._fadeIn(h.fadeIn,H)}else{h.showOverlay&&v.show();l&&w.show();h.onBlock&&h.onBlock()}k(1,c,h);if(j){f=w[0];g=a(":input:enabled:visible",f);h.focusInput&&setTimeout(m,20)}else n(w[0],h.centerX,h.centerY);if(h.timeout){var I=setTimeout(function(){j?a.unblockUI(h):a(c).unblock(h)},h.timeout);a(c).data("blockUI.timeout",I)}}function i(b,c){var d=b==window,e=a(b),h=e.data("blockUI.history"),i=e.data("blockUI.timeout");if(i){clearTimeout(i);e.removeData("blockUI.timeout")}c=a.extend({},a.blockUI.defaults,c||{});k(0,b,c);if(c.onUnblock===null){c.onUnblock=e.data("blockUI.onUnblock");e.removeData("blockUI.onUnblock")}var l;d?l=a("body").children().filter(".blockUI").add("body > .blockUI"):l=a(".blockUI",b);d&&(f=g=null);if(c.fadeOut){l.fadeOut(c.fadeOut);setTimeout(function(){j(l,h,c,b)},c.fadeOut)}else j(l,h,c,b)}function j(b,c,d,e){b.each(function(a,b){this.parentNode&&this.parentNode.removeChild(this)});if(c&&c.el){c.el.style.display=c.display;c.el.style.position=c.position;c.parent&&c.parent.appendChild(c.el);a(e).removeData("blockUI.history")}typeof d.onUnblock=="function"&&d.onUnblock(e,d)}function k(b,c,d){var e=c==window,g=a(c);if(!b&&(e&&!f||!e&&!g.data("blockUI.isBlocked")))return;e||g.data("blockUI.isBlocked",b);if(!d.bindEvents||b&&!d.showOverlay)return;var h="mousedown mouseup keydown keypress";b?a(document).bind(h,d,l):a(document).unbind(h,l)}function l(b){if(b.keyCode&&b.keyCode==9&&f&&b.data.constrainTabKey){var c=g,d=!b.shiftKey&&b.target===c[c.length-1],e=b.shiftKey&&b.target===c[0];if(d||e){setTimeout(function(){m(e)},10);return!1}}var h=b.data;return a(b.target).parents("div."+h.blockMsgClass).length>0?!0:a(b.target).parents().children().filter("div.blockUI").length==0}function m(a){if(!g)return;var b=g[a===!0?g.length-1:0];b&&b.focus()}function n(a,b,c){var d=a.parentNode,e=a.style,f=(d.offsetWidth-a.offsetWidth)/2-o(d,"borderLeftWidth"),g=(d.offsetHeight-a.offsetHeight)/2-o(d,"borderTopWidth");b&&(e.left=f>0?f+"px":"0");c&&(e.top=g>0?g+"px":"0")}function o(b,c){return parseInt(a.css(b,c))||0}if(/1\.(0|1|2)\.(0|1|2)/.test(a.fn.jquery)||/^1.1/.test(a.fn.jquery)){alert("blockUI requires jQuery v1.2.3 or later! You are using v"+a.fn.jquery);return}a.fn._fadeIn=a.fn.fadeIn;var b=function(){},c=document.documentMode||0,d=a.browser.msie&&(a.browser.version<8&&!c||c<8),e=a.browser.msie&&/MSIE 6.0/.test(navigator.userAgent)&&!c;a.blockUI=function(a){h(window,a)};a.unblockUI=function(a){i(window,a)};a.growlUI=function(b,c,d,e){var f=a('
');b&&f.append("

"+b+"

");c&&f.append("

"+c+"

");d==undefined&&(d=3e3);a.blockUI({message:f,fadeIn:700,fadeOut:1e3,centerY:!1,timeout:d,showOverlay:!1,onUnblock:e,css:a.blockUI.defaults.growlCSS})};a.fn.block=function(b){return this.unblock({fadeOut:0}).each(function(){a.css(this,"position")=="static"&&(this.style.position="relative");a.browser.msie&&(this.style.zoom=1);h(this,b)})};a.fn.unblock=function(a){return this.each(function(){i(this,a)})};a.blockUI.version=2.39;a.blockUI.defaults={message:"

Please wait...

",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,applyPlatformOpacityRules:!0,onBlock:null,onUnblock:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg"};var f=null,g=[]})(jQuery);(function(a){function b(b){this.input=b;b.attr("type")=="password"&&this.handlePassword();a(b[0].form).submit(function(){b.hasClass("placeholder")&&b[0].value==b.attr("placeholder")&&(b[0].value="")})}b.prototype={show:function(a){if(this.input[0].value===""||a&&this.valueIsPlaceholder()){if(this.isPassword)try{this.input[0].setAttribute("type","text")}catch(b){this.input.before(this.fakePassword.show()).hide()}this.input.addClass("placeholder");this.input[0].value=this.input.attr("placeholder")}},hide:function(){if(this.valueIsPlaceholder()&&this.input.hasClass("placeholder")&&(this.input.removeClass("placeholder"),this.input[0].value="",this.isPassword)){try{this.input[0].setAttribute("type","password")}catch(a){}this.input.show();this.input[0].focus()}},valueIsPlaceholder:function(){return this.input[0].value==this.input.attr("placeholder")},handlePassword:function(){var b=this.input;b.attr("realType","password");this.isPassword=!0;if(a.browser.msie&&b[0].outerHTML){var c=a(b[0].outerHTML.replace(/type=(['"])?password\1/gi,"type=$1text$1"));this.fakePassword=c.val(b.attr("placeholder")).addClass("placeholder").focus(function(){b.trigger("focus");a(this).hide()});a(b[0].form).submit(function(){c.remove();b.show()})}}};var c="placeholder"in document.createElement("input");a.fn.placeholder=function(){return c?this:this.each(function(){var c=a(this),e=new b(c);e.show(!0);c.focus(function(){e.hide()});c.blur(function(){e.show(!1)});a.browser.msie&&(a(window).load(function(){c.val()&&c.removeClass("placeholder");e.show(!0)}),c.focus(function(){if(this.value==""){var a=this.createTextRange();a.collapse(!0);a.moveStart("character",0);a.select()}}))})}})(jQuery);jQuery("input[placeholder], textarea[placeholder]").placeholder();jQuery(document).ready(function(a){function d(a,b){var c=!0;for(name in a){var d=a[name],e=b[name];d.length!=0&&e.length!=0&&d!=e&&(c=!1)}return c}function e(a){var b=[];for(var c=0;c").html(g).text();g=g.replace(/'/g,"\\'");g=g.replace(/"/g,'\\"');current_attr_select.find('option[value="'+g+'"]').removeAttr("disabled")}else current_attr_select.find("option").removeAttr("disabled")}}});a(document).trigger("woocommerce_update_variation_values")}function g(b){var c=a("div.images img:eq(0)"),d=a("div.images a.zoom:eq(0)"),e=a(c).attr("data-o_src"),f=a(d).attr("data-o_href"),g=b.image_src,h=b.image_link;a(".variations_button").show();a(".single_variation").html(b.price_html+b.availability_html);e||a(c).attr("data-o_src",a(c).attr("src"));f||a(d).attr("data-o_href",a(d).attr("href"));if(g&&g.length>1){a(c).attr("src",g);a(d).attr("href",h)}else{a(c).attr("src",e);a(d).attr("href",f)}b.sku?a(".product_meta").find(".sku").text(b.sku):a(".product_meta").find(".sku").text("");a(".single_variation_wrap").find(".quantity").show();b.min_qty?a(".single_variation_wrap").find("input[name=quantity]").attr("data-min",b.min_qty).val(b.min_qty):a(".single_variation_wrap").find("input[name=quantity]").removeAttr("data-min");b.max_qty?a(".single_variation_wrap").find("input[name=quantity]").attr("data-max",b.max_qty):a(".single_variation_wrap").find("input[name=quantity]").removeAttr("data-max");alert(b.is_sold_individually);if(b.is_sold_individually=="yes"){a(".single_variation_wrap").find("input[name=quantity]").val("1");a(".single_variation_wrap").find(".quantity").hide()}a(".single_variation_wrap").slideDown("200").trigger("variationWrapShown").trigger("show_variation")}function h(b){var c=!0,d=!1,h={};a(".variations select").each(function(){if(b&&a(this).attr("name")==b){c=!1;h[a(this).attr("name")]=""}else{a(this).val().length==0?c=!1:d=!0;value=a(this).val().replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">");h[a(this).attr("name")]=value}});var i=e(h);if(c){var j=i.pop();if(j){a("form input[name=variation_id]").val(j.variation_id).change();g(j)}else a(".variations select").val("")}else f(i);d?a(".reset_variations").css("visibility")=="hidden"&&a(".reset_variations").css("visibility","visible").hide().fadeIn():a(".reset_variations").css("visibility","hidden")}woocommerce_params.option_ajax_add_to_cart=="yes"&&a(".add_to_cart_button").live("click",function(){var b=a(this);if(b.is(".product_type_simple, .product_type_downloadable, .product_type_virtual")){if(!b.attr("data-product_id"))return!0;b.removeClass("added");b.addClass("loading");var c={action:"woocommerce_add_to_cart",product_id:b.attr("data-product_id"),security:woocommerce_params.add_to_cart_nonce};a("body").trigger("adding_to_cart");a.post(woocommerce_params.ajax_url,c,function(d){b.removeClass("loading");c=a.parseJSON(d);if(c.error&&c.product_url){window.location=c.product_url;return}fragments=c;fragments&&a.each(fragments,function(b,c){a(b).addClass("updating")});a(".widget_shopping_cart, .shop_table.cart, .updating, .cart_totals").fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+woocommerce_params.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});b.addClass("added");if(a(".widget_shopping_cart").size()>0)a(".widget_shopping_cart:eq(0)").load(window.location+" .widget_shopping_cart:eq(0) > *",function(){fragments&&a.each(fragments,function(b,c){a(b).replaceWith(c)});a(".widget_shopping_cart, .updating").css("opacity","1").unblock();a("body").trigger("cart_widget_refreshed")});else{fragments&&a.each(fragments,function(b,c){a(b).replaceWith(c)});a(".widget_shopping_cart, .updating").css("opacity","1").unblock()}a(".shop_table.cart").load(window.location+" .shop_table.cart:eq(0) > *",function(){a("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('').prepend('');a(".shop_table.cart").css("opacity","1").unblock();a("body").trigger("cart_page_refreshed")});a(".cart_totals").load(window.location+" .cart_totals:eq(0) > *",function(){a(".cart_totals").css("opacity","1").unblock()});a("body").trigger("added_to_cart")});return!1}return!0});a("select.orderby").change(function(){a(this).closest("form").submit()});a("#rating").hide().before('

12345

');a("p.stars a").click(function(){var b=a(this);a("#rating").val(b.text());a("p.stars a").removeClass("active");b.addClass("active");return!1});a("#review_form #submit").live("click",function(){var b=a("#rating").val();if(a("#rating").size()>0&&!b&&woocommerce_params.review_rating_required=="yes"){alert(woocommerce_params.required_rating_text);return!1}});a("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('').prepend('');a("input.qty:not(.product-quantity input.qty)").each(function(){var b=parseInt(a(this).attr("data-min"));b&&b>1&&parseInt(a(this).val())c)?$qty.val(c):$qty.val(b+1);$qty.trigger("change")});a(".minus").live("click",function(){var b=parseInt(a(this).next(".qty").val());if(!b||b==""||b=="NaN")b=0;$qty=a(this).next(".qty");var c=parseInt($qty.attr("data-min"));if(c==""||c=="NaN")c=0;c&&(c==b||b0&&$qty.val(b-1);$qty.trigger("change")});var b=woocommerce_params.countries.replace(/"/g,'"'),c=a.parseJSON(b);a("select.country_to_state").change(function(){var b=a(this).val(),d=a(this).closest("div").find("#billing_state, #shipping_state, #calc_shipping_state"),e=d.parent(),f=d.attr("name"),g=d.attr("id"),h=d.val();if(c[b])c[b].length==0?e.fadeOut(200,function(){d.parent().find(".chzn-container").remove();d.replaceWith('');a("body").trigger("country_to_state_changed",[b,a(this).closest("div")])}):e.fadeOut(200,function(){var i="",j=c[b];for(var k in j)i=i+'";if(d.is("input")){d.replaceWith('');d=a(this).closest("div").find("#billing_state, #shipping_state, #calc_shipping_state")}d.html('"+i);d.val(h);a("body").trigger("country_to_state_changed",[b,a(this).closest("div")]);e.fadeIn(500)});else if(d.is("select"))e.fadeOut(200,function(){e.find(".chzn-container").remove();d.replaceWith('');a("body").trigger("country_to_state_changed",[b,a(this).closest("div")]);e.fadeIn(500)});else if(d.is(".hidden")){e.find(".chzn-container").remove();d.replaceWith('');a("body").trigger("country_to_state_changed",[b,a(this).closest("div")]);e.delay(200).fadeIn(500)}a("body").delay(200).trigger("country_to_state_changing",[b,a(this).closest("div")])});a("div.woocommerce_tabs .panel").hide();a("div.woocommerce_tabs ul.tabs li a").click(function(){var b=a(this),c=b.closest("div.woocommerce_tabs");a("ul.tabs li",c).removeClass("active");a("div.panel",c).hide();a("div"+b.attr("href")).show();b.parent().addClass("active");return!1});a("div.woocommerce_tabs").each(function(){var b=window.location.hash;b.toLowerCase().indexOf("comment-")>=0?a("ul.tabs li.reviews_tab a",a(this)).click():a("ul.tabs li:first a",a(this)).click()});a(".shipping-calculator-form").hide();a(".shipping-calculator-button").click(function(){a(".shipping-calculator-form").slideToggle("slow");return!1});a(".reset_variations").click(function(){a(".variations select").val("").change();return!1}).css("visibility","hidden");a(".variations select").change(function(){var b=a("div.images img:eq(0)"),c=a("div.images a.zoom:eq(0)"),d=a(b).attr("data-o_src"),e=a(c).attr("data-o_href");if(d&&e){a(b).attr("src",d);a(c).attr("href",e)}a("form input[name=variation_id]").val("").change();a(".single_variation_wrap").hide();a(".single_variation").text("");h();a(this).blur();a().uniform&&a.isFunction(a.uniform.update)&&a.uniform.update()}).bind("focusin",function(){h(a(this).attr("name"))}).change();woocommerce_params.is_cart==1&&a("select#shipping_method, input[name=shipping_method]").live("change",function(){var b=a(this).val();a("div.cart_totals").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_params.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var c={action:"woocommerce_update_shipping_method",security:woocommerce_params.update_shipping_method_nonce,shipping_method:b};a.post(woocommerce_params.ajax_url,c,function(b){a("div.cart_totals").replaceWith(b);a("body").trigger("updated_shipping_method")})});if(woocommerce_params.is_checkout==1||woocommerce_params.is_pay_page==1){var i,j;function k(){j&&j.abort();if(a("select#shipping_method").size()>0)var b=a("select#shipping_method").val();else var b=a("input[name=shipping_method]:checked").val();var c=a("#order_review input[name=payment_method]:checked").val(),d=a("#billing_country").val(),e=a("#billing_state").val(),f=a("input#billing_postcode").val();if(a("#shiptobilling input").is(":checked")||a("#shiptobilling input").size()==0)var g=d,h=e,i=f;else var g=a("#shipping_country").val(),h=a("#shipping_state").val(),i=a("input#shipping_postcode").val();a("#order_methods, #order_review").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_params.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var k={action:"woocommerce_update_order_review",security:woocommerce_params.update_order_review_nonce,shipping_method:b,payment_method:c,country:d,state:e,postcode:f,s_country:g,s_state:h,s_postcode:i,post_data:a("form.checkout").serialize()};j=a.ajax({type:"POST",url:woocommerce_params.ajax_url,data:k,success:function(b){a("#order_review").after(b).remove();a("#order_review input[name=payment_method]:checked").click();a("body").trigger("updated_checkout")}})}a("body").bind("update_checkout",function(){clearTimeout(i);k()});a("p.password, form.login, form.checkout_coupon, div.shipping_address").hide();a("input.show_password").change(function(){a("p.password").slideToggle()});a("a.showlogin").click(function(){a("form.login").slideToggle();return!1});a("a.showcoupon").click(function(){a("form.checkout_coupon").slideToggle();return!1});a("#shiptobilling input").change(function(){a("div.shipping_address").hide();a(this).is(":checked")||a("div.shipping_address").slideDown()}).change();if(woocommerce_params.option_guest_checkout=="yes"){a("div.create-account").hide();a("input#createaccount").change(function(){a("div.create-account").hide();a(this).is(":checked")&&a("div.create-account").slideDown()}).change()}a(".payment_methods input.input-radio").live("click",function(){a("div.payment_box").filter(":visible").slideUp(250);a(this).is(":checked")&&a("div.payment_box."+a(this).attr("ID")).slideDown(250)});a("#order_review input[name=payment_method]:checked").click();a("select#shipping_method, input[name=shipping_method]").live("change",function(){a("body").trigger("update_checkout")});a("input#billing_country, input#billing_state, #billing_postcode, input#shipping_country, input#shipping_state, #shipping_postcode").live("keydown",function(){clearTimeout(i);i=setTimeout(k,"1000")});a("select#billing_country, select#billing_state, select#shipping_country, select#shipping_state, #shiptobilling input, .update_totals_on_change").live("change",function(){a("body").trigger("update_checkout")});woocommerce_params.is_checkout==1&&a("body").trigger("update_checkout");a("form.checkout").submit(function(){var b=a(this);if(b.is(".processing"))return!1;b.addClass("processing").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_params.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});a.ajax({type:"POST",url:woocommerce_params.checkout_url,data:b.serialize(),success:function(c){a(".woocommerce_error, .woocommerce_message").remove();try{result=a.parseJSON(c);if(result.result=="success")window.location=decodeURI(result.redirect);else{if(result.result!="failure")throw"Invalid response";b.prepend(result.messages);b.removeClass("processing").unblock();result.refresh=="true"&&a("body").trigger("update_checkout");a("html, body").animate({scrollTop:a("form.checkout").offset().top-100},1e3)}}catch(d){b.prepend(c);b.removeClass("processing").unblock();a("html, body").animate({scrollTop:a("form.checkout").offset().top-100},1e3)}},dataType:"html"});return!1});var l=woocommerce_params.locale.replace(/"/g,'"'),m=a.parseJSON(l),n=' *';a("body").bind("country_to_state_changing",function(b,c,d){var e=d;if(m[c])var f=m[c];else var f=m["default"];var g={address_1:"#billing_address_1_field, #shipping_address_1_field",address_2:"#billing_address_2_field, #shipping_address_2_field",state:"#billing_state_field, #shipping_state_field",postcode:"#billing_postcode_field, #shipping_postcode_field",city:"#billing_city_field, #shipping_city_field"};a.each(g,function(a,b){var c=e.find(b);if(f[a]){f[a].label&&c.find("label").html(f[a].label);f[a].placeholder&&c.find("input").attr("placeholder",f[a].placeholder);c.find("label abbr").remove();(typeof f[a]["required"]=="undefined"||f[a]["required"]==1)&&c.find("label").append(n);a!=="state"&&(f[a]["hidden"]==1?c.fadeOut(200).find("input").val(""):c.fadeIn(500))}else if(m["default"][a]){m["default"][a]["required"]==1&&c.find("label abbr").size()==0&&c.find("label").append(n);a!=="state"&&(typeof m["default"][a]["hidden"]=="undefined"||m["default"][a]["hidden"]==0)&&c.fadeIn(500)}});var h=e.find("#billing_postcode_field, #shipping_postcode_field"),i=e.find("#billing_city_field, #shipping_city_field");if(f.postcode_before_city){if(i.is(".form-row-first")){i.fadeOut(200,function(){i.removeClass("form-row-first").addClass("form-row-last").insertAfter(h).fadeIn(500)});h.fadeOut(200,function(){h.removeClass("form-row-last").addClass("form-row-first").fadeIn(500)})}}else if(i.is(".form-row-last")){i.fadeOut(200,function(){i.removeClass("form-row-last").addClass("form-row-first").insertBefore(h).fadeIn(500)});h.fadeOut(200,function(){h.removeClass("form-row-first").addClass("form-row-last").fadeIn(500)})}})}a("select.country_to_state").change()}); \ No newline at end of file + */(function(a){function h(c,h){var j=c==window,l=h&&h.message!==undefined?h.message:undefined;h=a.extend({},a.blockUI.defaults,h||{});h.overlayCSS=a.extend({},a.blockUI.defaults.overlayCSS,h.overlayCSS||{});var p=a.extend({},a.blockUI.defaults.css,h.css||{}),q=a.extend({},a.blockUI.defaults.themedCSS,h.themedCSS||{});l=l===undefined?h.message:l;j&&f&&i(window,{fadeOut:0});if(l&&typeof l!="string"&&(l.parentNode||l.jquery)){var r=l.jquery?l[0]:l,s={};a(c).data("blockUI.history",s);s.el=r;s.parent=r.parentNode;s.display=r.style.display;s.position=r.style.position;s.parent&&s.parent.removeChild(r)}a(c).data("blockUI.onUnblock",h.onUnblock);var t=h.baseZ,u=a.browser.msie||h.forceIframe?a(''):a(''),v=h.theme?a(''):a(''),w,x;h.theme&&j?x='":h.theme?x='":j?x='':x='';w=a(x);if(l)if(h.theme){w.css(q);w.addClass("ui-widget-content")}else w.css(p);!h.theme&&(!h.applyPlatformOpacityRules||!a.browser.mozilla||!/Linux/.test(navigator.platform))&&v.css(h.overlayCSS);v.css("position",j?"fixed":"absolute");(a.browser.msie||h.forceIframe)&&u.css("opacity",0);var y=[u,v,w],z=j?a("body"):a(c);a.each(y,function(){this.appendTo(z)});h.theme&&h.draggable&&a.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var A=d&&(!a.boxModel||a("object,embed",j?null:c).length>0);if(e||A){j&&h.allowBodyStretch&&a.boxModel&&a("html,body").css("height","100%");if((e||!a.boxModel)&&!j)var B=o(c,"borderTopWidth"),C=o(c,"borderLeftWidth"),D=B?"(0 - "+B+")":0,E=C?"(0 - "+C+")":0;a.each([u,v,w],function(a,b){var c=b[0].style;c.position="absolute";if(a<2){j?c.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:"+h.quirksmodeOffsetHack+') + "px"'):c.setExpression("height",'this.parentNode.offsetHeight + "px"');j?c.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):c.setExpression("width",'this.parentNode.offsetWidth + "px"');E&&c.setExpression("left",E);D&&c.setExpression("top",D)}else if(h.centerY){j&&c.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');c.marginTop=0}else if(!h.centerY&&j){var d=h.css&&h.css.top?parseInt(h.css.top):0,e="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+d+') + "px"';c.setExpression("top",e)}})}if(l){h.theme?w.find(".ui-widget-content").append(l):w.append(l);(l.jquery||l.nodeType)&&a(l).show()}(a.browser.msie||h.forceIframe)&&h.showOverlay&&u.show();if(h.fadeIn){var F=h.onBlock?h.onBlock:b,G=h.showOverlay&&!l?F:b,H=l?F:b;h.showOverlay&&v._fadeIn(h.fadeIn,G);l&&w._fadeIn(h.fadeIn,H)}else{h.showOverlay&&v.show();l&&w.show();h.onBlock&&h.onBlock()}k(1,c,h);if(j){f=w[0];g=a(":input:enabled:visible",f);h.focusInput&&setTimeout(m,20)}else n(w[0],h.centerX,h.centerY);if(h.timeout){var I=setTimeout(function(){j?a.unblockUI(h):a(c).unblock(h)},h.timeout);a(c).data("blockUI.timeout",I)}}function i(b,c){var d=b==window,e=a(b),h=e.data("blockUI.history"),i=e.data("blockUI.timeout");if(i){clearTimeout(i);e.removeData("blockUI.timeout")}c=a.extend({},a.blockUI.defaults,c||{});k(0,b,c);if(c.onUnblock===null){c.onUnblock=e.data("blockUI.onUnblock");e.removeData("blockUI.onUnblock")}var l;d?l=a("body").children().filter(".blockUI").add("body > .blockUI"):l=a(".blockUI",b);d&&(f=g=null);if(c.fadeOut){l.fadeOut(c.fadeOut);setTimeout(function(){j(l,h,c,b)},c.fadeOut)}else j(l,h,c,b)}function j(b,c,d,e){b.each(function(a,b){this.parentNode&&this.parentNode.removeChild(this)});if(c&&c.el){c.el.style.display=c.display;c.el.style.position=c.position;c.parent&&c.parent.appendChild(c.el);a(e).removeData("blockUI.history")}typeof d.onUnblock=="function"&&d.onUnblock(e,d)}function k(b,c,d){var e=c==window,g=a(c);if(!b&&(e&&!f||!e&&!g.data("blockUI.isBlocked")))return;e||g.data("blockUI.isBlocked",b);if(!d.bindEvents||b&&!d.showOverlay)return;var h="mousedown mouseup keydown keypress";b?a(document).bind(h,d,l):a(document).unbind(h,l)}function l(b){if(b.keyCode&&b.keyCode==9&&f&&b.data.constrainTabKey){var c=g,d=!b.shiftKey&&b.target===c[c.length-1],e=b.shiftKey&&b.target===c[0];if(d||e){setTimeout(function(){m(e)},10);return!1}}var h=b.data;return a(b.target).parents("div."+h.blockMsgClass).length>0?!0:a(b.target).parents().children().filter("div.blockUI").length==0}function m(a){if(!g)return;var b=g[a===!0?g.length-1:0];b&&b.focus()}function n(a,b,c){var d=a.parentNode,e=a.style,f=(d.offsetWidth-a.offsetWidth)/2-o(d,"borderLeftWidth"),g=(d.offsetHeight-a.offsetHeight)/2-o(d,"borderTopWidth");b&&(e.left=f>0?f+"px":"0");c&&(e.top=g>0?g+"px":"0")}function o(b,c){return parseInt(a.css(b,c))||0}if(/1\.(0|1|2)\.(0|1|2)/.test(a.fn.jquery)||/^1.1/.test(a.fn.jquery)){alert("blockUI requires jQuery v1.2.3 or later! You are using v"+a.fn.jquery);return}a.fn._fadeIn=a.fn.fadeIn;var b=function(){},c=document.documentMode||0,d=a.browser.msie&&(a.browser.version<8&&!c||c<8),e=a.browser.msie&&/MSIE 6.0/.test(navigator.userAgent)&&!c;a.blockUI=function(a){h(window,a)};a.unblockUI=function(a){i(window,a)};a.growlUI=function(b,c,d,e){var f=a('
');b&&f.append("

"+b+"

");c&&f.append("

"+c+"

");d==undefined&&(d=3e3);a.blockUI({message:f,fadeIn:700,fadeOut:1e3,centerY:!1,timeout:d,showOverlay:!1,onUnblock:e,css:a.blockUI.defaults.growlCSS})};a.fn.block=function(b){return this.unblock({fadeOut:0}).each(function(){a.css(this,"position")=="static"&&(this.style.position="relative");a.browser.msie&&(this.style.zoom=1);h(this,b)})};a.fn.unblock=function(a){return this.each(function(){i(this,a)})};a.blockUI.version=2.39;a.blockUI.defaults={message:"

Please wait...

",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,applyPlatformOpacityRules:!0,onBlock:null,onUnblock:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg"};var f=null,g=[]})(jQuery);(function(a){function b(b){this.input=b;b.attr("type")=="password"&&this.handlePassword();a(b[0].form).submit(function(){b.hasClass("placeholder")&&b[0].value==b.attr("placeholder")&&(b[0].value="")})}b.prototype={show:function(a){if(this.input[0].value===""||a&&this.valueIsPlaceholder()){if(this.isPassword)try{this.input[0].setAttribute("type","text")}catch(b){this.input.before(this.fakePassword.show()).hide()}this.input.addClass("placeholder");this.input[0].value=this.input.attr("placeholder")}},hide:function(){if(this.valueIsPlaceholder()&&this.input.hasClass("placeholder")&&(this.input.removeClass("placeholder"),this.input[0].value="",this.isPassword)){try{this.input[0].setAttribute("type","password")}catch(a){}this.input.show();this.input[0].focus()}},valueIsPlaceholder:function(){return this.input[0].value==this.input.attr("placeholder")},handlePassword:function(){var b=this.input;b.attr("realType","password");this.isPassword=!0;if(a.browser.msie&&b[0].outerHTML){var c=a(b[0].outerHTML.replace(/type=(['"])?password\1/gi,"type=$1text$1"));this.fakePassword=c.val(b.attr("placeholder")).addClass("placeholder").focus(function(){b.trigger("focus");a(this).hide()});a(b[0].form).submit(function(){c.remove();b.show()})}}};var c="placeholder"in document.createElement("input");a.fn.placeholder=function(){return c?this:this.each(function(){var c=a(this),e=new b(c);e.show(!0);c.focus(function(){e.hide()});c.blur(function(){e.show(!1)});a.browser.msie&&(a(window).load(function(){c.val()&&c.removeClass("placeholder");e.show(!0)}),c.focus(function(){if(this.value==""){var a=this.createTextRange();a.collapse(!0);a.moveStart("character",0);a.select()}}))})}})(jQuery);jQuery("input[placeholder], textarea[placeholder]").placeholder();jQuery(document).ready(function(a){function d(a,b){var c=!0;for(name in a){var d=a[name],e=b[name];d.length!=0&&e.length!=0&&d!=e&&(c=!1)}return c}function e(a){var b=[];for(var c=0;c").html(g).text();g=g.replace(/'/g,"\\'");g=g.replace(/"/g,'\\"');current_attr_select.find('option[value="'+g+'"]').removeAttr("disabled")}else current_attr_select.find("option").removeAttr("disabled")}}});a(document).trigger("woocommerce_update_variation_values")}function g(b){var c=a("div.images img:eq(0)"),d=a("div.images a.zoom:eq(0)"),e=a(c).attr("data-o_src"),f=a(d).attr("data-o_href"),g=b.image_src,h=b.image_link;a(".variations_button").show();a(".single_variation").html(b.price_html+b.availability_html);e||a(c).attr("data-o_src",a(c).attr("src"));f||a(d).attr("data-o_href",a(d).attr("href"));if(g&&g.length>1){a(c).attr("src",g);a(d).attr("href",h)}else{a(c).attr("src",e);a(d).attr("href",f)}b.sku?a(".product_meta").find(".sku").text(b.sku):a(".product_meta").find(".sku").text("");a(".single_variation_wrap").find(".quantity").show();b.min_qty?a(".single_variation_wrap").find("input[name=quantity]").attr("data-min",b.min_qty).val(b.min_qty):a(".single_variation_wrap").find("input[name=quantity]").removeAttr("data-min");b.max_qty?a(".single_variation_wrap").find("input[name=quantity]").attr("data-max",b.max_qty):a(".single_variation_wrap").find("input[name=quantity]").removeAttr("data-max");alert(b.is_sold_individually);if(b.is_sold_individually=="yes"){a(".single_variation_wrap").find("input[name=quantity]").val("1");a(".single_variation_wrap").find(".quantity").hide()}a(".single_variation_wrap").slideDown("200").trigger("variationWrapShown").trigger("show_variation")}function h(b){var c=!0,d=!1,h={};a(".variations select").each(function(){if(b&&a(this).attr("name")==b){c=!1;h[a(this).attr("name")]=""}else{a(this).val().length==0?c=!1:d=!0;value=a(this).val().replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">");h[a(this).attr("name")]=value}});var i=e(h);if(c){var j=i.pop();if(j){a("form input[name=variation_id]").val(j.variation_id).change();g(j)}else a(".variations select").val("")}else f(i);d?a(".reset_variations").css("visibility")=="hidden"&&a(".reset_variations").css("visibility","visible").hide().fadeIn():a(".reset_variations").css("visibility","hidden")}woocommerce_params.option_ajax_add_to_cart=="yes"&&a(".add_to_cart_button").live("click",function(){var b=a(this);if(b.is(".product_type_simple, .product_type_downloadable, .product_type_virtual")){if(!b.attr("data-product_id"))return!0;b.removeClass("added");b.addClass("loading");var c={action:"woocommerce_add_to_cart",product_id:b.attr("data-product_id"),security:woocommerce_params.add_to_cart_nonce};a("body").trigger("adding_to_cart");a.post(woocommerce_params.ajax_url,c,function(d){b.removeClass("loading");c=a.parseJSON(d);if(c.error&&c.product_url){window.location=c.product_url;return}fragments=c;fragments&&a.each(fragments,function(b,c){a(b).addClass("updating")});a(".widget_shopping_cart, .shop_table.cart, .updating, .cart_totals").fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+woocommerce_params.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});b.addClass("added");if(a(".widget_shopping_cart").size()>0)a(".widget_shopping_cart:eq(0)").load(window.location+" .widget_shopping_cart:eq(0) > *",function(){fragments&&a.each(fragments,function(b,c){a(b).replaceWith(c)});a(".widget_shopping_cart, .updating").css("opacity","1").unblock();a("body").trigger("cart_widget_refreshed")});else{fragments&&a.each(fragments,function(b,c){a(b).replaceWith(c)});a(".widget_shopping_cart, .updating").css("opacity","1").unblock()}a(".shop_table.cart").load(window.location+" .shop_table.cart:eq(0) > *",function(){a("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('').prepend('');a(".shop_table.cart").css("opacity","1").unblock();a("body").trigger("cart_page_refreshed")});a(".cart_totals").load(window.location+" .cart_totals:eq(0) > *",function(){a(".cart_totals").css("opacity","1").unblock()});a("body").trigger("added_to_cart")});return!1}return!0});a("select.orderby").change(function(){a(this).closest("form").submit()});a("#rating").hide().before('

12345

');a("p.stars a").click(function(){var b=a(this);a("#rating").val(b.text());a("p.stars a").removeClass("active");b.addClass("active");return!1});a("#review_form #submit").live("click",function(){var b=a("#rating").val();if(a("#rating").size()>0&&!b&&woocommerce_params.review_rating_required=="yes"){alert(woocommerce_params.required_rating_text);return!1}});a("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('').prepend('');a("input.qty:not(.product-quantity input.qty)").each(function(){var b=parseInt(a(this).attr("data-min"));b&&b>1&&parseInt(a(this).val())c)?$qty.val(c):$qty.val(b+1);$qty.trigger("change")});a(".minus").live("click",function(){var b=parseInt(a(this).next(".qty").val());if(!b||b==""||b=="NaN")b=0;$qty=a(this).next(".qty");var c=parseInt($qty.attr("data-min"));if(c==""||c=="NaN")c=0;c&&(c==b||b0&&$qty.val(b-1);$qty.trigger("change")});var b=woocommerce_params.countries.replace(/"/g,'"'),c=a.parseJSON(b);a("select.country_to_state").change(function(){var b=a(this).val(),d=a(this).closest("div").find("#billing_state, #shipping_state, #calc_shipping_state"),e=d.parent(),f=d.attr("name"),g=d.attr("id"),h=d.val();if(c[b])c[b].length==0?e.fadeOut(200,function(){d.parent().find(".chzn-container").remove();d.replaceWith('');a("body").trigger("country_to_state_changed",[b,a(this).closest("div")])}):e.fadeOut(200,function(){var i="",j=c[b];for(var k in j)i=i+'";if(d.is("input")){d.replaceWith('');d=a(this).closest("div").find("#billing_state, #shipping_state, #calc_shipping_state")}d.html('"+i);d.val(h);a("body").trigger("country_to_state_changed",[b,a(this).closest("div")]);e.fadeIn(500)});else if(d.is("select"))e.fadeOut(200,function(){e.find(".chzn-container").remove();d.replaceWith('');a("body").trigger("country_to_state_changed",[b,a(this).closest("div")]);e.fadeIn(500)});else if(d.is(".hidden")){e.find(".chzn-container").remove();d.replaceWith('');a("body").trigger("country_to_state_changed",[b,a(this).closest("div")]);e.delay(200).fadeIn(500)}a("body").delay(200).trigger("country_to_state_changing",[b,a(this).closest("div")])});a(".woocommerce_tabs .panel").hide();a(".woocommerce_tabs ul.tabs li a").click(function(){var b=a(this),c=b.closest(".woocommerce_tabs");a("ul.tabs li",c).removeClass("active");a("div.panel",c).hide();a("div"+b.attr("href")).show();b.parent().addClass("active");return!1});a(".woocommerce_tabs").each(function(){var b=window.location.hash;b.toLowerCase().indexOf("comment-")>=0?a("ul.tabs li.reviews_tab a",a(this)).click():a("ul.tabs li:first a",a(this)).click()});a(".shipping-calculator-form").hide();a(".shipping-calculator-button").click(function(){a(".shipping-calculator-form").slideToggle("slow");return!1});a(".reset_variations").click(function(){a(".variations select").val("").change();return!1}).css("visibility","hidden");a(".variations select").change(function(){var b=a("div.images img:eq(0)"),c=a("div.images a.zoom:eq(0)"),d=a(b).attr("data-o_src"),e=a(c).attr("data-o_href");if(d&&e){a(b).attr("src",d);a(c).attr("href",e)}a("form input[name=variation_id]").val("").change();a(".single_variation_wrap").hide();a(".single_variation").text("");h();a(this).blur();a().uniform&&a.isFunction(a.uniform.update)&&a.uniform.update()}).bind("focusin",function(){h(a(this).attr("name"))}).change();woocommerce_params.is_cart==1&&a("select#shipping_method, input[name=shipping_method]").live("change",function(){var b=a(this).val();a("div.cart_totals").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_params.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var c={action:"woocommerce_update_shipping_method",security:woocommerce_params.update_shipping_method_nonce,shipping_method:b};a.post(woocommerce_params.ajax_url,c,function(b){a("div.cart_totals").replaceWith(b);a("body").trigger("updated_shipping_method")})});if(woocommerce_params.is_checkout==1||woocommerce_params.is_pay_page==1){var i,j;function k(){j&&j.abort();if(a("select#shipping_method").size()>0)var b=a("select#shipping_method").val();else var b=a("input[name=shipping_method]:checked").val();var c=a("#order_review input[name=payment_method]:checked").val(),d=a("#billing_country").val(),e=a("#billing_state").val(),f=a("input#billing_postcode").val();if(a("#shiptobilling input").is(":checked")||a("#shiptobilling input").size()==0)var g=d,h=e,i=f;else var g=a("#shipping_country").val(),h=a("#shipping_state").val(),i=a("input#shipping_postcode").val();a("#order_methods, #order_review").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_params.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var k={action:"woocommerce_update_order_review",security:woocommerce_params.update_order_review_nonce,shipping_method:b,payment_method:c,country:d,state:e,postcode:f,s_country:g,s_state:h,s_postcode:i,post_data:a("form.checkout").serialize()};j=a.ajax({type:"POST",url:woocommerce_params.ajax_url,data:k,success:function(b){a("#order_review").after(b).remove();a("#order_review input[name=payment_method]:checked").click();a("body").trigger("updated_checkout")}})}a("body").bind("update_checkout",function(){clearTimeout(i);k()});a("p.password, form.login, form.checkout_coupon, div.shipping_address").hide();a("input.show_password").change(function(){a("p.password").slideToggle()});a("a.showlogin").click(function(){a("form.login").slideToggle();return!1});a("a.showcoupon").click(function(){a("form.checkout_coupon").slideToggle();return!1});a("#shiptobilling input").change(function(){a("div.shipping_address").hide();a(this).is(":checked")||a("div.shipping_address").slideDown()}).change();if(woocommerce_params.option_guest_checkout=="yes"){a("div.create-account").hide();a("input#createaccount").change(function(){a("div.create-account").hide();a(this).is(":checked")&&a("div.create-account").slideDown()}).change()}a(".payment_methods input.input-radio").live("click",function(){a("div.payment_box").filter(":visible").slideUp(250);a(this).is(":checked")&&a("div.payment_box."+a(this).attr("ID")).slideDown(250)});a("#order_review input[name=payment_method]:checked").click();a("select#shipping_method, input[name=shipping_method]").live("change",function(){a("body").trigger("update_checkout")});a("input#billing_country, input#billing_state, #billing_postcode, input#shipping_country, input#shipping_state, #shipping_postcode").live("keydown",function(){clearTimeout(i);i=setTimeout(k,"1000")});a("select#billing_country, select#billing_state, select#shipping_country, select#shipping_state, #shiptobilling input, .update_totals_on_change").live("change",function(){a("body").trigger("update_checkout")});woocommerce_params.is_checkout==1&&a("body").trigger("update_checkout");a("form.checkout").submit(function(){var b=a(this);if(b.is(".processing"))return!1;b.addClass("processing").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_params.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});a.ajax({type:"POST",url:woocommerce_params.checkout_url,data:b.serialize(),success:function(c){a(".woocommerce_error, .woocommerce_message").remove();try{result=a.parseJSON(c);if(result.result=="success")window.location=decodeURI(result.redirect);else{if(result.result!="failure")throw"Invalid response";b.prepend(result.messages);b.removeClass("processing").unblock();result.refresh=="true"&&a("body").trigger("update_checkout");a("html, body").animate({scrollTop:a("form.checkout").offset().top-100},1e3)}}catch(d){b.prepend(c);b.removeClass("processing").unblock();a("html, body").animate({scrollTop:a("form.checkout").offset().top-100},1e3)}},dataType:"html"});return!1});var l=woocommerce_params.locale.replace(/"/g,'"'),m=a.parseJSON(l),n=' *';a("body").bind("country_to_state_changing",function(b,c,d){var e=d;if(m[c])var f=m[c];else var f=m["default"];var g={address_1:"#billing_address_1_field, #shipping_address_1_field",address_2:"#billing_address_2_field, #shipping_address_2_field",state:"#billing_state_field, #shipping_state_field",postcode:"#billing_postcode_field, #shipping_postcode_field",city:"#billing_city_field, #shipping_city_field"};a.each(g,function(a,b){var c=e.find(b);if(f[a]){f[a].label&&c.find("label").html(f[a].label);f[a].placeholder&&c.find("input").attr("placeholder",f[a].placeholder);c.find("label abbr").remove();(typeof f[a]["required"]=="undefined"||f[a]["required"]==1)&&c.find("label").append(n);a!=="state"&&(f[a]["hidden"]==1?c.fadeOut(200).find("input").val(""):c.fadeIn(500))}else if(m["default"][a]){m["default"][a]["required"]==1&&c.find("label abbr").size()==0&&c.find("label").append(n);a!=="state"&&(typeof m["default"][a]["hidden"]=="undefined"||m["default"][a]["hidden"]==0)&&c.fadeIn(500)}});var h=e.find("#billing_postcode_field, #shipping_postcode_field"),i=e.find("#billing_city_field, #shipping_city_field");if(f.postcode_before_city){if(i.is(".form-row-first")){i.fadeOut(200,function(){i.removeClass("form-row-first").addClass("form-row-last").insertAfter(h).fadeIn(500)});h.fadeOut(200,function(){h.removeClass("form-row-last").addClass("form-row-first").fadeIn(500)})}}else if(i.is(".form-row-last")){i.fadeOut(200,function(){i.removeClass("form-row-last").addClass("form-row-first").insertBefore(h).fadeIn(500)});h.fadeOut(200,function(){h.removeClass("form-row-first").addClass("form-row-last").fadeIn(500)})}})}a("select.country_to_state").change()}); \ No newline at end of file From ddba961efee7f97ad60277e87d7058df2425cdaf Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 17 May 2012 09:47:40 +0100 Subject: [PATCH 15/23] hyphen --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 8f0853042ec..47c5853aa5d 100644 --- a/readme.txt +++ b/readme.txt @@ -1,4 +1,4 @@ -=== WooCommerce – excelling eCommerce === +=== WooCommerce - excelling eCommerce === Contributors: woothemes, mikejolley, jameskoster, CoenJacobs Tags: ecommerce, e-commerce, commerce, woothemes, wordpress ecommerce, affiliate, store, sales, sell, shop, shopping, cart, checkout, configurable, variable, widgets, reports, download, downloadable, digital, inventory, stock, reports, shipping, tax Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal@woothemes.com&item_name=Donation+for+WooCommerce From cd1adebf8303f2bae33282571f21f321683954b6 Mon Sep 17 00:00:00 2001 From: Coen Jacobs Date: Thu, 17 May 2012 11:16:35 +0200 Subject: [PATCH 16/23] get_stock_quantity returns '' if stock is off in global settings. Closes #1046 --- classes/class-wc-product.php | 3 +++ readme.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/classes/class-wc-product.php b/classes/class-wc-product.php index 45be09fb123..518b3a7b97e 100644 --- a/classes/class-wc-product.php +++ b/classes/class-wc-product.php @@ -404,6 +404,9 @@ class WC_Product { * @return int */ function get_stock_quantity() { + if ( get_option( 'woocommerce_manage_stock' ) == 'no' ) + return ''; + return (int) $this->stock; } diff --git a/readme.txt b/readme.txt index 47c5853aa5d..b02bd1389b2 100644 --- a/readme.txt +++ b/readme.txt @@ -160,6 +160,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc * Tweak - WC Debug page hooks * Fix - Google Analytics options fix * Fix - % discount rounding +* Fix - get_stock_quantity returns '' if stock management is off in global settings = 1.5.5 - 10/05/2012 = * Feature - New 'default' sorting order using menu_order, with drag and drop sorting (based on http://wordpress.org/extend/plugins/simple-page-ordering/) From eabc6af8a95ac981a2733489dd2805bf2f550e7a Mon Sep 17 00:00:00 2001 From: Coen Jacobs Date: Thu, 17 May 2012 11:36:00 +0200 Subject: [PATCH 17/23] Moved admin editor CSS to menu.css (always loaded). Closes #1037 --- assets/css/admin.css | 2 +- assets/css/admin.less | 6 ------ assets/css/menu.css | 1 + assets/css/menu.less | 7 +++++++ 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/assets/css/admin.css b/assets/css/admin.css index 3ec549a5b6c..c7e1489c65a 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -1 +1 @@ -.woocommerce-message{position:relative;z-index:100;border:1px solid #b76ca9!important;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:inset 0 0 15px rgba(0,0,0,0.04);-moz-box-shadow:inset 0 0 15px rgba(0,0,0,0.04);box-shadow:inset 0 0 15px rgba(0,0,0,0.04);overflow:hidden;padding:10px 0 10px!important;background:#cc99c2 url(../images/message.png) no-repeat right bottom!important}.woocommerce-message .squeezer{max-width:960px;margin:0;padding:0 10px;text-align:left;overflow:hidden}.woocommerce-message h4{margin:0 10px 0 0;font-size:18px;line-height:36px;font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",Verdana,"Bitstream Vera Sans",sans-serif;font-weight:normal;color:#fff;text-shadow:0 1px 1px #b574a8;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;float:left;vertical-align:middle}.woocommerce-message p{margin:0!important;padding:2px 0!important;float:left!important;line-height:32px;vertical-align:middle}.woocommerce-message p a.button-primary{font-size:16px!important;line-height:16px!important;margin:0 5px 0 0;padding:6px 15px;vertical-align:middle;color:#fff;text-align:center;text-decoration:none;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;border:1px solid #88537e;background:#a46497;-moz-box-shadow:inset 0 0 2px #fff,0 1px 1px rgba(0,0,0,0.1);-webkit-box-shadow:inset 0 0 2px #fff,0 1px 1px rgba(0,0,0,0.1);box-shadow:inset 0 0 2px #fff,0 1px 1px rgba(0,0,0,0.1);text-shadow:0 -1px 0 rgba(0,0,0,0.3);-webkit-transition-duration:.3s;-moz-transition-duration:.3s;cursor:pointer;font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",Verdana,"Bitstream Vera Sans",sans-serif}.woocommerce-message p a.button-primary:hover,.woocommerce-message p a.button-primary:active{background-color:#f0a000;border-color:#c87800;-webkit-transition-duration:.3s;outline:0;opacity:1}.woocommerce-message p a.skip,.woocommerce-message p a.docs{opacity:.5}.woocommerce-message .twitter-share-button{vertical-align:middle}#variable_product_options #message{margin:10px}#woocommerce_extensions{background:#f1f1f1 url(../images/icons/wc_icon.png) no-repeat 4px 4px;padding:4px 18px 4px 28px;-webkit-border-radius:4px;-moz-border-radius:4px;-o-border-radius:4px;border-radius:4px;width:220px;float:right;margin:9px 0 -40px;position:relative;text-shadow:0 1px 0 rgba(255,255,255,0.8);color:#555}#woocommerce_extensions a{color:#555}#woocommerce_extensions a.hide{color:#ccc;float:right;text-decoration:none;position:absolute;top:0;right:0;line-height:20px;padding:2px 8px;font-size:11px;text-align:center}#wc_get_started{position:relative;margin:1em 0 2em;padding:15px 15px 15px 90px;border:1px solid #d9d9d9;background:#f5f5f5 url(../images/gear.png) no-repeat 15px 15px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;box-shadow:inset 1px 1px 0 #fff,inset -1px -1px 0 #fff;-moz-box-shadow:inset 1px 1px 0 #fff,inset -1px -1px 0 #fff;-webkit-box-shadow:inset 1px 1px 0 #fff,inset -1px -1px 0 #fff}#wc_get_started span{display:block;text-shadow:1px 1px 0 #fff;font-size:14px;line-height:22px;color:#595959}#wc_get_started span.main{margin-top:2px;font-weight:bold;font-size:16px}#wc_get_started .main-button{position:absolute;right:20px;top:27px}#wc_get_started p{margin:1em 0 .5em}#icon-woocommerce,.woocommerce_icon,.icon32-posts-product,.icon32-posts-shop_order,.icon32-posts-shop_coupon,.icon32-posts-product_variation{background-image:url(../images/icons/woocommerce-icons.png)!important;background-position:-11px -6px}.icon32-posts-product{background-position:-185px -6px!important}.icon32-posts-product{background-position:-69px -6px!important}.icon32-posts-shop_order{background-position:-127px -6px!important}.icon32-attributes{background-position:-185px -6px!important}.icon32-woocommerce-settings{background-position:-359px -6px!important}.icon32-posts-shop_coupon{background-position:-475px -6px!important}.icon32-posts-product_variation{background-position:-533px -6px!important}.icon32-woocommerce-reports{background-position:-591px -6px!important}.icon32-woocommerce-status{background-position:-417px -6px!important}.wrap.woocommerce div.updated,.wrap.woocommerce div.error{margin-top:10px}mark.amount{background:transparent none;color:inherit}input.wc-error{color:#d8000c;background-color:#ffbaba}span.mce_woocommerce_shortcodes_button{background-image:url(../images/icons/wc_icon.png)!important;background-repeat:no-repeat!important;background-position:center!important}table.wc_status_table th{font-weight:bold}table.wc_status_table td{padding:5px 7px}table.wc_status_table td mark{background:transparent none}table.wc_status_table td mark.yes{color:green}table.wc_status_table td mark.no{color:#999}table.wc_status_table td mark.error{color:red}table.wc_status_table td ul{margin:0}#debug-report{font-family:monospace;display:none;width:100%;margin-bottom:20px;height:200px}.inline-edit-product.quick-edit-row .inline-edit-col-center,.inline-edit-product.quick-edit-row .inline-edit-col-right{float:right!important}#woocommerce-fields.inline-edit-col{clear:left}#woocommerce-fields.inline-edit-col label.featured,#woocommerce-fields.inline-edit-col label.manage_stock{margin-left:10px}#woocommerce-fields.inline-edit-col .dimensions div{display:block;margin:.2em 0}#woocommerce-fields.inline-edit-col .dimensions div span.title{display:block;float:left;width:5em}#woocommerce-fields.inline-edit-col .dimensions div span.input-text-wrap{display:block;margin-left:5em}#woocommerce-fields.inline-edit-col .text{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:99%;float:left;margin:1px 1% 1px 1px}#woocommerce-fields.inline-edit-col .length,#woocommerce-fields.inline-edit-col .width,#woocommerce-fields.inline-edit-col .height{width:32.33%}#woocommerce-fields-bulk.inline-edit-col label{clear:left}#woocommerce-fields-bulk.inline-edit-col .inline-edit-group label,#woocommerce-fields-bulk.inline-edit-col .inline-edit-group div.alignright{clear:none;width:49%;margin:.2em 0}#woocommerce-fields-bulk.inline-edit-col .regular_price,#woocommerce-fields-bulk.inline-edit-col .sale_price,#woocommerce-fields-bulk.inline-edit-col .weight,#woocommerce-fields-bulk.inline-edit-col .stock{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%}#woocommerce-fields-bulk.inline-edit-col .length,#woocommerce-fields-bulk.inline-edit-col .width,#woocommerce-fields-bulk.inline-edit-col .height{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:32%}#order_data{padding:0 10px 9px}#order_data .order_data_left{width:48%;float:left}#order_data .order_data_left h2{margin-top:11px;margin-bottom:0}#order_data .order_data_left p{padding:0!important}#order_data .order_data_left .form-field{float:left;width:48%;padding:0;margin:9px 0 0 0}#order_data .order_data_left .form-field label{display:block;padding:0 0 3px}#order_data .order_data_left .form-field input,#order_data .order_data_left .form-field textarea{width:100%}#order_data .order_data_left .form-field select{width:100%}#order_data .order_data_left .form-field #order_status_chzn .chzn-search{display:none}#order_data .order_data_left .form-field .chzn-container{width:100%!important}#order_data .order_data_left .form-field .date-picker-field{width:9em}#order_data .order_data_left .form-field .hour,#order_data .order_data_left .form-field .minute{width:2.5em}#order_data .order_data_left .form-field.last{float:right}#order_data .order_data_left .form-field-wide{width:100%;clear:both}#order_data .order_data_left .form-field-wide input,#order_data .order_data_left .form-field-wide textarea{width:100%}#order_data .order_data_left .form-field-wide select{width:100%}#order_data .order_data_right{width:48%;float:right}#order_data .order_data_right .order_data{overflow:hidden;zoom:1;width:49%;float:left}#order_data .order_data_right .order_data_alt{float:right}#order_data .order_data_right h2{margin-top:11px;margin-bottom:0}#order_data .order_data_right p{padding:0!important}#order_data .order_data_right p.none_set{color:#999}#order_data .order_data_right .form-field{float:left;width:50%;padding:0;margin:9px 0 0 0}#order_data .order_data_right .form-field label{display:block;padding:0 0 3px}#order_data .order_data_right .form-field input,#order_data .order_data_right .form-field select{width:95%}#order_data .order_data_right ._billing_company_field,#order_data .order_data_right ._shipping_company_field{clear:both;width:100%}#order_data .order_data_right ._billing_company_field input,#order_data .order_data_right ._shipping_company_field input{width:97.5%}#order_data .order_data_right ._billing_email_field{clear:left}#order_data .order_data_right div.edit_address{display:none;overflow:hidden;zoom:1}.order_actions{color:#999;font-size:11px;margin:0;overflow:hidden;zoom:1}.order_actions li{border-top:1px solid #fff;border-bottom:1px solid #ddd;padding:6px 0;margin:0;line-height:1.6em;float:left;width:50%;text-align:center}.order_actions li a{float:none;text-align:center}.order_actions li.wide{width:auto;float:none;clear:both;padding:6px;text-align:left}#woocommerce-order-items .inside{margin:0;padding:0;background:#fefefe}#woocommerce-order-items .buttons{float:left;padding-left:12px;vertical-align:top}#woocommerce-order-items .buttons .add_item_id,#woocommerce-order-items .buttons .chzn-container{margin-right:9px;vertical-align:top;float:left}#woocommerce-order-items .buttons .add_item_id .search-field input,#woocommerce-order-items .buttons .chzn-container .search-field input{min-width:100px}#woocommerce-order-items .buttons button{margin:2px 0 0 0}#woocommerce-order-items .buttons-alt{float:right;padding-right:12px}#woocommerce-order-items .add_meta{margin-left:0!important}#woocommerce-order-items h3 small{color:#999}#woocommerce-order-items .row-actions{float:right;padding:0;color:#999}#woocommerce-order-items .row-actions a{color:#999}#woocommerce-order-items .row-actions a.remove_row:hover{color:red}#woocommerce-order-downloads .buttons{float:left;padding:0;margin:0;vertical-align:top}#woocommerce-order-downloads .buttons .add_item_id,#woocommerce-order-downloads .buttons .chzn-container{width:400px!important;margin-right:9px;vertical-align:top;float:left}#woocommerce-order-downloads .buttons button{margin:2px 0 0 0}#woocommerce-order-downloads h3 small{color:#999}#woocommerce-order-totals h4{margin:0!important}#woocommerce-order-totals h4 a.add_tax_row{display:block;padding-bottom:10px}#woocommerce-order-totals .totals_group{border-top:1px solid white;border-bottom:1px solid #DDD;padding:10px 0 0}#woocommerce-order-totals .totals_group:first-child{border-top:0}#woocommerce-order-totals ul.totals{margin:6px 0 0;float:left}#woocommerce-order-totals ul.totals li{float:left;clear:both;width:100%;font-size:1.2em;font-weight:bold;line-height:1.2em;margin:0;padding:0 0 10px}#woocommerce-order-totals ul.totals li label{font-weight:normal;display:block;font-size:.8em;color:#333}#woocommerce-order-totals ul.totals li input{width:100%;vertical-align:middle;font-size:1em;margin:0!important;font-weight:normal;color:#555}#woocommerce-order-totals ul.totals li input.first{width:49%;float:left}#woocommerce-order-totals ul.totals li input.last{width:49%;float:right}#woocommerce-order-totals ul.totals li.left{float:left;width:49%;clear:left}#woocommerce-order-totals ul.totals li.left input{width:100%}#woocommerce-order-totals ul.totals li.right{float:right;width:49%;clear:none}#woocommerce-order-totals ul.totals li.right input{width:100%}#woocommerce-order-totals ul.totals .calculated{border-color:#ae8ca2;border-style:dotted}#woocommerce-order-totals #tax_rows{margin:6px 0 0}#woocommerce-order-totals .tax_row{margin:0 0 9px;border:1px solid #dfdfdf;background:#fff;padding:6px 6px 0;position:relative;opacity:.75}#woocommerce-order-totals .tax_row:hover,#woocommerce-order-totals .tax_row:focus{opacity:1}#woocommerce-order-totals .tax_row p{margin:0 0 6px}#woocommerce-order-totals .tax_row label{color:#555}#woocommerce-order-totals .tax_row label .checkbox{line-height:26px}#woocommerce-order-totals .tax_row p.first{float:left;width:49%;clear:left}#woocommerce-order-totals .tax_row p.first input,#woocommerce-order-totals .tax_row p.first select{width:100%}#woocommerce-order-totals .tax_row p.last{float:right;width:49%;clear:none}#woocommerce-order-totals .tax_row p.last input,#woocommerce-order-totals .tax_row p.last select{width:100%}#woocommerce-order-totals .tax_row a.delete_tax_row{padding:0;text-decoration:none;font-size:11px;line-height:16px;width:16px;height:16px;text-align:center;color:#999;float:right;background:#ddd;border:1px solid #eee;-webkit-box-shadow:0 0 0 1px #ccc;-webkit-border-radius:8px;-moz-border-radius:8px;-o-border-radius:8px;border-radius:8px;position:absolute;top:0;right:0;margin:-8px -8px 0 0;display:none}#woocommerce-order-totals .tax_row:hover a.delete_tax_row,#woocommerce-order-totals .tax_row:focus a.delete_tax_row{display:block}.woocommerce_order_items_wrapper{margin:0}.woocommerce_order_items_wrapper table.woocommerce_order_items{width:100%;background:#fff}.woocommerce_order_items_wrapper table.woocommerce_order_items thead th{background:#ececec;padding:8px;font-size:11px;text-align:left}.woocommerce_order_items_wrapper table.woocommerce_order_items td{padding:8px;text-align:left;line-height:26px;vertical-align:top;border-bottom:1px dotted #ececec}.woocommerce_order_items_wrapper table.woocommerce_order_items td input,.woocommerce_order_items_wrapper table.woocommerce_order_items td textarea{width:100%}.woocommerce_order_items_wrapper table.woocommerce_order_items td select{width:50%}.woocommerce_order_items_wrapper table.woocommerce_order_items td input,.woocommerce_order_items_wrapper table.woocommerce_order_items td textarea{font-size:14px;padding:4px;color:#555}.woocommerce_order_items_wrapper table.woocommerce_order_items .name{min-width:200px}.woocommerce_order_items_wrapper table.woocommerce_order_items .center,.woocommerce_order_items_wrapper table.woocommerce_order_items .variation-id{text-align:center}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_total,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_subtotal,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class{text-align:right}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost label,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax label,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity label,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_total label,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_subtotal label,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class label{display:block;white-space:nowrap;color:#999;font-size:.833em}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_total label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_subtotal label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class label input{display:inline}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost input,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax input,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity input,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_total input,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_subtotal input,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class input{width:60px;vertical-align:middle;text-align:right}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost select,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax select,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity select,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_total select,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_subtotal select,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class select{width:85px;height:26px;vertical-align:middle}.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity{text-align:center}.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity input{text-align:center;width:40px}.woocommerce_order_items_wrapper table.woocommerce_order_items td.tax_class,.woocommerce_order_items_wrapper table.woocommerce_order_items th.tax_class{text-align:left}.woocommerce_order_items_wrapper table.woocommerce_order_items .calculated{border-color:#ae8ca2;border-style:dotted}.woocommerce_order_items_wrapper table.woocommerce_order_items table.meta{width:100%}.woocommerce_order_items_wrapper table.woocommerce_order_items table.meta tr td{padding:1px 4px 1px 0;border:0}.woocommerce_order_items_wrapper table.woocommerce_order_items table.meta tr td input{min-width:100px}.woocommerce_order_items_wrapper table.woocommerce_order_items .thumb{text-align:center}.woocommerce_order_items_wrapper table.woocommerce_order_items .thumb a{display:block}.woocommerce_order_items_wrapper table.woocommerce_order_items .thumb img{padding:2px;margin:0;border:1px solid #dfdfdf;vertical-align:middle;width:46px;height:46px}.widefat .column-order_title time{display:block;color:#999;margin:3px 0}.widefat .column-order_actions a.button{float:left;margin:0 4px 2px 0}.widefat small.meta{display:block;color:#999;font-size:inherit;margin:3px 0}.widefat .column-total_cost,.widefat .column-order_date{width:9%}.widefat .column-order_status{width:90px;text-align:center}.widefat .column-order_status mark{display:block;text-align:center;white-space:nowrap;padding:0 2px;background:#999;border:1px solid #999;-webkit-box-shadow:inset 0 0 2px 1px rgba(255,255,255,0.5);-webkit-border-radius:4px;-moz-border-radius:4px;-o-border-radius:4px;border-radius:4px;margin:0;font-size:9px;text-transform:uppercase;color:#fff;font-weight:bold;text-shadow:0 1px 0 rgba(0,0,0,0.3)}.widefat .column-order_status mark.pending{background-color:#999;border-color:#999}.widefat .column-order_status mark.completed{background-color:#a0658b;border-color:#a0658b}.widefat .column-order_status mark.on-hold{background-color:#e66f00;border-color:#e66f00}.widefat .column-order_status mark.failed{background-color:red;border-color:red}.widefat .column-order_status mark.cancelled{background-color:#ccc;border-color:#ccc}.widefat .column-order_status mark.processing{background-color:#2184c2;border-color:#2184c2}.widefat .column-order_status mark.refunded{background-color:#ccc;border-color:#ccc}ul.subsubsub li.pending a{color:#e66f00}ul.subsubsub li.completed a{color:green}ul.subsubsub li.onhold a{color:red}ul.subsubsub li.cancelled a{color:#dfdfdf}ul.subsubsub li.refunded a{color:#ccc}ul.order_notes{padding:2px 0 0 0}ul.order_notes li .note_content{padding:10px;background:#efefef;position:relative}ul.order_notes li .note_content p{margin:0;padding:0}ul.order_notes li p.meta{padding:10px;color:#999;margin:0;font-size:11px}ul.order_notes li a.delete_note{color:#f00}ul.order_notes li .note_content:after{content:"";display:block;position:absolute;bottom:-15px;left:30px;width:0;height:0;border-width:15px 15px 0 0;border-style:solid;border-color:#efefef transparent}ul.order_notes li.customer-note .note_content{background:#d7cad2}ul.order_notes li.customer-note .note_content:after{border-color:#d7cad2 transparent}.add_note{border-top:1px solid #ddd;padding:10px}.add_note h4{margin-top:5px!important}.add_note input#add_order_note{width:50%}table.wp-list-table .column-thumb{width:52px;text-align:center;white-space:nowrap}table.wp-list-table .column-product_cat,table.wp-list-table .column-product_tag{width:11%!important}table.wp-list-table .column-sku,table.wp-list-table .column-product_cat,table.wp-list-table .column-product_tag,table.wp-list-table .column-is_in_stock,table.wp-list-table .column-price,table.wp-list-table .column-product_date{width:9%}table.wp-list-table .column-featured,table.wp-list-table .column-product_type{width:46px;text-align:left!important}table.wp-list-table .column-note{width:46px;text-align:center}table.wp-list-table .column-note img{margin:0 auto;padding-top:0!important}table.wp-list-table .column-order_comments{width:3em!important}table.wp-list-table .column-order_comments .post-com-count{float:left}table.wp-list-table th.column-note img,table.wp-list-table th.column-order_comments img{padding-top:1px!important}table.wp-list-table .manage-column.column-featured img,table.wp-list-table .manage-column.column-product_type img{padding-left:2px}table.wp-list-table img{margin:1px 2px}table.wp-list-table .column-thumb img{padding:2px;margin:0;border:1px solid #dfdfdf;vertical-align:middle;width:32px;height:32px}table.wp-list-table span.na{color:#999}table.wp-list-table .column-is_in_stock{text-align:left!important}table.wp-list-table span.product-type{width:16px;height:16px;margin:1px 2px;display:block;background:url(../images/product_types.png) no-repeat -16px 0}table.wp-list-table span.product-type.grouped{background:url(../images/product_types.png) no-repeat 0 0}table.wp-list-table span.product-type.external{background:url(../images/product_types.png) no-repeat -32px 0}table.wp-list-table span.product-type.variable{background:url(../images/product_types.png) no-repeat -48px 0}table.wp-list-table span.product-type.downloadable{background:url(../images/product_types.png) no-repeat -64px 0}table.wp-list-table span.product-type.virtual{background:url(../images/product_types.png) no-repeat -80px 0}table.wp-list-table mark.instock{font-weight:bold;color:green;background:transparent none;line-height:1}table.wp-list-table mark.outofstock{font-weight:bold;color:#a44;background:transparent none;line-height:1}ul.woocommerce_stats{overflow:hidden;zoom:1}ul.woocommerce_stats li{width:22%;padding:0 1.4%;float:left;font-size:.8em;border-left:1px solid #fff;border-right:1px solid #ececec;text-align:center}ul.woocommerce_stats li:first-child{border-left:0}ul.woocommerce_stats li:last-child{border-right:0}ul.woocommerce_stats strong{font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-size:4em;line-height:1.2em;font-weight:normal;text-align:center;display:block}#woocommerce_dashboard_right_now p.sub,#woocommerce_dashboard_right_now .table,#woocommerce_dashboard_right_now .versions{margin:-12px}#woocommerce_dashboard_right_now .inside{font-size:12px;margin-bottom:0;padding-top:20px}#woocommerce_dashboard_right_now p.sub{padding:5px 0 15px;color:#8f8f8f;font-size:14px;position:absolute;top:-17px;left:15px}#woocommerce_dashboard_right_now .table{margin:0;padding:0;position:relative}#woocommerce_dashboard_right_now .table_shop_content{float:left;border-top:#ececec 1px solid;width:45%}#woocommerce_dashboard_right_now .table_orders{float:right;border-top:#ececec 1px solid;width:45%}#woocommerce_dashboard_right_now table td{padding:3px 0;white-space:nowrap}#woocommerce_dashboard_right_now table tr.first td{border-top:0}#woocommerce_dashboard_right_now td.b{padding-right:6px;text-align:right;font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-size:14px;width:1%}#woocommerce_dashboard_right_now td.b a{font-size:18px}#woocommerce_dashboard_right_now td.b a:hover{color:#d54e21}#woocommerce_dashboard_right_now .t{font-size:12px;padding-right:12px;padding-top:6px;color:#777}#woocommerce_dashboard_right_now .t a{white-space:nowrap}#woocommerce_dashboard_right_now .on-hold a{color:red}#woocommerce_dashboard_right_now .pending a{color:#e66f00}#woocommerce_dashboard_right_now .completed a{color:green}#woocommerce_dashboard_right_now .versions{padding:6px 10px 12px;clear:both}#woocommerce_dashboard_right_now .versions .b{font-weight:bold}#woocommerce_dashboard_right_now a.button{float:right;clear:right;position:relative;top:-5px}#woocommerce_dashboard_sales h3 a{float:right;margin-left:8px}ul.recent-orders li,ul.stock_list li{overflow:hidden;zoom:1;border-bottom:#ececec 1px solid;padding:0 0 8px;margin:0 0 8px}ul.recent-orders li .order-status,ul.stock_list li .order-status{float:right}ul.recent-orders li small,ul.stock_list li small{color:#999}ul.recent-orders li .order-cost,ul.stock_list li .order-cost,ul.recent-orders li .order-customer,ul.stock_list li .order-customer{margin-left:8px}ul.recent-orders li .completed,ul.stock_list li .completed{color:green}ul.recent-orders li .on-hold,ul.stock_list li .on-hold{color:red}ul.recent-orders li .processing,ul.stock_list li .processing{color:#21759b}ul.recent-orders li .pending,ul.stock_list li .pending{color:#e66f00}ul.recent-orders li .refunded,ul.stock_list li .refunded,ul.recent-orders li .cancelled,ul.stock_list li .cancelled{color:#999}ul.recent-orders.stock_list small,ul.stock_list.stock_list small{float:right}ul.recent-orders.stock_list a,ul.stock_list.stock_list a{text-decoration:none}#woocommerce_dashboard_recent_reviews li{line-height:1.5em;margin-bottom:12px}#woocommerce_dashboard_recent_reviews h4.meta{line-height:1.4;margin:-0.2em 0 0 0;font-weight:normal;color:#999}#woocommerce_dashboard_recent_reviews blockquote{padding:0;margin:0}#woocommerce_dashboard_recent_reviews .avatar{float:left;margin:0 10px 5px 0}#woocommerce_dashboard_recent_reviews .star-rating{float:right;width:50px;height:10px;margin:3px 0 0 0;background:url(../images/admin-star.png) repeat-x left -10px}#woocommerce_dashboard_recent_reviews .star-rating span{background:url(../images/admin-star.png) repeat-x left 0;height:0;padding-top:10px;overflow:hidden;float:left}mark.notice{background:#fff;color:red;margin:0 0 0 10px}a.export_rates,a.import_rates{float:right;margin-left:3px;margin-top:-3px;margin-bottom:3px}.woocommerce table.shippingrows td,.woocommerce table.taxrows td,.woocommerce table.shippingrows th,.woocommerce table.taxrows th{vertical-align:top;line-height:25px;margin-bottom:9px}.woocommerce table.shippingrows a.remove,.woocommerce table.taxrows a.remove{margin:0!important}.woocommerce table.shippingrows .dupe,.woocommerce table.taxrows .dupe,.woocommerce table.shippingrows .remove,.woocommerce table.taxrows .remove{float:right;margin-left:9px}.woocommerce table.shippingrows tbody .check-column,.woocommerce table.taxrows tbody .check-column{padding-top:8px}.woocommerce table.shippingrows tbody .check-column input,.woocommerce table.taxrows tbody .check-column input{margin:0 0 0 8px}.woocommerce table.shippingrows input,.woocommerce table.taxrows input{width:auto}.woocommerce table.shippingrows td.apply_to_shipping,.woocommerce table.taxrows td.apply_to_shipping{padding-top:8px}.woocommerce table.shippingrows td.country,.woocommerce table.taxrows td.country{overflow:visible!important}.woocommerce table.shippingrows td.country p,.woocommerce table.taxrows td.country p{line-height:25px;margin:0;color:#666}.woocommerce table.shippingrows td.country button.edit_options,.woocommerce table.taxrows td.country button.edit_options{float:right}.woocommerce table.shippingrows td.country select,.woocommerce table.taxrows td.country select{margin:9px 0;width:100%;height:160px!important}.woocommerce table.shippingrows td.country p.edit,.woocommerce table.taxrows td.country p.edit,.woocommerce table.shippingrows td.country .options,.woocommerce table.taxrows td.country .options{min-width:400px}.woocommerce table.shippingrows td.country .chzn-container,.woocommerce table.taxrows td.country .chzn-container{width:100%!important;margin:9px 0 5px}.woocommerce table.shippingrows td.country .chzn-container .chzn-drop,.woocommerce table.taxrows td.country .chzn-container .chzn-drop{width:100%!important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.woocommerce table.shippingrows td.country .chzn-container .search-field input,.woocommerce table.taxrows td.country .chzn-container .search-field input{width:150px!important}.woocommerce table.shippingrows td.local_country,.woocommerce table.taxrows td.local_country{overflow:visible!important;width:400px!important}.woocommerce table.shippingrows td.local_country select,.woocommerce table.taxrows td.local_country select{width:400px!important;margin-bottom:3px}.woocommerce table.shippingrows td.local_country textarea,.woocommerce table.taxrows td.local_country textarea{height:60px;width:400px;font-size:13px;line-height:16px;display:block}table.wc_gateways td,table.wc_shipping td{vertical-align:middle;cursor:move}table.wc_gateways td p,table.wc_shipping td p{margin:0 0 2px}table.wc_gateways .radio,table.wc_shipping .radio{text-align:center}img.help_tip{vertical-align:middle;margin:0 0 0 9px}.postbox img.help_tip{margin-top:-4px}.woocommerce table.form-table{margin:0}.woocommerce table.form-table textarea.input-text{height:100%;min-width:150px}.woocommerce table.form-table textarea.wide-input{width:100%}.woocommerce table.form-table img.help_tip{padding:0;margin:-4px 0 0 5px;vertical-align:middle;cursor:help;line-height:1}.woocommerce table.form-table fieldset img.help_tip{margin:-3px 0 0 5px}.woocommerce table.form-table .color_box{border:1px solid #ccc;box-shadow:1px 1px 3px rgba(0,0,0,0.2);-webkit-box-shadow:1px 1px 3px rgba(0,0,0,0.2);-moz-box-shadow:1px 1px 3px rgba(0,0,0,0.2);-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;padding:4px 6px;float:left;width:80px;margin:0 10px 0 0}.woocommerce table.form-table .color_box strong{text-align:left;display:block;padding:0 0 2px;font-size:.92em}.woocommerce table.form-table .color_box strong img{float:right;margin:1px 0 0 0}.woocommerce table.form-table .color_box input{width:100%;margin:0;font-family:monospace;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.woocommerce table.form-table .color_box .colorpickdiv{z-index:100;background:#eee;border:1px solid #ccc;position:absolute;display:none}.woocommerce table.form-table .color_box_clear{display:block;clear:both;padding-bottom:10px}.woocommerce #tabs-wrap table a.remove{margin-left:4px}.woocommerce #tabs-wrap table p{margin:0 0 4px!important;overflow:hidden;zoom:1}.woocommerce #tabs-wrap table p a.add{float:left}#product_variation-parent #parent_id{width:100%}#woocommerce-product-data ul.product_data_tabs,.woocommerce ul.tabs{background:#eaeaea;padding:3px 9px 0;margin:0;overflow:hidden;zoom:1;line-height:1em;-webkit-box-shadow:inset 0 -1px 0 0 #d5d5d5;-moz-box-shadow:inset 0 -1px 0 0 x #d5d5d5;box-shadow:inset 0 -1px 0 0 #d5d5d5}#woocommerce-product-data ul.product_data_tabs li,.woocommerce ul.tabs li{float:left;padding:0;margin:0 5px 0 0}#woocommerce-product-data ul.product_data_tabs li a,.woocommerce ul.tabs li a{padding:0;margin:0;border:0;border:1px solid #d5d5d5;border-bottom:0;float:left;padding:9px 9px;background:#ececec;text-decoration:none;color:#555;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:3px;border-top-left-radius:3px;border-top-right-radius:3px;-webkit-box-shadow:inset 0 1px 0 1px rgba(255,255,255,0.5);-moz-box-shadow:inset 0 1px 0 1px rgba(255,255,255,0.5);box-shadow:inset 0 1px 0 1px rgba(255,255,255,0.5)}#woocommerce-product-data ul.product_data_tabs li.active a,.woocommerce ul.tabs li.active a{background:#f8f8f8;color:#555;background-image:linear-gradient(bottom,#fff 0,#f8f8f8 100%);background-image:-o-linear-gradient(bottom,#fff 0,#f8f8f8 100%);background-image:-moz-linear-gradient(bottom,#fff 0,#f8f8f8 100%);background-image:-webkit-linear-gradient(bottom,#fff 0,#f8f8f8 100%);background-image:-ms-linear-gradient(bottom,#fff 0,#f8f8f8 100%);background-image:-webkit-gradient(linear,left bottom,left top,color-stop(0,#fff),color-stop(1,#f8f8f8))}#woocommerce-product-data ul.product_data_tabs li.general_options a,#woocommerce-product-data ul.product_data_tabs li.tax_options a,#woocommerce-product-data ul.product_data_tabs li.inventory_options a,#woocommerce-product-data ul.product_data_tabs li.related_product_options a,#woocommerce-product-data ul.product_data_tabs li.attribute_options a,#woocommerce-product-data ul.product_data_tabs li.grouping_options a,#woocommerce-product-data ul.product_data_tabs li.variation_options a{padding:9px 9px 9px 34px;line-height:16px;border-bottom:1px solid #d5d5d5;text-shadow:0 1px 1px #fff;color:#555;background:#ececec url(../images/icons/wc-tab-icons.png) no-repeat 9px 9px}#woocommerce-product-data ul.product_data_tabs li.general_options a{background-position:9px 9px}#woocommerce-product-data ul.product_data_tabs li.tax_options a{background-position:9px -51px}#woocommerce-product-data ul.product_data_tabs li.inventory_options a{background-position:9px -111px}#woocommerce-product-data ul.product_data_tabs li.related_product_options a{background-position:9px -171px}#woocommerce-product-data ul.product_data_tabs li.attribute_options a{background-position:9px -231px}#woocommerce-product-data ul.product_data_tabs li.grouping_options a{background-position:9px -291px}#woocommerce-product-data ul.product_data_tabs li.variation_options a{background-position:9px -411px}#woocommerce-product-data ul.product_data_tabs li.active a{background-color:#f8f8f8;border-bottom:1px solid #f8f8f8}#woocommerce-product-data .inside,#woocommerce-product-type-options .inside,#woocommerce-order-data .inside,#woocommerce-product-type .inside,#woocommerce-order-downloads .inside,#woocommerce-coupon-data .inside{padding:0;margin:0}.woocommerce_options_panel,.panel{padding:9px 9px 9px 9px;color:#555}.woocommerce_page_settings .woocommerce_options_panel,.panel,#woocommerce-product-type .woocommerce_options_panel{padding:0}#woocommerce-product-type-options .panel,#woocommerce-product-specs .inside{padding:9px;margin:0}.woocommerce_options_panel p,#woocommerce-product-type-options .panel p{margin:0 0 9px;font-size:12px;padding:5px 9px;line-height:24px}.woocommerce_options_panel p:after,#woocommerce-product-type-options .panel p:after{content:".";display:block;height:0;clear:both;visibility:hidden}.woocommerce_options_panel p{margin:9px 0 9px}.woocommerce_options_panel label{float:left;width:150px;padding:0}.woocommerce_options_panel label .req{font-weight:bold;font-style:normal;color:red}.woocommerce_options_panel .description{padding:0;margin:0 0 0 7px}.woocommerce_options_panel .description-block{margin-left:0;display:block}.woocommerce_options_panel textarea,.woocommerce_options_panel input,.woocommerce_options_panel select{margin:0}.woocommerce_options_panel textarea{vertical-align:top;height:3.5em;line-height:1.5em}.woocommerce_options_panel input{width:50%;float:left}.woocommerce_options_panel input.button{width:auto;margin-left:8px}.woocommerce_options_panel .checkbox,table.woocommerce_variable_attributes .checkbox{vertical-align:middle;margin:7px 0;width:auto}.woocommerce_options_panel select{float:left}.woocommerce_options_panel .short{width:20%}.woocommerce_options_panel .sized{width:auto!important;margin-right:6px}.woocommerce_options_panel .options_group{border-top:1px solid white;border-bottom:1px solid #dfdfdf}.woocommerce_options_panel .options_group:first-child{border-top:0}#woocommerce-product-data input.dp-applied{float:left}#grouped_product_options,#virtual_product_options,#simple_product_options{padding:12px;font-style:italic;color:#666}.wc-metaboxes-wrapper .expand_all,.wc-metaboxes-wrapper .close_all{float:right;margin-left:9px;line-height:22px}.wc-metaboxes-wrapper .expand_all{padding-left:14px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAI0lEQVQYV2PcvXv3fwY8gJEoBa6urozYDAFpBpswGBTg8yYA3kYtiYVhDhIAAAAASUVORK5CYII=) no-repeat left}.wc-metaboxes-wrapper .close_all{padding-left:14px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAHUlEQVQYV2NkIAAYd+/e/R+fGsIKCFpBUAHt3QAASf0MyQbFJwoAAAAASUVORK5CYII=) no-repeat left}.wc-metaboxes-wrapper .toolbar{margin:0!important;border-top:1px solid white;border-bottom:1px solid #dfdfdf;padding:9px 12px!important}.wc-metaboxes-wrapper p.toolbar{overflow:hidden;zoom:1}.wc-metaboxes-wrapper select.attribute_taxonomy,.wc-metaboxes-wrapper button.add_attribute,.wc-metaboxes-wrapper button.add_variable_attribute,.wc-metaboxes-wrapper .fr{float:right;margin:0 0 0 6px}.wc-metaboxes-wrapper .wc-metaboxes{border-bottom:1px solid #dfdfdf;padding:0 12px 0}.wc-metaboxes-wrapper .wc-metabox-sortable-placeholder{border-color:#bbb;background-color:#f5f5f5;margin-bottom:9px;border-width:1px;border-style:dashed}.wc-metaboxes-wrapper .wc-metabox{background:#ececec;border:1px solid #ececec;margin:9px 0!important;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:3px;border-top-left-radius:3px;border-top-right-radius:3px}.wc-metaboxes-wrapper .wc-metabox.closed{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.wc-metaboxes-wrapper .wc-metabox h3{margin:0!important;padding:6px!important;font-size:1em!important;overflow:hidden;zoom:1;cursor:move}.wc-metaboxes-wrapper .wc-metabox h3 button{float:right}.wc-metaboxes-wrapper .wc-metabox h3 strong{font-weight:normal;line-height:24px}.wc-metaboxes-wrapper .wc-metabox h3 select{font-family:sans-serif}.wc-metaboxes-wrapper .wc-metabox h3 .handlediv{background-position:6px 5px!important;display:none;height:24px}.wc-metaboxes-wrapper .wc-metabox h3.fixed{cursor:pointer!important}.wc-metaboxes-wrapper .wc-metabox:hover h3 .handlediv{display:block}.wc-metaboxes-wrapper .wc-metabox table{width:100%;position:relative;background:#fff;padding:3px}.wc-metaboxes-wrapper .wc-metabox table td{text-align:left;padding:6px 6px;vertical-align:top;border:0}.wc-metaboxes-wrapper .wc-metabox table td label{text-align:left;display:block;line-height:21px}.wc-metaboxes-wrapper .wc-metabox table td input{float:left;min-width:200px}.wc-metaboxes-wrapper .wc-metabox table td input,.wc-metaboxes-wrapper .wc-metabox table td textarea{width:100%;margin:0;display:block;font-size:14px;padding:4px;color:#555}.wc-metaboxes-wrapper .wc-metabox table td select,.wc-metaboxes-wrapper .wc-metabox table td .chzn-container{width:100%!important}.wc-metaboxes-wrapper .wc-metabox table td input.short{width:200px}.wc-metaboxes-wrapper .wc-metabox table td input.checkbox{width:auto;min-width:inherit;vertical-align:middle;display:inline;float:none}.wc-metaboxes-wrapper .wc-metabox table td.attribute_name{width:200px}.wc-metaboxes-wrapper .wc-metabox table .plus,.wc-metaboxes-wrapper .wc-metabox table .minus{margin-top:6px}.wc-metaboxes-wrapper .wc-metabox table .fl{float:left}.wc-metaboxes-wrapper .wc-metabox table .fr{float:right}.wc-metaboxes-wrapper .plus{padding-left:20px;background:#fefefe url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAARklEQVQYGWP8//8/AzGACV3Rnj17/oMwujiGQnQFMD7RChlBbsRmFcwkEO3i4sJImonIumGmg0xBFifaRKIVgj2DbAUuNgCfThpracSKqwAAAABJRU5ErkJggg==) no-repeat 7px 5px}.wc-metaboxes-wrapper .minus{padding-left:20px;background:#fefefe url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAKUlEQVQYlWP8//8/Az7AhFeWGAUsDAwMDHv27MFqj4uLCyNBExhp70gAohwKC5KJ+HQAAAAASUVORK5CYII=) no-repeat 7px 6px}#variable_product_options p.toolbar strong{margin:0 6px 0 0;float:left;line-height:23px}#variable_product_options p.toolbar .button,#variable_product_options p.toolbar select{margin:0 6px 0 0;float:left}#variable_product_options p.toolbar a.set{padding-left:20px;background:#fefefe url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAARklEQVQYGWP8//8/AzGACV3Rnj17/oMwujiGQnQFMD7RChlBbsRmFcwkEO3i4sJImonIumGmg0xBFifaRKIVgj2DbAUuNgCfThpracSKqwAAAABJRU5ErkJggg==) no-repeat 7px 5px}#variable_product_options p.toolbar a.toggle{padding-left:20px;background:#fefefe url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAWUlEQVQYGY3QAQrAIAgFUB07mrfWu7kc+2JRsiA0fJnE7k5m5tQsEWFS1WGduh3mahpNLx3hOs4WAr2zfU8mRBGxorAJ4wAU+boS1g41x4UbScQdQJ3/fvgDtStDiI0qoDcAAAAASUVORK5CYII=) no-repeat 7px 5px}#variable_product_options p.toolbar a.delete_variations{padding-left:20px;background:#fefefe url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAKUlEQVQYlWP8//8/Az7AhFeWGAUsDAwMDHv27MFqj4uLCyNBExhp70gAohwKC5KJ+HQAAAAASUVORK5CYII=) no-repeat 7px 6px}#variable_product_options p.toolbar .add_variation,#variable_product_options p.toolbar .link_all_variations,#variable_product_options p.toolbar .fr{float:right;margin:0 0 0 6px}#variable_product_options .woocommerce_variation table{background:#f5f5f5;padding:6px}#variable_product_options .woocommerce_variation table td input{min-width:inherit!important}#variable_product_options .woocommerce_variation table td.dimensions_field input{width:32%;margin-right:2%}#variable_product_options .woocommerce_variation table td.dimensions_field .last{margin-right:0}#variable_product_options .woocommerce_variation table td.options{width:150px}#variable_product_options .woocommerce_variation table td.options label{margin-bottom:6px}#variable_product_options .woocommerce_variation table td.data{padding:0 0 0 12px}#variable_product_options .woocommerce_variation table td.data table{width:100%;padding:0 12px 0 12px;background:#fff;border:1px solid #dfdfdf;-moz-border-radius:3px;-webkit-border-radius:3px;-khtml-border-radius:3px;border-radius:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#variable_product_options .woocommerce_variation table td.data table td{width:50%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#variable_product_options .woocommerce_variation table td.data table:before{content:"";display:block;position:absolute;top:33px;left:0;margin:0 0 0 -1px;border:7px solid #dfdfdf;border-color:transparent transparent transparent #dfdfdf}#variable_product_options .woocommerce_variation table td.data table:after{content:"";display:block;position:absolute;top:34px;left:0;margin:0 0 0 -1px;border:6px solid #f5f5f5;border-color:transparent transparent transparent #f5f5f5}#variable_product_options .woocommerce_variation table td.upload_image{white-space:nowrap;width:75px}#variable_product_options .woocommerce_variation table td.upload_image img{float:none;width:73px;border:1px solid #dfdfdf}#variable_product_options .woocommerce_variation table td.upload_image .button{margin:0;padding:4px 10px;width:auto;float:none;vertical-align:middle}#variable_product_options .woocommerce_variation table td.upload_image .upload_image_button{display:block;position:relative}#variable_product_options .woocommerce_variation table td.upload_image .upload_image_button .overlay{display:none;width:75px;height:75px;position:absolute;top:0;left:0;margin:0;padding:0;opacity:.5;background:#eee url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAXklEQVQYGW2OUQrAMAhDFy8+dnKnwiuh2I+aJulDZebDkfSie1b28Q7EXWrfvSm60RQnkQUC8ja7owpmL6d4GdDZ0cNNHyIhZEj4QYCxze6orsluAh8AnR0xKPR07weXJi8JGd3qqwAAAABJRU5ErkJggg==) no-repeat center center}#variable_product_options .woocommerce_variation table td.upload_image .upload_image_button:hover .overlay{display:block}#variable_product_options .woocommerce_variation table td.upload_image .upload_image_button.remove .overlay{background:#eee url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAWElEQVQYGY2OUQ6AMAxCZdm9jSev65K3YKNm+6EFBlVEHDxJJ3Pi0C72xlBNyTs3jU7wEUTTIB51GCp2CL8HLpHEdaOLb/N2dfuq9NT0zOo/M9q6EaImsd/uViMLVuD4KAAAAABJRU5ErkJggg==) no-repeat center center}#variable_product_options .woocommerce_variation table td .file_path_field{position:relative;padding-right:40px}#variable_product_options .woocommerce_variation table td .file_path_field .upload_file_button{position:absolute;right:0;width:30px;padding:5px 0;margin:1px 0 0;text-align:center}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0 0}#tiptip_holder{display:none;position:absolute;top:0;left:0;z-index:99999}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_left{padding-right:5px}#tiptip_content{font-size:11px;color:#fff;padding:4px 8px;background:#a2678c;border-radius:3px;-webkit-border-radius:3px;-moz-border-radius:3px;box-shadow:1px 1px 3px rgba(0,0,0,0.1);-webkit-box-shadow:1px 1px 3px rgba(0,0,0,0.1);-moz-box-shadow:1px 1px 3px rgba(0,0,0,0.1)}#tiptip_content code{background:#855c76;padding:1px}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#a2678c}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#a2678c}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#a2678c}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#a2678c}img.ui-datepicker-trigger{vertical-align:middle;margin-top:-1px;cursor:pointer}.woocommerce_options_panel img.ui-datepicker-trigger,.wc-metabox-content img.ui-datepicker-trigger{float:left;margin-right:8px;margin-top:4px;margin-left:4px}#ui-datepicker-div{display:none}.woocommerce-reports-wrap{margin-left:300px;padding-top:18px}.woocommerce-reports-wrap.halved{margin:0;overflow:hidden;zoom:1}.woocommerce-reports-wrap .postbox h3{cursor:default!important}.woocommerce-reports-wrap .postbox .stat{font-size:1.5em!important;font-weight:bold;text-align:center}.woocommerce-reports-wrap .postbox .chart{padding:16px}.woocommerce-reports-wrap .woocommerce-reports-main{float:left;min-width:100%}.woocommerce-reports-wrap .woocommerce-reports-sidebar{display:inline;width:281px;margin-left:-300px;clear:both;float:left}.woocommerce-reports-wrap .woocommerce-reports-left{width:49.5%;float:left}.woocommerce-reports-wrap .woocommerce-reports-right{width:49.5%;float:right}#tooltip{color:#fff;font-size:12px;-moz-border-radius:4px;-webkit-border-radius:4px;-o-border-radius:4px;-khtml-border-radius:4px;border-radius:4px;opacity:.80}table.bar_chart{width:100%}table.bar_chart thead th{text-align:left;color:#ccc;padding:6px 0}table.bar_chart tbody th{padding:6px 0;width:25%;text-align:left!important;font-weight:normal!important;border-bottom:1px solid #fee}table.bar_chart tbody td{text-align:right;line-height:24px;padding:6px 6px 6px 0;border-bottom:1px solid #fee}table.bar_chart tbody td span{color:#8a4b75;display:block}table.bar_chart tbody td span.alt{color:#47a03e;margin-top:6px}table.bar_chart tbody td.bars{position:relative;text-align:left;padding:6px 6px 6px 0;border-bottom:1px solid #fee}table.bar_chart tbody td.bars span,table.bar_chart tbody td.bars a{text-decoration:none;clear:both;background:#8a4b75;float:left;display:block;line-height:24px;height:24px;-moz-border-radius:3px;-webkit-border-radius:3px;-o-border-radius:3px;-khtml-border-radius:3px;border-radius:3px}table.bar_chart tbody td.bars span.alt{clear:both;background:#47a03e}table.bar_chart tbody td.bars span.alt span{margin:0;color:#c5dec2!important;text-shadow:0 1px 0 #47a03e;background:transparent}#woocommerce_allowed_countries_chzn .chzn-search,#woocommerce_file_download_method_chzn .chzn-search{display:none}.chzn-container-single .chzn-single{height:24px;line-height:25px}.chzn-container-single .chzn-single div b{background:url('../images/chosen-sprite.png') no-repeat 0 0!important}.chzn-container-active .chzn-single-with-drop div b{background-position:-18px 1px!important}.chzn-container-single .chzn-search input{line-height:13px;width:100%!important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.chzn-container .chzn-drop{width:100%!important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.chzn-container-multi .chzn-choices .search-field input{height:21px!important}.woocommerce_options_panel .chzn-container-multi{width:50%!important;float:left}.woocommerce_options_panel .chzn-container-multi .search-field{min-width:50%}.woocommerce_options_panel .chzn-container-multi .search-field input{min-width:100%}.woocommerce-checkout .form-row .chzn-container{width:100%!important}.woocommerce-checkout .form-row .chzn-container-single .chzn-single{height:28px;line-height:29px}.woocommerce-checkout .form-row .chzn-container-single .chzn-single div b{background:url('../images/chosen-sprite.png') no-repeat 0 3px!important}.woocommerce-checkout .form-row .chzn-container-active .chzn-single-with-drop div b{background-position:-18px 4px!important}.woocommerce-checkout .form-row .chzn-container-single .chzn-search input{line-height:13px;width:100%!important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.woocommerce-checkout .form-row .chzn-container .chzn-drop{width:100%!important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.chzn-container{font-size:13px;position:relative;display:inline-block;zoom:1;*display:inline}.chzn-container .chzn-drop{background:#fff;border:1px solid #aaa;border-top:0;position:absolute;top:29px;left:0;-webkit-box-shadow:0 4px 5px rgba(0,0,0,0.15);-moz-box-shadow:0 4px 5px rgba(0,0,0,0.15);-o-box-shadow:0 4px 5px rgba(0,0,0,0.15);box-shadow:0 4px 5px rgba(0,0,0,0.15);z-index:999}.chzn-container-single .chzn-single{background-color:#fff;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ffffff',endColorstr='#eeeeee',GradientType=0);background-image:-webkit-gradient(linear,0% 0,0% 100%,color-stop(20%,#fff),color-stop(50%,#f6f6f6),color-stop(52%,#eee),color-stop(100%,#f4f4f4));background-image:-webkit-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-image:-moz-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-image:-o-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-image:-ms-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-image:linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #aaa;-webkit-box-shadow:0 0 3px #fff inset,0 1px 1px rgba(0,0,0,0.1);-moz-box-shadow:0 0 3px #fff inset,0 1px 1px rgba(0,0,0,0.1);box-shadow:0 0 3px #fff inset,0 1px 1px rgba(0,0,0,0.1);display:block;overflow:hidden;white-space:nowrap;position:relative;padding:0 0 0 8px;color:#444;text-decoration:none}.chzn-container-single .chzn-default{color:#999}.chzn-container-single .chzn-single span{margin-right:26px;display:block;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;-ms-text-overflow:ellipsis;text-overflow:ellipsis}.chzn-container-single .chzn-single abbr{display:block;position:absolute;right:26px;top:6px;width:12px;height:13px;font-size:1px;background:url('../images/chosen-sprite.png') right top no-repeat}.chzn-container-single .chzn-single abbr:hover{background-position:right -11px}.chzn-container-single .chzn-single div{position:absolute;right:0;top:0;display:block;height:100%;width:18px}.chzn-container-single .chzn-single div b{background:url('../images/chosen-sprite.png') no-repeat 0 0;display:block;width:100%;height:100%}.chzn-container-single .chzn-search{padding:3px 4px;position:relative;margin:0;white-space:nowrap;z-index:1010}.chzn-container-single .chzn-search input{background:#fff url('../images/chosen-sprite.png') no-repeat 100% -22px;background:url('../images/chosen-sprite.png') no-repeat 100% -22px,-webkit-gradient(linear,0% 0,0% 100%,color-stop(1%,#eee),color-stop(15%,#fff));background:url('../images/chosen-sprite.png') no-repeat 100% -22px,-webkit-linear-gradient(top,#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat 100% -22px,-moz-linear-gradient(top,#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat 100% -22px,-o-linear-gradient(top,#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat 100% -22px,-ms-linear-gradient(top,#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat 100% -22px,linear-gradient(top,#eee 1%,#fff 15%);margin:1px 0;padding:4px 20px 4px 5px;outline:0;border:1px solid #aaa;font-family:sans-serif;font-size:1em}.chzn-container-single .chzn-drop{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.chzn-container-single-nosearch .chzn-search input{position:absolute;left:-9000px}.chzn-container-multi .chzn-choices{background-color:#fff;background-image:-webkit-gradient(linear,0% 0,0% 100%,color-stop(1%,#eee),color-stop(15%,#fff));background-image:-webkit-linear-gradient(top,#eee 1%,#fff 15%);background-image:-moz-linear-gradient(top,#eee 1%,#fff 15%);background-image:-o-linear-gradient(top,#eee 1%,#fff 15%);background-image:-ms-linear-gradient(top,#eee 1%,#fff 15%);background-image:linear-gradient(top,#eee 1%,#fff 15%);border:1px solid #aaa;margin:0;padding:0;cursor:text;overflow:hidden;height:auto!important;height:1%;position:relative}.chzn-container-multi .chzn-choices li{float:left;list-style:none}.chzn-container-multi .chzn-choices .search-field{white-space:nowrap;margin:0;padding:0}.chzn-container-multi .chzn-choices .search-field input{color:#666;background:transparent!important;border:0!important;font-family:sans-serif;font-size:100%;height:15px;padding:5px;margin:1px 0;outline:0;-webkit-box-shadow:none;-moz-box-shadow:none;-o-box-shadow:none;box-shadow:none}.chzn-container-multi .chzn-choices .search-field .default{color:#999}.chzn-container-multi .chzn-choices .search-choice{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;background-color:#e4e4e4;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#f4f4f4',endColorstr='#eeeeee',GradientType=0);background-image:-webkit-gradient(linear,0% 0,0% 100%,color-stop(20%,#f4f4f4),color-stop(50%,#f0f0f0),color-stop(52%,#e8e8e8),color-stop(100%,#eee));background-image:-webkit-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-moz-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-o-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-ms-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);-webkit-box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,0.05);-moz-box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,0.05);box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,0.05);color:#333;border:1px solid #aaa;line-height:13px;padding:3px 20px 3px 5px;margin:3px 0 3px 5px;position:relative;cursor:default}.chzn-container-multi .chzn-choices .search-choice-focus{background:#d4d4d4}.chzn-container-multi .chzn-choices .search-choice .search-choice-close{display:block;position:absolute;right:3px;top:4px;width:12px;height:13px;font-size:1px;background:url('../images/chosen-sprite.png') right top no-repeat}.chzn-container-multi .chzn-choices .search-choice .search-choice-close:hover{background-position:right -11px}.chzn-container-multi .chzn-choices .search-choice-focus .search-choice-close{background-position:right -11px}.chzn-container .chzn-results{margin:0 4px 4px 0;max-height:240px;padding:0 0 0 4px;position:relative;overflow-x:hidden;overflow-y:auto}.chzn-container-multi .chzn-results{margin:-1px 0 0;padding:0}.chzn-container .chzn-results li{display:none;line-height:15px;padding:5px 6px;margin:0;list-style:none}.chzn-container .chzn-results .active-result{cursor:pointer;display:list-item}.chzn-container .chzn-results .highlighted{background-color:#3875d7;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#3875d7',endColorstr='#2a62bc',GradientType=0);background-image:-webkit-gradient(linear,0% 0,0% 100%,color-stop(20%,#3875d7),color-stop(90%,#2a62bc));background-image:-webkit-linear-gradient(top,#3875d7 20%,#2a62bc 90%);background-image:-moz-linear-gradient(top,#3875d7 20%,#2a62bc 90%);background-image:-o-linear-gradient(top,#3875d7 20%,#2a62bc 90%);background-image:-ms-linear-gradient(top,#3875d7 20%,#2a62bc 90%);background-image:linear-gradient(top,#3875d7 20%,#2a62bc 90%);color:#fff}.chzn-container .chzn-results li em{background:#feffde;font-style:normal}.chzn-container .chzn-results .highlighted em{background:transparent}.chzn-container .chzn-results .no-results{background:#f4f4f4;display:list-item}.chzn-container .chzn-results .group-result{cursor:default;color:#999;font-weight:bold}.chzn-container .chzn-results .group-option{padding-left:15px}.chzn-container-multi .chzn-drop .result-selected{display:none}.chzn-container .chzn-results-scroll{background:white;margin:0 4px;position:absolute;text-align:center;width:321px;z-index:1}.chzn-container .chzn-results-scroll span{display:inline-block;height:17px;text-indent:-5000px;width:9px}.chzn-container .chzn-results-scroll-down{bottom:0}.chzn-container .chzn-results-scroll-down span{background:url('../images/chosen-sprite.png') no-repeat -4px -3px}.chzn-container .chzn-results-scroll-up span{background:url('../images/chosen-sprite.png') no-repeat -22px -3px}.chzn-container-active .chzn-single{-webkit-box-shadow:0 0 5px rgba(0,0,0,0.3);-moz-box-shadow:0 0 5px rgba(0,0,0,0.3);-o-box-shadow:0 0 5px rgba(0,0,0,0.3);box-shadow:0 0 5px rgba(0,0,0,0.3);border:1px solid #5897fb}.chzn-container-active .chzn-single-with-drop{border:1px solid #aaa;-webkit-box-shadow:0 1px 0 #fff inset;-moz-box-shadow:0 1px 0 #fff inset;-o-box-shadow:0 1px 0 #fff inset;box-shadow:0 1px 0 #fff inset;background-color:#eee;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#eeeeee',endColorstr='#ffffff',GradientType=0);background-image:-webkit-gradient(linear,0% 0,0% 100%,color-stop(20%,#eee),color-stop(80%,#fff));background-image:-webkit-linear-gradient(top,#eee 20%,#fff 80%);background-image:-moz-linear-gradient(top,#eee 20%,#fff 80%);background-image:-o-linear-gradient(top,#eee 20%,#fff 80%);background-image:-ms-linear-gradient(top,#eee 20%,#fff 80%);background-image:linear-gradient(top,#eee 20%,#fff 80%);-webkit-border-bottom-left-radius:0;-webkit-border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-moz-border-radius-bottomright:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.chzn-container-active .chzn-single-with-drop div{background:transparent;border-left:none}.chzn-container-active .chzn-single-with-drop div b{background-position:-18px 1px}.chzn-container-active .chzn-choices{-webkit-box-shadow:0 0 5px rgba(0,0,0,0.3);-moz-box-shadow:0 0 5px rgba(0,0,0,0.3);-o-box-shadow:0 0 5px rgba(0,0,0,0.3);box-shadow:0 0 5px rgba(0,0,0,0.3);border:1px solid #5897fb}.chzn-container-active .chzn-choices .search-field input{color:#111!important}.chzn-disabled{cursor:default;opacity:.5!important}.chzn-disabled .chzn-single{cursor:default}.chzn-disabled .chzn-choices .search-choice .search-choice-close{cursor:default}.chzn-rtl{text-align:right}.chzn-rtl .chzn-single{padding:0 8px 0 0;overflow:visible}.chzn-rtl .chzn-single span{margin-left:26px;margin-right:0;direction:rtl}.chzn-rtl .chzn-single div{left:3px;right:auto}.chzn-rtl .chzn-single abbr{left:26px;right:auto}.chzn-rtl .chzn-choices .search-field input{direction:rtl}.chzn-rtl .chzn-choices li{float:right}.chzn-rtl .chzn-choices .search-choice{padding:3px 5px 3px 19px;margin:3px 5px 3px 0}.chzn-rtl .chzn-choices .search-choice .search-choice-close{left:4px;right:auto;background-position:right top}.chzn-rtl.chzn-container-single .chzn-results{margin:0 0 4px 4px;padding:0 4px 0 0}.chzn-rtl .chzn-results .group-option{padding-left:0;padding-right:15px}.chzn-rtl.chzn-container-active .chzn-single-with-drop div{border-right:0}.chzn-rtl .chzn-search input{background:#fff url('../images/chosen-sprite.png') no-repeat -38px -22px;background:url('../images/chosen-sprite.png') no-repeat -38px -22px,-webkit-gradient(linear,0% 0,0% 100%,color-stop(1%,#eee),color-stop(15%,#fff));background:url('../images/chosen-sprite.png') no-repeat -38px -22px,-webkit-linear-gradient(top,#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat -38px -22px,-moz-linear-gradient(top,#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat -38px -22px,-o-linear-gradient(top,#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat -38px -22px,-ms-linear-gradient(top,#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat -38px -22px,linear-gradient(top,#eee 1%,#fff 15%);padding:4px 5px 4px 20px;direction:rtl} \ No newline at end of file +.woocommerce-message{position:relative;z-index:100;border:1px solid #b76ca9!important;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:inset 0 0 15px rgba(0,0,0,0.04);-moz-box-shadow:inset 0 0 15px rgba(0,0,0,0.04);box-shadow:inset 0 0 15px rgba(0,0,0,0.04);overflow:hidden;padding:10px 0 10px!important;background:#cc99c2 url(../images/message.png) no-repeat right bottom!important}.woocommerce-message .squeezer{max-width:960px;margin:0;padding:0 10px;text-align:left;overflow:hidden}.woocommerce-message h4{margin:0 10px 0 0;font-size:18px;line-height:36px;font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",Verdana,"Bitstream Vera Sans",sans-serif;font-weight:normal;color:#fff;text-shadow:0 1px 1px #b574a8;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;float:left;vertical-align:middle}.woocommerce-message p{margin:0!important;padding:2px 0!important;float:left!important;line-height:32px;vertical-align:middle}.woocommerce-message p a.button-primary{font-size:16px!important;line-height:16px!important;margin:0 5px 0 0;padding:6px 15px;vertical-align:middle;color:#fff;text-align:center;text-decoration:none;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;border:1px solid #88537e;background:#a46497;-moz-box-shadow:inset 0 0 2px #fff,0 1px 1px rgba(0,0,0,0.1);-webkit-box-shadow:inset 0 0 2px #fff,0 1px 1px rgba(0,0,0,0.1);box-shadow:inset 0 0 2px #fff,0 1px 1px rgba(0,0,0,0.1);text-shadow:0 -1px 0 rgba(0,0,0,0.3);-webkit-transition-duration:.3s;-moz-transition-duration:.3s;cursor:pointer;font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",Verdana,"Bitstream Vera Sans",sans-serif}.woocommerce-message p a.button-primary:hover,.woocommerce-message p a.button-primary:active{background-color:#f0a000;border-color:#c87800;-webkit-transition-duration:.3s;outline:0;opacity:1}.woocommerce-message p a.skip,.woocommerce-message p a.docs{opacity:.5}.woocommerce-message .twitter-share-button{vertical-align:middle}#variable_product_options #message{margin:10px}#woocommerce_extensions{background:#f1f1f1 url(../images/icons/wc_icon.png) no-repeat 4px 4px;padding:4px 18px 4px 28px;-webkit-border-radius:4px;-moz-border-radius:4px;-o-border-radius:4px;border-radius:4px;width:220px;float:right;margin:9px 0 -40px;position:relative;text-shadow:0 1px 0 rgba(255,255,255,0.8);color:#555}#woocommerce_extensions a{color:#555}#woocommerce_extensions a.hide{color:#ccc;float:right;text-decoration:none;position:absolute;top:0;right:0;line-height:20px;padding:2px 8px;font-size:11px;text-align:center}#wc_get_started{position:relative;margin:1em 0 2em;padding:15px 15px 15px 90px;border:1px solid #d9d9d9;background:#f5f5f5 url(../images/gear.png) no-repeat 15px 15px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;box-shadow:inset 1px 1px 0 #fff,inset -1px -1px 0 #fff;-moz-box-shadow:inset 1px 1px 0 #fff,inset -1px -1px 0 #fff;-webkit-box-shadow:inset 1px 1px 0 #fff,inset -1px -1px 0 #fff}#wc_get_started span{display:block;text-shadow:1px 1px 0 #fff;font-size:14px;line-height:22px;color:#595959}#wc_get_started span.main{margin-top:2px;font-weight:bold;font-size:16px}#wc_get_started .main-button{position:absolute;right:20px;top:27px}#wc_get_started p{margin:1em 0 .5em}#icon-woocommerce,.woocommerce_icon,.icon32-posts-product,.icon32-posts-shop_order,.icon32-posts-shop_coupon,.icon32-posts-product_variation{background-image:url(../images/icons/woocommerce-icons.png)!important;background-position:-11px -6px}.icon32-posts-product{background-position:-185px -6px!important}.icon32-posts-product{background-position:-69px -6px!important}.icon32-posts-shop_order{background-position:-127px -6px!important}.icon32-attributes{background-position:-185px -6px!important}.icon32-woocommerce-settings{background-position:-359px -6px!important}.icon32-posts-shop_coupon{background-position:-475px -6px!important}.icon32-posts-product_variation{background-position:-533px -6px!important}.icon32-woocommerce-reports{background-position:-591px -6px!important}.icon32-woocommerce-status{background-position:-417px -6px!important}.wrap.woocommerce div.updated,.wrap.woocommerce div.error{margin-top:10px}mark.amount{background:transparent none;color:inherit}input.wc-error{color:#d8000c;background-color:#ffbaba}table.wc_status_table th{font-weight:bold}table.wc_status_table td{padding:5px 7px}table.wc_status_table td mark{background:transparent none}table.wc_status_table td mark.yes{color:green}table.wc_status_table td mark.no{color:#999}table.wc_status_table td mark.error{color:red}table.wc_status_table td ul{margin:0}#debug-report{font-family:monospace;display:none;width:100%;margin-bottom:20px;height:200px}.inline-edit-product.quick-edit-row .inline-edit-col-center,.inline-edit-product.quick-edit-row .inline-edit-col-right{float:right!important}#woocommerce-fields.inline-edit-col{clear:left}#woocommerce-fields.inline-edit-col label.featured,#woocommerce-fields.inline-edit-col label.manage_stock{margin-left:10px}#woocommerce-fields.inline-edit-col .dimensions div{display:block;margin:.2em 0}#woocommerce-fields.inline-edit-col .dimensions div span.title{display:block;float:left;width:5em}#woocommerce-fields.inline-edit-col .dimensions div span.input-text-wrap{display:block;margin-left:5em}#woocommerce-fields.inline-edit-col .text{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:99%;float:left;margin:1px 1% 1px 1px}#woocommerce-fields.inline-edit-col .length,#woocommerce-fields.inline-edit-col .width,#woocommerce-fields.inline-edit-col .height{width:32.33%}#woocommerce-fields-bulk.inline-edit-col label{clear:left}#woocommerce-fields-bulk.inline-edit-col .inline-edit-group label,#woocommerce-fields-bulk.inline-edit-col .inline-edit-group div.alignright{clear:none;width:49%;margin:.2em 0}#woocommerce-fields-bulk.inline-edit-col .regular_price,#woocommerce-fields-bulk.inline-edit-col .sale_price,#woocommerce-fields-bulk.inline-edit-col .weight,#woocommerce-fields-bulk.inline-edit-col .stock{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%}#woocommerce-fields-bulk.inline-edit-col .length,#woocommerce-fields-bulk.inline-edit-col .width,#woocommerce-fields-bulk.inline-edit-col .height{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:32%}#order_data{padding:0 10px 9px}#order_data .order_data_left{width:48%;float:left}#order_data .order_data_left h2{margin-top:11px;margin-bottom:0}#order_data .order_data_left p{padding:0!important}#order_data .order_data_left .form-field{float:left;width:48%;padding:0;margin:9px 0 0 0}#order_data .order_data_left .form-field label{display:block;padding:0 0 3px}#order_data .order_data_left .form-field input,#order_data .order_data_left .form-field textarea{width:100%}#order_data .order_data_left .form-field select{width:100%}#order_data .order_data_left .form-field #order_status_chzn .chzn-search{display:none}#order_data .order_data_left .form-field .chzn-container{width:100%!important}#order_data .order_data_left .form-field .date-picker-field{width:9em}#order_data .order_data_left .form-field .hour,#order_data .order_data_left .form-field .minute{width:2.5em}#order_data .order_data_left .form-field.last{float:right}#order_data .order_data_left .form-field-wide{width:100%;clear:both}#order_data .order_data_left .form-field-wide input,#order_data .order_data_left .form-field-wide textarea{width:100%}#order_data .order_data_left .form-field-wide select{width:100%}#order_data .order_data_right{width:48%;float:right}#order_data .order_data_right .order_data{overflow:hidden;zoom:1;width:49%;float:left}#order_data .order_data_right .order_data_alt{float:right}#order_data .order_data_right h2{margin-top:11px;margin-bottom:0}#order_data .order_data_right p{padding:0!important}#order_data .order_data_right p.none_set{color:#999}#order_data .order_data_right .form-field{float:left;width:50%;padding:0;margin:9px 0 0 0}#order_data .order_data_right .form-field label{display:block;padding:0 0 3px}#order_data .order_data_right .form-field input,#order_data .order_data_right .form-field select{width:95%}#order_data .order_data_right ._billing_company_field,#order_data .order_data_right ._shipping_company_field{clear:both;width:100%}#order_data .order_data_right ._billing_company_field input,#order_data .order_data_right ._shipping_company_field input{width:97.5%}#order_data .order_data_right ._billing_email_field{clear:left}#order_data .order_data_right div.edit_address{display:none;overflow:hidden;zoom:1}.order_actions{color:#999;font-size:11px;margin:0;overflow:hidden;zoom:1}.order_actions li{border-top:1px solid #fff;border-bottom:1px solid #ddd;padding:6px 0;margin:0;line-height:1.6em;float:left;width:50%;text-align:center}.order_actions li a{float:none;text-align:center}.order_actions li.wide{width:auto;float:none;clear:both;padding:6px;text-align:left}#woocommerce-order-items .inside{margin:0;padding:0;background:#fefefe}#woocommerce-order-items .buttons{float:left;padding-left:12px;vertical-align:top}#woocommerce-order-items .buttons .add_item_id,#woocommerce-order-items .buttons .chzn-container{margin-right:9px;vertical-align:top;float:left}#woocommerce-order-items .buttons .add_item_id .search-field input,#woocommerce-order-items .buttons .chzn-container .search-field input{min-width:100px}#woocommerce-order-items .buttons button{margin:2px 0 0 0}#woocommerce-order-items .buttons-alt{float:right;padding-right:12px}#woocommerce-order-items .add_meta{margin-left:0!important}#woocommerce-order-items h3 small{color:#999}#woocommerce-order-items .row-actions{float:right;padding:0;color:#999}#woocommerce-order-items .row-actions a{color:#999}#woocommerce-order-items .row-actions a.remove_row:hover{color:red}#woocommerce-order-downloads .buttons{float:left;padding:0;margin:0;vertical-align:top}#woocommerce-order-downloads .buttons .add_item_id,#woocommerce-order-downloads .buttons .chzn-container{width:400px!important;margin-right:9px;vertical-align:top;float:left}#woocommerce-order-downloads .buttons button{margin:2px 0 0 0}#woocommerce-order-downloads h3 small{color:#999}#woocommerce-order-totals h4{margin:0!important}#woocommerce-order-totals h4 a.add_tax_row{display:block;padding-bottom:10px}#woocommerce-order-totals .totals_group{border-top:1px solid white;border-bottom:1px solid #DDD;padding:10px 0 0}#woocommerce-order-totals .totals_group:first-child{border-top:0}#woocommerce-order-totals ul.totals{margin:6px 0 0;float:left}#woocommerce-order-totals ul.totals li{float:left;clear:both;width:100%;font-size:1.2em;font-weight:bold;line-height:1.2em;margin:0;padding:0 0 10px}#woocommerce-order-totals ul.totals li label{font-weight:normal;display:block;font-size:.8em;color:#333}#woocommerce-order-totals ul.totals li input{width:100%;vertical-align:middle;font-size:1em;margin:0!important;font-weight:normal;color:#555}#woocommerce-order-totals ul.totals li input.first{width:49%;float:left}#woocommerce-order-totals ul.totals li input.last{width:49%;float:right}#woocommerce-order-totals ul.totals li.left{float:left;width:49%;clear:left}#woocommerce-order-totals ul.totals li.left input{width:100%}#woocommerce-order-totals ul.totals li.right{float:right;width:49%;clear:none}#woocommerce-order-totals ul.totals li.right input{width:100%}#woocommerce-order-totals ul.totals .calculated{border-color:#ae8ca2;border-style:dotted}#woocommerce-order-totals #tax_rows{margin:6px 0 0}#woocommerce-order-totals .tax_row{margin:0 0 9px;border:1px solid #dfdfdf;background:#fff;padding:6px 6px 0;position:relative;opacity:.75}#woocommerce-order-totals .tax_row:hover,#woocommerce-order-totals .tax_row:focus{opacity:1}#woocommerce-order-totals .tax_row p{margin:0 0 6px}#woocommerce-order-totals .tax_row label{color:#555}#woocommerce-order-totals .tax_row label .checkbox{line-height:26px}#woocommerce-order-totals .tax_row p.first{float:left;width:49%;clear:left}#woocommerce-order-totals .tax_row p.first input,#woocommerce-order-totals .tax_row p.first select{width:100%}#woocommerce-order-totals .tax_row p.last{float:right;width:49%;clear:none}#woocommerce-order-totals .tax_row p.last input,#woocommerce-order-totals .tax_row p.last select{width:100%}#woocommerce-order-totals .tax_row a.delete_tax_row{padding:0;text-decoration:none;font-size:11px;line-height:16px;width:16px;height:16px;text-align:center;color:#999;float:right;background:#ddd;border:1px solid #eee;-webkit-box-shadow:0 0 0 1px #ccc;-webkit-border-radius:8px;-moz-border-radius:8px;-o-border-radius:8px;border-radius:8px;position:absolute;top:0;right:0;margin:-8px -8px 0 0;display:none}#woocommerce-order-totals .tax_row:hover a.delete_tax_row,#woocommerce-order-totals .tax_row:focus a.delete_tax_row{display:block}.woocommerce_order_items_wrapper{margin:0}.woocommerce_order_items_wrapper table.woocommerce_order_items{width:100%;background:#fff}.woocommerce_order_items_wrapper table.woocommerce_order_items thead th{background:#ececec;padding:8px;font-size:11px;text-align:left}.woocommerce_order_items_wrapper table.woocommerce_order_items td{padding:8px;text-align:left;line-height:26px;vertical-align:top;border-bottom:1px dotted #ececec}.woocommerce_order_items_wrapper table.woocommerce_order_items td input,.woocommerce_order_items_wrapper table.woocommerce_order_items td textarea{width:100%}.woocommerce_order_items_wrapper table.woocommerce_order_items td select{width:50%}.woocommerce_order_items_wrapper table.woocommerce_order_items td input,.woocommerce_order_items_wrapper table.woocommerce_order_items td textarea{font-size:14px;padding:4px;color:#555}.woocommerce_order_items_wrapper table.woocommerce_order_items .name{min-width:200px}.woocommerce_order_items_wrapper table.woocommerce_order_items .center,.woocommerce_order_items_wrapper table.woocommerce_order_items .variation-id{text-align:center}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_total,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_subtotal,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class{text-align:right}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost label,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax label,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity label,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_total label,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_subtotal label,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class label{display:block;white-space:nowrap;color:#999;font-size:.833em}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_total label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_subtotal label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class label input{display:inline}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost input,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax input,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity input,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_total input,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_subtotal input,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class input{width:60px;vertical-align:middle;text-align:right}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost select,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax select,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity select,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_total select,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_subtotal select,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class select{width:85px;height:26px;vertical-align:middle}.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity{text-align:center}.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity input{text-align:center;width:40px}.woocommerce_order_items_wrapper table.woocommerce_order_items td.tax_class,.woocommerce_order_items_wrapper table.woocommerce_order_items th.tax_class{text-align:left}.woocommerce_order_items_wrapper table.woocommerce_order_items .calculated{border-color:#ae8ca2;border-style:dotted}.woocommerce_order_items_wrapper table.woocommerce_order_items table.meta{width:100%}.woocommerce_order_items_wrapper table.woocommerce_order_items table.meta tr td{padding:1px 4px 1px 0;border:0}.woocommerce_order_items_wrapper table.woocommerce_order_items table.meta tr td input{min-width:100px}.woocommerce_order_items_wrapper table.woocommerce_order_items .thumb{text-align:center}.woocommerce_order_items_wrapper table.woocommerce_order_items .thumb a{display:block}.woocommerce_order_items_wrapper table.woocommerce_order_items .thumb img{padding:2px;margin:0;border:1px solid #dfdfdf;vertical-align:middle;width:46px;height:46px}.widefat .column-order_title time{display:block;color:#999;margin:3px 0}.widefat .column-order_actions a.button{float:left;margin:0 4px 2px 0}.widefat small.meta{display:block;color:#999;font-size:inherit;margin:3px 0}.widefat .column-total_cost,.widefat .column-order_date{width:9%}.widefat .column-order_status{width:90px;text-align:center}.widefat .column-order_status mark{display:block;text-align:center;white-space:nowrap;padding:0 2px;background:#999;border:1px solid #999;-webkit-box-shadow:inset 0 0 2px 1px rgba(255,255,255,0.5);-webkit-border-radius:4px;-moz-border-radius:4px;-o-border-radius:4px;border-radius:4px;margin:0;font-size:9px;text-transform:uppercase;color:#fff;font-weight:bold;text-shadow:0 1px 0 rgba(0,0,0,0.3)}.widefat .column-order_status mark.pending{background-color:#999;border-color:#999}.widefat .column-order_status mark.completed{background-color:#a0658b;border-color:#a0658b}.widefat .column-order_status mark.on-hold{background-color:#e66f00;border-color:#e66f00}.widefat .column-order_status mark.failed{background-color:red;border-color:red}.widefat .column-order_status mark.cancelled{background-color:#ccc;border-color:#ccc}.widefat .column-order_status mark.processing{background-color:#2184c2;border-color:#2184c2}.widefat .column-order_status mark.refunded{background-color:#ccc;border-color:#ccc}ul.subsubsub li.pending a{color:#e66f00}ul.subsubsub li.completed a{color:green}ul.subsubsub li.onhold a{color:red}ul.subsubsub li.cancelled a{color:#dfdfdf}ul.subsubsub li.refunded a{color:#ccc}ul.order_notes{padding:2px 0 0 0}ul.order_notes li .note_content{padding:10px;background:#efefef;position:relative}ul.order_notes li .note_content p{margin:0;padding:0}ul.order_notes li p.meta{padding:10px;color:#999;margin:0;font-size:11px}ul.order_notes li a.delete_note{color:#f00}ul.order_notes li .note_content:after{content:"";display:block;position:absolute;bottom:-15px;left:30px;width:0;height:0;border-width:15px 15px 0 0;border-style:solid;border-color:#efefef transparent}ul.order_notes li.customer-note .note_content{background:#d7cad2}ul.order_notes li.customer-note .note_content:after{border-color:#d7cad2 transparent}.add_note{border-top:1px solid #ddd;padding:10px}.add_note h4{margin-top:5px!important}.add_note input#add_order_note{width:50%}table.wp-list-table .column-thumb{width:52px;text-align:center;white-space:nowrap}table.wp-list-table .column-product_cat,table.wp-list-table .column-product_tag{width:11%!important}table.wp-list-table .column-sku,table.wp-list-table .column-product_cat,table.wp-list-table .column-product_tag,table.wp-list-table .column-is_in_stock,table.wp-list-table .column-price,table.wp-list-table .column-product_date{width:9%}table.wp-list-table .column-featured,table.wp-list-table .column-product_type{width:46px;text-align:left!important}table.wp-list-table .column-note{width:46px;text-align:center}table.wp-list-table .column-note img{margin:0 auto;padding-top:0!important}table.wp-list-table .column-order_comments{width:3em!important}table.wp-list-table .column-order_comments .post-com-count{float:left}table.wp-list-table th.column-note img,table.wp-list-table th.column-order_comments img{padding-top:1px!important}table.wp-list-table .manage-column.column-featured img,table.wp-list-table .manage-column.column-product_type img{padding-left:2px}table.wp-list-table img{margin:1px 2px}table.wp-list-table .column-thumb img{padding:2px;margin:0;border:1px solid #dfdfdf;vertical-align:middle;width:32px;height:32px}table.wp-list-table span.na{color:#999}table.wp-list-table .column-is_in_stock{text-align:left!important}table.wp-list-table span.product-type{width:16px;height:16px;margin:1px 2px;display:block;background:url(../images/product_types.png) no-repeat -16px 0}table.wp-list-table span.product-type.grouped{background:url(../images/product_types.png) no-repeat 0 0}table.wp-list-table span.product-type.external{background:url(../images/product_types.png) no-repeat -32px 0}table.wp-list-table span.product-type.variable{background:url(../images/product_types.png) no-repeat -48px 0}table.wp-list-table span.product-type.downloadable{background:url(../images/product_types.png) no-repeat -64px 0}table.wp-list-table span.product-type.virtual{background:url(../images/product_types.png) no-repeat -80px 0}table.wp-list-table mark.instock{font-weight:bold;color:green;background:transparent none;line-height:1}table.wp-list-table mark.outofstock{font-weight:bold;color:#a44;background:transparent none;line-height:1}ul.woocommerce_stats{overflow:hidden;zoom:1}ul.woocommerce_stats li{width:22%;padding:0 1.4%;float:left;font-size:.8em;border-left:1px solid #fff;border-right:1px solid #ececec;text-align:center}ul.woocommerce_stats li:first-child{border-left:0}ul.woocommerce_stats li:last-child{border-right:0}ul.woocommerce_stats strong{font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-size:4em;line-height:1.2em;font-weight:normal;text-align:center;display:block}#woocommerce_dashboard_right_now p.sub,#woocommerce_dashboard_right_now .table,#woocommerce_dashboard_right_now .versions{margin:-12px}#woocommerce_dashboard_right_now .inside{font-size:12px;margin-bottom:0;padding-top:20px}#woocommerce_dashboard_right_now p.sub{padding:5px 0 15px;color:#8f8f8f;font-size:14px;position:absolute;top:-17px;left:15px}#woocommerce_dashboard_right_now .table{margin:0;padding:0;position:relative}#woocommerce_dashboard_right_now .table_shop_content{float:left;border-top:#ececec 1px solid;width:45%}#woocommerce_dashboard_right_now .table_orders{float:right;border-top:#ececec 1px solid;width:45%}#woocommerce_dashboard_right_now table td{padding:3px 0;white-space:nowrap}#woocommerce_dashboard_right_now table tr.first td{border-top:0}#woocommerce_dashboard_right_now td.b{padding-right:6px;text-align:right;font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-size:14px;width:1%}#woocommerce_dashboard_right_now td.b a{font-size:18px}#woocommerce_dashboard_right_now td.b a:hover{color:#d54e21}#woocommerce_dashboard_right_now .t{font-size:12px;padding-right:12px;padding-top:6px;color:#777}#woocommerce_dashboard_right_now .t a{white-space:nowrap}#woocommerce_dashboard_right_now .on-hold a{color:red}#woocommerce_dashboard_right_now .pending a{color:#e66f00}#woocommerce_dashboard_right_now .completed a{color:green}#woocommerce_dashboard_right_now .versions{padding:6px 10px 12px;clear:both}#woocommerce_dashboard_right_now .versions .b{font-weight:bold}#woocommerce_dashboard_right_now a.button{float:right;clear:right;position:relative;top:-5px}#woocommerce_dashboard_sales h3 a{float:right;margin-left:8px}ul.recent-orders li,ul.stock_list li{overflow:hidden;zoom:1;border-bottom:#ececec 1px solid;padding:0 0 8px;margin:0 0 8px}ul.recent-orders li .order-status,ul.stock_list li .order-status{float:right}ul.recent-orders li small,ul.stock_list li small{color:#999}ul.recent-orders li .order-cost,ul.stock_list li .order-cost,ul.recent-orders li .order-customer,ul.stock_list li .order-customer{margin-left:8px}ul.recent-orders li .completed,ul.stock_list li .completed{color:green}ul.recent-orders li .on-hold,ul.stock_list li .on-hold{color:red}ul.recent-orders li .processing,ul.stock_list li .processing{color:#21759b}ul.recent-orders li .pending,ul.stock_list li .pending{color:#e66f00}ul.recent-orders li .refunded,ul.stock_list li .refunded,ul.recent-orders li .cancelled,ul.stock_list li .cancelled{color:#999}ul.recent-orders.stock_list small,ul.stock_list.stock_list small{float:right}ul.recent-orders.stock_list a,ul.stock_list.stock_list a{text-decoration:none}#woocommerce_dashboard_recent_reviews li{line-height:1.5em;margin-bottom:12px}#woocommerce_dashboard_recent_reviews h4.meta{line-height:1.4;margin:-0.2em 0 0 0;font-weight:normal;color:#999}#woocommerce_dashboard_recent_reviews blockquote{padding:0;margin:0}#woocommerce_dashboard_recent_reviews .avatar{float:left;margin:0 10px 5px 0}#woocommerce_dashboard_recent_reviews .star-rating{float:right;width:50px;height:10px;margin:3px 0 0 0;background:url(../images/admin-star.png) repeat-x left -10px}#woocommerce_dashboard_recent_reviews .star-rating span{background:url(../images/admin-star.png) repeat-x left 0;height:0;padding-top:10px;overflow:hidden;float:left}mark.notice{background:#fff;color:red;margin:0 0 0 10px}a.export_rates,a.import_rates{float:right;margin-left:3px;margin-top:-3px;margin-bottom:3px}.woocommerce table.shippingrows td,.woocommerce table.taxrows td,.woocommerce table.shippingrows th,.woocommerce table.taxrows th{vertical-align:top;line-height:25px;margin-bottom:9px}.woocommerce table.shippingrows a.remove,.woocommerce table.taxrows a.remove{margin:0!important}.woocommerce table.shippingrows .dupe,.woocommerce table.taxrows .dupe,.woocommerce table.shippingrows .remove,.woocommerce table.taxrows .remove{float:right;margin-left:9px}.woocommerce table.shippingrows tbody .check-column,.woocommerce table.taxrows tbody .check-column{padding-top:8px}.woocommerce table.shippingrows tbody .check-column input,.woocommerce table.taxrows tbody .check-column input{margin:0 0 0 8px}.woocommerce table.shippingrows input,.woocommerce table.taxrows input{width:auto}.woocommerce table.shippingrows td.apply_to_shipping,.woocommerce table.taxrows td.apply_to_shipping{padding-top:8px}.woocommerce table.shippingrows td.country,.woocommerce table.taxrows td.country{overflow:visible!important}.woocommerce table.shippingrows td.country p,.woocommerce table.taxrows td.country p{line-height:25px;margin:0;color:#666}.woocommerce table.shippingrows td.country button.edit_options,.woocommerce table.taxrows td.country button.edit_options{float:right}.woocommerce table.shippingrows td.country select,.woocommerce table.taxrows td.country select{margin:9px 0;width:100%;height:160px!important}.woocommerce table.shippingrows td.country p.edit,.woocommerce table.taxrows td.country p.edit,.woocommerce table.shippingrows td.country .options,.woocommerce table.taxrows td.country .options{min-width:400px}.woocommerce table.shippingrows td.country .chzn-container,.woocommerce table.taxrows td.country .chzn-container{width:100%!important;margin:9px 0 5px}.woocommerce table.shippingrows td.country .chzn-container .chzn-drop,.woocommerce table.taxrows td.country .chzn-container .chzn-drop{width:100%!important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.woocommerce table.shippingrows td.country .chzn-container .search-field input,.woocommerce table.taxrows td.country .chzn-container .search-field input{width:150px!important}.woocommerce table.shippingrows td.local_country,.woocommerce table.taxrows td.local_country{overflow:visible!important;width:400px!important}.woocommerce table.shippingrows td.local_country select,.woocommerce table.taxrows td.local_country select{width:400px!important;margin-bottom:3px}.woocommerce table.shippingrows td.local_country textarea,.woocommerce table.taxrows td.local_country textarea{height:60px;width:400px;font-size:13px;line-height:16px;display:block}table.wc_gateways td,table.wc_shipping td{vertical-align:middle;cursor:move}table.wc_gateways td p,table.wc_shipping td p{margin:0 0 2px}table.wc_gateways .radio,table.wc_shipping .radio{text-align:center}img.help_tip{vertical-align:middle;margin:0 0 0 9px}.postbox img.help_tip{margin-top:-4px}.woocommerce table.form-table{margin:0}.woocommerce table.form-table textarea.input-text{height:100%;min-width:150px}.woocommerce table.form-table textarea.wide-input{width:100%}.woocommerce table.form-table img.help_tip{padding:0;margin:-4px 0 0 5px;vertical-align:middle;cursor:help;line-height:1}.woocommerce table.form-table fieldset img.help_tip{margin:-3px 0 0 5px}.woocommerce table.form-table .color_box{border:1px solid #ccc;box-shadow:1px 1px 3px rgba(0,0,0,0.2);-webkit-box-shadow:1px 1px 3px rgba(0,0,0,0.2);-moz-box-shadow:1px 1px 3px rgba(0,0,0,0.2);-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;padding:4px 6px;float:left;width:80px;margin:0 10px 0 0}.woocommerce table.form-table .color_box strong{text-align:left;display:block;padding:0 0 2px;font-size:.92em}.woocommerce table.form-table .color_box strong img{float:right;margin:1px 0 0 0}.woocommerce table.form-table .color_box input{width:100%;margin:0;font-family:monospace;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.woocommerce table.form-table .color_box .colorpickdiv{z-index:100;background:#eee;border:1px solid #ccc;position:absolute;display:none}.woocommerce table.form-table .color_box_clear{display:block;clear:both;padding-bottom:10px}.woocommerce #tabs-wrap table a.remove{margin-left:4px}.woocommerce #tabs-wrap table p{margin:0 0 4px!important;overflow:hidden;zoom:1}.woocommerce #tabs-wrap table p a.add{float:left}#product_variation-parent #parent_id{width:100%}#woocommerce-product-data ul.product_data_tabs,.woocommerce ul.tabs{background:#eaeaea;padding:3px 9px 0;margin:0;overflow:hidden;zoom:1;line-height:1em;-webkit-box-shadow:inset 0 -1px 0 0 #d5d5d5;-moz-box-shadow:inset 0 -1px 0 0 x #d5d5d5;box-shadow:inset 0 -1px 0 0 #d5d5d5}#woocommerce-product-data ul.product_data_tabs li,.woocommerce ul.tabs li{float:left;padding:0;margin:0 5px 0 0}#woocommerce-product-data ul.product_data_tabs li a,.woocommerce ul.tabs li a{padding:0;margin:0;border:0;border:1px solid #d5d5d5;border-bottom:0;float:left;padding:9px 9px;background:#ececec;text-decoration:none;color:#555;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:3px;border-top-left-radius:3px;border-top-right-radius:3px;-webkit-box-shadow:inset 0 1px 0 1px rgba(255,255,255,0.5);-moz-box-shadow:inset 0 1px 0 1px rgba(255,255,255,0.5);box-shadow:inset 0 1px 0 1px rgba(255,255,255,0.5)}#woocommerce-product-data ul.product_data_tabs li.active a,.woocommerce ul.tabs li.active a{background:#f8f8f8;color:#555;background-image:linear-gradient(bottom,#fff 0,#f8f8f8 100%);background-image:-o-linear-gradient(bottom,#fff 0,#f8f8f8 100%);background-image:-moz-linear-gradient(bottom,#fff 0,#f8f8f8 100%);background-image:-webkit-linear-gradient(bottom,#fff 0,#f8f8f8 100%);background-image:-ms-linear-gradient(bottom,#fff 0,#f8f8f8 100%);background-image:-webkit-gradient(linear,left bottom,left top,color-stop(0,#fff),color-stop(1,#f8f8f8))}#woocommerce-product-data ul.product_data_tabs li.general_options a,#woocommerce-product-data ul.product_data_tabs li.tax_options a,#woocommerce-product-data ul.product_data_tabs li.inventory_options a,#woocommerce-product-data ul.product_data_tabs li.related_product_options a,#woocommerce-product-data ul.product_data_tabs li.attribute_options a,#woocommerce-product-data ul.product_data_tabs li.grouping_options a,#woocommerce-product-data ul.product_data_tabs li.variation_options a{padding:9px 9px 9px 34px;line-height:16px;border-bottom:1px solid #d5d5d5;text-shadow:0 1px 1px #fff;color:#555;background:#ececec url(../images/icons/wc-tab-icons.png) no-repeat 9px 9px}#woocommerce-product-data ul.product_data_tabs li.general_options a{background-position:9px 9px}#woocommerce-product-data ul.product_data_tabs li.tax_options a{background-position:9px -51px}#woocommerce-product-data ul.product_data_tabs li.inventory_options a{background-position:9px -111px}#woocommerce-product-data ul.product_data_tabs li.related_product_options a{background-position:9px -171px}#woocommerce-product-data ul.product_data_tabs li.attribute_options a{background-position:9px -231px}#woocommerce-product-data ul.product_data_tabs li.grouping_options a{background-position:9px -291px}#woocommerce-product-data ul.product_data_tabs li.variation_options a{background-position:9px -411px}#woocommerce-product-data ul.product_data_tabs li.active a{background-color:#f8f8f8;border-bottom:1px solid #f8f8f8}#woocommerce-product-data .inside,#woocommerce-product-type-options .inside,#woocommerce-order-data .inside,#woocommerce-product-type .inside,#woocommerce-order-downloads .inside,#woocommerce-coupon-data .inside{padding:0;margin:0}.woocommerce_options_panel,.panel{padding:9px 9px 9px 9px;color:#555}.woocommerce_page_settings .woocommerce_options_panel,.panel,#woocommerce-product-type .woocommerce_options_panel{padding:0}#woocommerce-product-type-options .panel,#woocommerce-product-specs .inside{padding:9px;margin:0}.woocommerce_options_panel p,#woocommerce-product-type-options .panel p{margin:0 0 9px;font-size:12px;padding:5px 9px;line-height:24px}.woocommerce_options_panel p:after,#woocommerce-product-type-options .panel p:after{content:".";display:block;height:0;clear:both;visibility:hidden}.woocommerce_options_panel p{margin:9px 0 9px}.woocommerce_options_panel label{float:left;width:150px;padding:0}.woocommerce_options_panel label .req{font-weight:bold;font-style:normal;color:red}.woocommerce_options_panel .description{padding:0;margin:0 0 0 7px}.woocommerce_options_panel .description-block{margin-left:0;display:block}.woocommerce_options_panel textarea,.woocommerce_options_panel input,.woocommerce_options_panel select{margin:0}.woocommerce_options_panel textarea{vertical-align:top;height:3.5em;line-height:1.5em}.woocommerce_options_panel input{width:50%;float:left}.woocommerce_options_panel input.button{width:auto;margin-left:8px}.woocommerce_options_panel .checkbox,table.woocommerce_variable_attributes .checkbox{vertical-align:middle;margin:7px 0;width:auto}.woocommerce_options_panel select{float:left}.woocommerce_options_panel .short{width:20%}.woocommerce_options_panel .sized{width:auto!important;margin-right:6px}.woocommerce_options_panel .options_group{border-top:1px solid white;border-bottom:1px solid #dfdfdf}.woocommerce_options_panel .options_group:first-child{border-top:0}#woocommerce-product-data input.dp-applied{float:left}#grouped_product_options,#virtual_product_options,#simple_product_options{padding:12px;font-style:italic;color:#666}.wc-metaboxes-wrapper .expand_all,.wc-metaboxes-wrapper .close_all{float:right;margin-left:9px;line-height:22px}.wc-metaboxes-wrapper .expand_all{padding-left:14px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAI0lEQVQYV2PcvXv3fwY8gJEoBa6urozYDAFpBpswGBTg8yYA3kYtiYVhDhIAAAAASUVORK5CYII=) no-repeat left}.wc-metaboxes-wrapper .close_all{padding-left:14px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAHUlEQVQYV2NkIAAYd+/e/R+fGsIKCFpBUAHt3QAASf0MyQbFJwoAAAAASUVORK5CYII=) no-repeat left}.wc-metaboxes-wrapper .toolbar{margin:0!important;border-top:1px solid white;border-bottom:1px solid #dfdfdf;padding:9px 12px!important}.wc-metaboxes-wrapper p.toolbar{overflow:hidden;zoom:1}.wc-metaboxes-wrapper select.attribute_taxonomy,.wc-metaboxes-wrapper button.add_attribute,.wc-metaboxes-wrapper button.add_variable_attribute,.wc-metaboxes-wrapper .fr{float:right;margin:0 0 0 6px}.wc-metaboxes-wrapper .wc-metaboxes{border-bottom:1px solid #dfdfdf;padding:0 12px 0}.wc-metaboxes-wrapper .wc-metabox-sortable-placeholder{border-color:#bbb;background-color:#f5f5f5;margin-bottom:9px;border-width:1px;border-style:dashed}.wc-metaboxes-wrapper .wc-metabox{background:#ececec;border:1px solid #ececec;margin:9px 0!important;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:3px;border-top-left-radius:3px;border-top-right-radius:3px}.wc-metaboxes-wrapper .wc-metabox.closed{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.wc-metaboxes-wrapper .wc-metabox h3{margin:0!important;padding:6px!important;font-size:1em!important;overflow:hidden;zoom:1;cursor:move}.wc-metaboxes-wrapper .wc-metabox h3 button{float:right}.wc-metaboxes-wrapper .wc-metabox h3 strong{font-weight:normal;line-height:24px}.wc-metaboxes-wrapper .wc-metabox h3 select{font-family:sans-serif}.wc-metaboxes-wrapper .wc-metabox h3 .handlediv{background-position:6px 5px!important;display:none;height:24px}.wc-metaboxes-wrapper .wc-metabox h3.fixed{cursor:pointer!important}.wc-metaboxes-wrapper .wc-metabox:hover h3 .handlediv{display:block}.wc-metaboxes-wrapper .wc-metabox table{width:100%;position:relative;background:#fff;padding:3px}.wc-metaboxes-wrapper .wc-metabox table td{text-align:left;padding:6px 6px;vertical-align:top;border:0}.wc-metaboxes-wrapper .wc-metabox table td label{text-align:left;display:block;line-height:21px}.wc-metaboxes-wrapper .wc-metabox table td input{float:left;min-width:200px}.wc-metaboxes-wrapper .wc-metabox table td input,.wc-metaboxes-wrapper .wc-metabox table td textarea{width:100%;margin:0;display:block;font-size:14px;padding:4px;color:#555}.wc-metaboxes-wrapper .wc-metabox table td select,.wc-metaboxes-wrapper .wc-metabox table td .chzn-container{width:100%!important}.wc-metaboxes-wrapper .wc-metabox table td input.short{width:200px}.wc-metaboxes-wrapper .wc-metabox table td input.checkbox{width:auto;min-width:inherit;vertical-align:middle;display:inline;float:none}.wc-metaboxes-wrapper .wc-metabox table td.attribute_name{width:200px}.wc-metaboxes-wrapper .wc-metabox table .plus,.wc-metaboxes-wrapper .wc-metabox table .minus{margin-top:6px}.wc-metaboxes-wrapper .wc-metabox table .fl{float:left}.wc-metaboxes-wrapper .wc-metabox table .fr{float:right}.wc-metaboxes-wrapper .plus{padding-left:20px;background:#fefefe url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAARklEQVQYGWP8//8/AzGACV3Rnj17/oMwujiGQnQFMD7RChlBbsRmFcwkEO3i4sJImonIumGmg0xBFifaRKIVgj2DbAUuNgCfThpracSKqwAAAABJRU5ErkJggg==) no-repeat 7px 5px}.wc-metaboxes-wrapper .minus{padding-left:20px;background:#fefefe url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAKUlEQVQYlWP8//8/Az7AhFeWGAUsDAwMDHv27MFqj4uLCyNBExhp70gAohwKC5KJ+HQAAAAASUVORK5CYII=) no-repeat 7px 6px}#variable_product_options p.toolbar strong{margin:0 6px 0 0;float:left;line-height:23px}#variable_product_options p.toolbar .button,#variable_product_options p.toolbar select{margin:0 6px 0 0;float:left}#variable_product_options p.toolbar a.set{padding-left:20px;background:#fefefe url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAARklEQVQYGWP8//8/AzGACV3Rnj17/oMwujiGQnQFMD7RChlBbsRmFcwkEO3i4sJImonIumGmg0xBFifaRKIVgj2DbAUuNgCfThpracSKqwAAAABJRU5ErkJggg==) no-repeat 7px 5px}#variable_product_options p.toolbar a.toggle{padding-left:20px;background:#fefefe url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAWUlEQVQYGY3QAQrAIAgFUB07mrfWu7kc+2JRsiA0fJnE7k5m5tQsEWFS1WGduh3mahpNLx3hOs4WAr2zfU8mRBGxorAJ4wAU+boS1g41x4UbScQdQJ3/fvgDtStDiI0qoDcAAAAASUVORK5CYII=) no-repeat 7px 5px}#variable_product_options p.toolbar a.delete_variations{padding-left:20px;background:#fefefe url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAKUlEQVQYlWP8//8/Az7AhFeWGAUsDAwMDHv27MFqj4uLCyNBExhp70gAohwKC5KJ+HQAAAAASUVORK5CYII=) no-repeat 7px 6px}#variable_product_options p.toolbar .add_variation,#variable_product_options p.toolbar .link_all_variations,#variable_product_options p.toolbar .fr{float:right;margin:0 0 0 6px}#variable_product_options .woocommerce_variation table{background:#f5f5f5;padding:6px}#variable_product_options .woocommerce_variation table td input{min-width:inherit!important}#variable_product_options .woocommerce_variation table td.dimensions_field input{width:32%;margin-right:2%}#variable_product_options .woocommerce_variation table td.dimensions_field .last{margin-right:0}#variable_product_options .woocommerce_variation table td.options{width:150px}#variable_product_options .woocommerce_variation table td.options label{margin-bottom:6px}#variable_product_options .woocommerce_variation table td.data{padding:0 0 0 12px}#variable_product_options .woocommerce_variation table td.data table{width:100%;padding:0 12px 0 12px;background:#fff;border:1px solid #dfdfdf;-moz-border-radius:3px;-webkit-border-radius:3px;-khtml-border-radius:3px;border-radius:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#variable_product_options .woocommerce_variation table td.data table td{width:50%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#variable_product_options .woocommerce_variation table td.data table:before{content:"";display:block;position:absolute;top:33px;left:0;margin:0 0 0 -1px;border:7px solid #dfdfdf;border-color:transparent transparent transparent #dfdfdf}#variable_product_options .woocommerce_variation table td.data table:after{content:"";display:block;position:absolute;top:34px;left:0;margin:0 0 0 -1px;border:6px solid #f5f5f5;border-color:transparent transparent transparent #f5f5f5}#variable_product_options .woocommerce_variation table td.upload_image{white-space:nowrap;width:75px}#variable_product_options .woocommerce_variation table td.upload_image img{float:none;width:73px;border:1px solid #dfdfdf}#variable_product_options .woocommerce_variation table td.upload_image .button{margin:0;padding:4px 10px;width:auto;float:none;vertical-align:middle}#variable_product_options .woocommerce_variation table td.upload_image .upload_image_button{display:block;position:relative}#variable_product_options .woocommerce_variation table td.upload_image .upload_image_button .overlay{display:none;width:75px;height:75px;position:absolute;top:0;left:0;margin:0;padding:0;opacity:.5;background:#eee url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAXklEQVQYGW2OUQrAMAhDFy8+dnKnwiuh2I+aJulDZebDkfSie1b28Q7EXWrfvSm60RQnkQUC8ja7owpmL6d4GdDZ0cNNHyIhZEj4QYCxze6orsluAh8AnR0xKPR07weXJi8JGd3qqwAAAABJRU5ErkJggg==) no-repeat center center}#variable_product_options .woocommerce_variation table td.upload_image .upload_image_button:hover .overlay{display:block}#variable_product_options .woocommerce_variation table td.upload_image .upload_image_button.remove .overlay{background:#eee url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAWElEQVQYGY2OUQ6AMAxCZdm9jSev65K3YKNm+6EFBlVEHDxJJ3Pi0C72xlBNyTs3jU7wEUTTIB51GCp2CL8HLpHEdaOLb/N2dfuq9NT0zOo/M9q6EaImsd/uViMLVuD4KAAAAABJRU5ErkJggg==) no-repeat center center}#variable_product_options .woocommerce_variation table td .file_path_field{position:relative;padding-right:40px}#variable_product_options .woocommerce_variation table td .file_path_field .upload_file_button{position:absolute;right:0;width:30px;padding:5px 0;margin:1px 0 0;text-align:center}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0 0}#tiptip_holder{display:none;position:absolute;top:0;left:0;z-index:99999}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_left{padding-right:5px}#tiptip_content{font-size:11px;color:#fff;padding:4px 8px;background:#a2678c;border-radius:3px;-webkit-border-radius:3px;-moz-border-radius:3px;box-shadow:1px 1px 3px rgba(0,0,0,0.1);-webkit-box-shadow:1px 1px 3px rgba(0,0,0,0.1);-moz-box-shadow:1px 1px 3px rgba(0,0,0,0.1)}#tiptip_content code{background:#855c76;padding:1px}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#a2678c}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#a2678c}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#a2678c}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#a2678c}img.ui-datepicker-trigger{vertical-align:middle;margin-top:-1px;cursor:pointer}.woocommerce_options_panel img.ui-datepicker-trigger,.wc-metabox-content img.ui-datepicker-trigger{float:left;margin-right:8px;margin-top:4px;margin-left:4px}#ui-datepicker-div{display:none}.woocommerce-reports-wrap{margin-left:300px;padding-top:18px}.woocommerce-reports-wrap.halved{margin:0;overflow:hidden;zoom:1}.woocommerce-reports-wrap .postbox h3{cursor:default!important}.woocommerce-reports-wrap .postbox .stat{font-size:1.5em!important;font-weight:bold;text-align:center}.woocommerce-reports-wrap .postbox .chart{padding:16px}.woocommerce-reports-wrap .woocommerce-reports-main{float:left;min-width:100%}.woocommerce-reports-wrap .woocommerce-reports-sidebar{display:inline;width:281px;margin-left:-300px;clear:both;float:left}.woocommerce-reports-wrap .woocommerce-reports-left{width:49.5%;float:left}.woocommerce-reports-wrap .woocommerce-reports-right{width:49.5%;float:right}#tooltip{color:#fff;font-size:12px;-moz-border-radius:4px;-webkit-border-radius:4px;-o-border-radius:4px;-khtml-border-radius:4px;border-radius:4px;opacity:.80}table.bar_chart{width:100%}table.bar_chart thead th{text-align:left;color:#ccc;padding:6px 0}table.bar_chart tbody th{padding:6px 0;width:25%;text-align:left!important;font-weight:normal!important;border-bottom:1px solid #fee}table.bar_chart tbody td{text-align:right;line-height:24px;padding:6px 6px 6px 0;border-bottom:1px solid #fee}table.bar_chart tbody td span{color:#8a4b75;display:block}table.bar_chart tbody td span.alt{color:#47a03e;margin-top:6px}table.bar_chart tbody td.bars{position:relative;text-align:left;padding:6px 6px 6px 0;border-bottom:1px solid #fee}table.bar_chart tbody td.bars span,table.bar_chart tbody td.bars a{text-decoration:none;clear:both;background:#8a4b75;float:left;display:block;line-height:24px;height:24px;-moz-border-radius:3px;-webkit-border-radius:3px;-o-border-radius:3px;-khtml-border-radius:3px;border-radius:3px}table.bar_chart tbody td.bars span.alt{clear:both;background:#47a03e}table.bar_chart tbody td.bars span.alt span{margin:0;color:#c5dec2!important;text-shadow:0 1px 0 #47a03e;background:transparent}#woocommerce_allowed_countries_chzn .chzn-search,#woocommerce_file_download_method_chzn .chzn-search{display:none}.chzn-container-single .chzn-single{height:24px;line-height:25px}.chzn-container-single .chzn-single div b{background:url('../images/chosen-sprite.png') no-repeat 0 0!important}.chzn-container-active .chzn-single-with-drop div b{background-position:-18px 1px!important}.chzn-container-single .chzn-search input{line-height:13px;width:100%!important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.chzn-container .chzn-drop{width:100%!important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.chzn-container-multi .chzn-choices .search-field input{height:21px!important}.woocommerce_options_panel .chzn-container-multi{width:50%!important;float:left}.woocommerce_options_panel .chzn-container-multi .search-field{min-width:50%}.woocommerce_options_panel .chzn-container-multi .search-field input{min-width:100%}.woocommerce-checkout .form-row .chzn-container{width:100%!important}.woocommerce-checkout .form-row .chzn-container-single .chzn-single{height:28px;line-height:29px}.woocommerce-checkout .form-row .chzn-container-single .chzn-single div b{background:url('../images/chosen-sprite.png') no-repeat 0 3px!important}.woocommerce-checkout .form-row .chzn-container-active .chzn-single-with-drop div b{background-position:-18px 4px!important}.woocommerce-checkout .form-row .chzn-container-single .chzn-search input{line-height:13px;width:100%!important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.woocommerce-checkout .form-row .chzn-container .chzn-drop{width:100%!important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.chzn-container{font-size:13px;position:relative;display:inline-block;zoom:1;*display:inline}.chzn-container .chzn-drop{background:#fff;border:1px solid #aaa;border-top:0;position:absolute;top:29px;left:0;-webkit-box-shadow:0 4px 5px rgba(0,0,0,0.15);-moz-box-shadow:0 4px 5px rgba(0,0,0,0.15);-o-box-shadow:0 4px 5px rgba(0,0,0,0.15);box-shadow:0 4px 5px rgba(0,0,0,0.15);z-index:999}.chzn-container-single .chzn-single{background-color:#fff;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ffffff',endColorstr='#eeeeee',GradientType=0);background-image:-webkit-gradient(linear,0% 0,0% 100%,color-stop(20%,#fff),color-stop(50%,#f6f6f6),color-stop(52%,#eee),color-stop(100%,#f4f4f4));background-image:-webkit-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-image:-moz-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-image:-o-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-image:-ms-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-image:linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #aaa;-webkit-box-shadow:0 0 3px #fff inset,0 1px 1px rgba(0,0,0,0.1);-moz-box-shadow:0 0 3px #fff inset,0 1px 1px rgba(0,0,0,0.1);box-shadow:0 0 3px #fff inset,0 1px 1px rgba(0,0,0,0.1);display:block;overflow:hidden;white-space:nowrap;position:relative;padding:0 0 0 8px;color:#444;text-decoration:none}.chzn-container-single .chzn-default{color:#999}.chzn-container-single .chzn-single span{margin-right:26px;display:block;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;-ms-text-overflow:ellipsis;text-overflow:ellipsis}.chzn-container-single .chzn-single abbr{display:block;position:absolute;right:26px;top:6px;width:12px;height:13px;font-size:1px;background:url('../images/chosen-sprite.png') right top no-repeat}.chzn-container-single .chzn-single abbr:hover{background-position:right -11px}.chzn-container-single .chzn-single div{position:absolute;right:0;top:0;display:block;height:100%;width:18px}.chzn-container-single .chzn-single div b{background:url('../images/chosen-sprite.png') no-repeat 0 0;display:block;width:100%;height:100%}.chzn-container-single .chzn-search{padding:3px 4px;position:relative;margin:0;white-space:nowrap;z-index:1010}.chzn-container-single .chzn-search input{background:#fff url('../images/chosen-sprite.png') no-repeat 100% -22px;background:url('../images/chosen-sprite.png') no-repeat 100% -22px,-webkit-gradient(linear,0% 0,0% 100%,color-stop(1%,#eee),color-stop(15%,#fff));background:url('../images/chosen-sprite.png') no-repeat 100% -22px,-webkit-linear-gradient(top,#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat 100% -22px,-moz-linear-gradient(top,#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat 100% -22px,-o-linear-gradient(top,#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat 100% -22px,-ms-linear-gradient(top,#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat 100% -22px,linear-gradient(top,#eee 1%,#fff 15%);margin:1px 0;padding:4px 20px 4px 5px;outline:0;border:1px solid #aaa;font-family:sans-serif;font-size:1em}.chzn-container-single .chzn-drop{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.chzn-container-single-nosearch .chzn-search input{position:absolute;left:-9000px}.chzn-container-multi .chzn-choices{background-color:#fff;background-image:-webkit-gradient(linear,0% 0,0% 100%,color-stop(1%,#eee),color-stop(15%,#fff));background-image:-webkit-linear-gradient(top,#eee 1%,#fff 15%);background-image:-moz-linear-gradient(top,#eee 1%,#fff 15%);background-image:-o-linear-gradient(top,#eee 1%,#fff 15%);background-image:-ms-linear-gradient(top,#eee 1%,#fff 15%);background-image:linear-gradient(top,#eee 1%,#fff 15%);border:1px solid #aaa;margin:0;padding:0;cursor:text;overflow:hidden;height:auto!important;height:1%;position:relative}.chzn-container-multi .chzn-choices li{float:left;list-style:none}.chzn-container-multi .chzn-choices .search-field{white-space:nowrap;margin:0;padding:0}.chzn-container-multi .chzn-choices .search-field input{color:#666;background:transparent!important;border:0!important;font-family:sans-serif;font-size:100%;height:15px;padding:5px;margin:1px 0;outline:0;-webkit-box-shadow:none;-moz-box-shadow:none;-o-box-shadow:none;box-shadow:none}.chzn-container-multi .chzn-choices .search-field .default{color:#999}.chzn-container-multi .chzn-choices .search-choice{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;background-color:#e4e4e4;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#f4f4f4',endColorstr='#eeeeee',GradientType=0);background-image:-webkit-gradient(linear,0% 0,0% 100%,color-stop(20%,#f4f4f4),color-stop(50%,#f0f0f0),color-stop(52%,#e8e8e8),color-stop(100%,#eee));background-image:-webkit-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-moz-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-o-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-ms-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);-webkit-box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,0.05);-moz-box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,0.05);box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,0.05);color:#333;border:1px solid #aaa;line-height:13px;padding:3px 20px 3px 5px;margin:3px 0 3px 5px;position:relative;cursor:default}.chzn-container-multi .chzn-choices .search-choice-focus{background:#d4d4d4}.chzn-container-multi .chzn-choices .search-choice .search-choice-close{display:block;position:absolute;right:3px;top:4px;width:12px;height:13px;font-size:1px;background:url('../images/chosen-sprite.png') right top no-repeat}.chzn-container-multi .chzn-choices .search-choice .search-choice-close:hover{background-position:right -11px}.chzn-container-multi .chzn-choices .search-choice-focus .search-choice-close{background-position:right -11px}.chzn-container .chzn-results{margin:0 4px 4px 0;max-height:240px;padding:0 0 0 4px;position:relative;overflow-x:hidden;overflow-y:auto}.chzn-container-multi .chzn-results{margin:-1px 0 0;padding:0}.chzn-container .chzn-results li{display:none;line-height:15px;padding:5px 6px;margin:0;list-style:none}.chzn-container .chzn-results .active-result{cursor:pointer;display:list-item}.chzn-container .chzn-results .highlighted{background-color:#3875d7;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#3875d7',endColorstr='#2a62bc',GradientType=0);background-image:-webkit-gradient(linear,0% 0,0% 100%,color-stop(20%,#3875d7),color-stop(90%,#2a62bc));background-image:-webkit-linear-gradient(top,#3875d7 20%,#2a62bc 90%);background-image:-moz-linear-gradient(top,#3875d7 20%,#2a62bc 90%);background-image:-o-linear-gradient(top,#3875d7 20%,#2a62bc 90%);background-image:-ms-linear-gradient(top,#3875d7 20%,#2a62bc 90%);background-image:linear-gradient(top,#3875d7 20%,#2a62bc 90%);color:#fff}.chzn-container .chzn-results li em{background:#feffde;font-style:normal}.chzn-container .chzn-results .highlighted em{background:transparent}.chzn-container .chzn-results .no-results{background:#f4f4f4;display:list-item}.chzn-container .chzn-results .group-result{cursor:default;color:#999;font-weight:bold}.chzn-container .chzn-results .group-option{padding-left:15px}.chzn-container-multi .chzn-drop .result-selected{display:none}.chzn-container .chzn-results-scroll{background:white;margin:0 4px;position:absolute;text-align:center;width:321px;z-index:1}.chzn-container .chzn-results-scroll span{display:inline-block;height:17px;text-indent:-5000px;width:9px}.chzn-container .chzn-results-scroll-down{bottom:0}.chzn-container .chzn-results-scroll-down span{background:url('../images/chosen-sprite.png') no-repeat -4px -3px}.chzn-container .chzn-results-scroll-up span{background:url('../images/chosen-sprite.png') no-repeat -22px -3px}.chzn-container-active .chzn-single{-webkit-box-shadow:0 0 5px rgba(0,0,0,0.3);-moz-box-shadow:0 0 5px rgba(0,0,0,0.3);-o-box-shadow:0 0 5px rgba(0,0,0,0.3);box-shadow:0 0 5px rgba(0,0,0,0.3);border:1px solid #5897fb}.chzn-container-active .chzn-single-with-drop{border:1px solid #aaa;-webkit-box-shadow:0 1px 0 #fff inset;-moz-box-shadow:0 1px 0 #fff inset;-o-box-shadow:0 1px 0 #fff inset;box-shadow:0 1px 0 #fff inset;background-color:#eee;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#eeeeee',endColorstr='#ffffff',GradientType=0);background-image:-webkit-gradient(linear,0% 0,0% 100%,color-stop(20%,#eee),color-stop(80%,#fff));background-image:-webkit-linear-gradient(top,#eee 20%,#fff 80%);background-image:-moz-linear-gradient(top,#eee 20%,#fff 80%);background-image:-o-linear-gradient(top,#eee 20%,#fff 80%);background-image:-ms-linear-gradient(top,#eee 20%,#fff 80%);background-image:linear-gradient(top,#eee 20%,#fff 80%);-webkit-border-bottom-left-radius:0;-webkit-border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-moz-border-radius-bottomright:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.chzn-container-active .chzn-single-with-drop div{background:transparent;border-left:none}.chzn-container-active .chzn-single-with-drop div b{background-position:-18px 1px}.chzn-container-active .chzn-choices{-webkit-box-shadow:0 0 5px rgba(0,0,0,0.3);-moz-box-shadow:0 0 5px rgba(0,0,0,0.3);-o-box-shadow:0 0 5px rgba(0,0,0,0.3);box-shadow:0 0 5px rgba(0,0,0,0.3);border:1px solid #5897fb}.chzn-container-active .chzn-choices .search-field input{color:#111!important}.chzn-disabled{cursor:default;opacity:.5!important}.chzn-disabled .chzn-single{cursor:default}.chzn-disabled .chzn-choices .search-choice .search-choice-close{cursor:default}.chzn-rtl{text-align:right}.chzn-rtl .chzn-single{padding:0 8px 0 0;overflow:visible}.chzn-rtl .chzn-single span{margin-left:26px;margin-right:0;direction:rtl}.chzn-rtl .chzn-single div{left:3px;right:auto}.chzn-rtl .chzn-single abbr{left:26px;right:auto}.chzn-rtl .chzn-choices .search-field input{direction:rtl}.chzn-rtl .chzn-choices li{float:right}.chzn-rtl .chzn-choices .search-choice{padding:3px 5px 3px 19px;margin:3px 5px 3px 0}.chzn-rtl .chzn-choices .search-choice .search-choice-close{left:4px;right:auto;background-position:right top}.chzn-rtl.chzn-container-single .chzn-results{margin:0 0 4px 4px;padding:0 4px 0 0}.chzn-rtl .chzn-results .group-option{padding-left:0;padding-right:15px}.chzn-rtl.chzn-container-active .chzn-single-with-drop div{border-right:0}.chzn-rtl .chzn-search input{background:#fff url('../images/chosen-sprite.png') no-repeat -38px -22px;background:url('../images/chosen-sprite.png') no-repeat -38px -22px,-webkit-gradient(linear,0% 0,0% 100%,color-stop(1%,#eee),color-stop(15%,#fff));background:url('../images/chosen-sprite.png') no-repeat -38px -22px,-webkit-linear-gradient(top,#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat -38px -22px,-moz-linear-gradient(top,#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat -38px -22px,-o-linear-gradient(top,#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat -38px -22px,-ms-linear-gradient(top,#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat -38px -22px,linear-gradient(top,#eee 1%,#fff 15%);padding:4px 5px 4px 20px;direction:rtl} \ No newline at end of file diff --git a/assets/css/admin.less b/assets/css/admin.less index 02f387db4fb..f962a3b7daa 100644 --- a/assets/css/admin.less +++ b/assets/css/admin.less @@ -160,12 +160,6 @@ input.wc-error { background-color: #FFBABA; } -span.mce_woocommerce_shortcodes_button { - background-image: url(../images/icons/wc_icon.png) !important; - background-repeat: no-repeat !important; - background-position: center !important; -} - /* Status page */ table.wc_status_table { th { diff --git a/assets/css/menu.css b/assets/css/menu.css index b6d9d3af5a8..ab67f51429e 100644 --- a/assets/css/menu.css +++ b/assets/css/menu.css @@ -10,3 +10,4 @@ #adminmenu #toplevel_page_woocommerce div.wp-menu-image{background:transparent url(../images/icons/menu_icons.png) no-repeat 0px -32px;} #adminmenu #toplevel_page_woocommerce.wp-menu-open div.wp-menu-image,#adminmenu #toplevel_page_woocommerce:hover div.wp-menu-image{background-position:0px 0px;} #adminmenu #toplevel_page_woocommerce img{display:none;} +span.mce_woocommerce_shortcodes_button{background-image:url(../images/icons/wc_icon.png)!important;background-repeat:no-repeat!important;background-position:center!important;} \ No newline at end of file diff --git a/assets/css/menu.less b/assets/css/menu.less index a1a684fba0e..7560a037352 100644 --- a/assets/css/menu.less +++ b/assets/css/menu.less @@ -44,4 +44,11 @@ display: none; } } +} + +/* Editor button */ +span.mce_woocommerce_shortcodes_button { + background-image: url(../images/icons/wc_icon.png) !important; + background-repeat: no-repeat !important; + background-position: center !important; } \ No newline at end of file From 6fe3b788d90e0e5f1978c232df2aff466fedd5bc Mon Sep 17 00:00:00 2001 From: Coen Jacobs Date: Thu, 17 May 2012 11:40:50 +0200 Subject: [PATCH 18/23] Added filter on get_available_payment_gateways. Closes #1050 --- classes/gateways/class-wc-payment-gateways.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/gateways/class-wc-payment-gateways.php b/classes/gateways/class-wc-payment-gateways.php index b9d22053265..7b3ddd5d4cc 100644 --- a/classes/gateways/class-wc-payment-gateways.php +++ b/classes/gateways/class-wc-payment-gateways.php @@ -68,7 +68,7 @@ class WC_Payment_Gateways { endforeach; - return $_available_gateways; + return apply_filters( 'woocommerce_available_payment_gateways', $_available_gateways ); } function process_admin_options() { From 0bd3d5cbb8f6dcb4776144ade00f7ad8faf2425f Mon Sep 17 00:00:00 2001 From: Coen Jacobs Date: Thu, 17 May 2012 13:37:44 +0200 Subject: [PATCH 19/23] Prevent error in ecommerce tracking if no categories set --- .../google-analytics/class-wc-google-analytics.php | 6 ++++-- readme.txt | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/classes/integrations/google-analytics/class-wc-google-analytics.php b/classes/integrations/google-analytics/class-wc-google-analytics.php index eb195b5e0f7..091394b11ea 100644 --- a/classes/integrations/google-analytics/class-wc-google-analytics.php +++ b/classes/integrations/google-analytics/class-wc-google-analytics.php @@ -172,8 +172,10 @@ class WC_Google_Analytics extends WC_Integration { } else { $out = array(); $categories = get_the_terms($_product->id, 'product_cat'); - foreach ( $categories as $category ){ - $out[] = $category->name; + if ( $categories ) { + foreach ( $categories as $category ){ + $out[] = $category->name; + } } echo join( "/", $out); } diff --git a/readme.txt b/readme.txt index b02bd1389b2..90d0ff817cd 100644 --- a/readme.txt +++ b/readme.txt @@ -161,6 +161,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc * Fix - Google Analytics options fix * Fix - % discount rounding * Fix - get_stock_quantity returns '' if stock management is off in global settings +* Fix - Prevent error in ecommerce tracking if no categories set = 1.5.5 - 10/05/2012 = * Feature - New 'default' sorting order using menu_order, with drag and drop sorting (based on http://wordpress.org/extend/plugins/simple-page-ordering/) From 0b5fcd513956b98419d9e6404f1af9071ed0228a Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 17 May 2012 12:58:17 +0100 Subject: [PATCH 20/23] version bump and installer cleanup --- admin/woocommerce-admin-install.php | 158 ++++++++++++---------------- assets/css/menu.css | 60 ++++++++--- readme.txt | 5 +- woocommerce.php | 4 +- 4 files changed, 120 insertions(+), 107 deletions(-) diff --git a/admin/woocommerce-admin-install.php b/admin/woocommerce-admin-install.php index 1492d7555b3..c9e67309128 100644 --- a/admin/woocommerce-admin-install.php +++ b/admin/woocommerce-admin-install.php @@ -18,7 +18,6 @@ function do_install_woocommerce() { // Do install woocommerce_default_options(); woocommerce_tables_install(); - woocommerce_install_custom_fields(); // Register post types $woocommerce->init_taxonomy(); @@ -27,23 +26,25 @@ function do_install_woocommerce() { woocommerce_default_taxonomies(); // Install folder for uploading files and prevent hotlinking - $upload_dir = wp_upload_dir(); - $downloads_url = $upload_dir['basedir'] . '/woocommerce_uploads'; - if ( wp_mkdir_p($downloads_url) && !file_exists($downloads_url.'/.htaccess') ) : - if ($file_handle = @fopen( $downloads_url . '/.htaccess', 'w' )) : + $upload_dir = wp_upload_dir(); + $downloads_url = $upload_dir['basedir'] . '/woocommerce_uploads'; + + if ( wp_mkdir_p( $downloads_url ) && ! file_exists( $downloads_url.'/.htaccess' ) ) { + if ( $file_handle = @fopen( $downloads_url . '/.htaccess', 'w' ) ) { fwrite($file_handle, 'deny from all'); fclose($file_handle); - endif; - endif; + } + } // Install folder for logs - $logs_url = WP_PLUGIN_DIR . "/" . plugin_basename( dirname(dirname(__FILE__))) . '/logs'; - if ( wp_mkdir_p($logs_url) && !file_exists($logs_url.'/.htaccess') ) : - if ($file_handle = @fopen( $logs_url . '/.htaccess', 'w' )) : + $logs_url = WP_PLUGIN_DIR . "/" . plugin_basename( dirname(dirname(__FILE__))) . '/logs'; + + if ( wp_mkdir_p( $logs_url ) && ! file_exists( $logs_url . '/.htaccess' ) ) { + if ( $file_handle = @fopen( $logs_url . '/.htaccess', 'w' ) ) { fwrite($file_handle, 'deny from all'); fclose($file_handle); - endif; - endif; + } + } // Clear transient cache $woocommerce->clear_product_transients(); @@ -52,7 +53,7 @@ function do_install_woocommerce() { if ( get_option('woocommerce_frontend_css') == 'yes' ) { // Handle Colour Settings - $colors = get_option( 'woocommerce_frontend_css_colors' ); + $colors = get_option( 'woocommerce_frontend_css_colors' ); if ( ( ! empty( $colors['primary'] ) && @@ -79,24 +80,6 @@ function do_install_woocommerce() { update_option( "woocommerce_db_version", $woocommerce->version ); } -/** - * Add required post meta so queries work - */ -function woocommerce_install_custom_fields() { - - // Attachment exclusion - $args = array( - 'post_type' => 'attachment', - 'numberposts' => -1, - 'post_status' => null, - 'fields' => 'ids' - ); - $attachments = get_posts($args); - if ($attachments) foreach ($attachments as $id) : - update_post_meta($id, '_woocommerce_exclude_image', 0); - endforeach; -} - /** * Default options * @@ -108,30 +91,30 @@ function woocommerce_default_options() { // Include settings so that we can run through defaults include_once( 'woocommerce-admin-settings.php' ); - foreach ($woocommerce_settings as $section) : + foreach ($woocommerce_settings as $section) { - foreach ($section as $value) : + foreach ( $section as $value ) { - if (isset($value['std']) && isset($value['id'])) : + if ( isset( $value['std'] ) && isset( $value['id'] ) ) { - if ($value['type']=='image_width') : + if ( $value['type'] == 'image_width' ) { add_option($value['id'].'_width', $value['std']); add_option($value['id'].'_height', $value['std']); - else : + } else { add_option($value['id'], $value['std']); - endif; + } - endif; + } - endforeach; + } - endforeach; + } - add_option('woocommerce_shop_slug', 'shop'); + add_option( 'woocommerce_shop_slug', 'shop' ); } /** @@ -142,33 +125,29 @@ function woocommerce_create_page( $slug, $option, $page_title = '', $page_conten $option_value = get_option($option); - if ($option_value>0) : - if (get_post( $option_value )) : - // Page exists - return; - endif; - endif; + if ( $option_value > 0 && get_post( $option_value ) ) + return; $page_found = $wpdb->get_var("SELECT ID FROM " . $wpdb->posts . " WHERE post_name = '$slug' LIMIT 1;"); - if ($page_found) : - // Page exists - if (!$option_value) update_option($option, $page_found); + if ( $page_found ) : + if ( ! $option_value ) + update_option( $option, $page_found ); return; endif; $page_data = array( - 'post_status' => 'publish', - 'post_type' => 'page', - 'post_author' => 1, - 'post_name' => $slug, - 'post_title' => $page_title, - 'post_content' => $page_content, - 'post_parent' => $post_parent, - 'comment_status' => 'closed' + 'post_status' => 'publish', + 'post_type' => 'page', + 'post_author' => 1, + 'post_name' => $slug, + 'post_title' => $page_title, + 'post_content' => $page_content, + 'post_parent' => $post_parent, + 'comment_status' => 'closed' ); - $page_id = wp_insert_post($page_data); + $page_id = wp_insert_post( $page_data ); - update_option($option, $page_id); + update_option( $option, $page_id ); } /** @@ -221,7 +200,7 @@ function woocommerce_tables_install() { $wpdb->hide_errors(); $collate = ''; - if( $wpdb->supports_collation() ) { + if ( $wpdb->supports_collation() ) { if( ! empty($wpdb->charset ) ) $collate .= "DEFAULT CHARACTER SET $wpdb->charset"; if( ! empty($wpdb->collate ) ) $collate .= " COLLATE $wpdb->collate"; } @@ -277,13 +256,14 @@ CREATE TABLE ". $wpdb->prefix . "woocommerce_termmeta ( // Update woocommerce_downloadable_product_permissions table to include order ID's as well as keys $results = $wpdb->get_results( "SELECT * FROM ".$wpdb->prefix."woocommerce_downloadable_product_permissions WHERE order_id = 0;" ); - if ($results) foreach ($results as $result) : + if ( $results ) foreach ( $results as $result ) { - if (!$result->order_key) continue; + if ( ! $result->order_key ) + continue; - $order_id = $wpdb->get_var( $wpdb->prepare("SELECT post_id FROM ".$wpdb->postmeta." WHERE meta_key = '_order_key' AND meta_value = '%s' LIMIT 1;", $result->order_key) ); + $order_id = $wpdb->get_var( $wpdb->prepare( "SELECT post_id FROM {$wpdb->postmeta} WHERE meta_key = '_order_key' AND meta_value = '%s' LIMIT 1;", $result->order_key ) ); - if ($order_id) : + if ( $order_id ) { $wpdb->update( $wpdb->prefix . "woocommerce_downloadable_product_permissions", array( 'order_id' => $order_id, @@ -292,24 +272,22 @@ CREATE TABLE ". $wpdb->prefix . "woocommerce_termmeta ( 'order_key' => $result->order_key ), array( '%s' ), array( '%s', '%s' ) ); - endif; + } - endforeach; + } // Upgrade old meta keys for product data $meta = array('sku', 'downloadable', 'virtual', 'price', 'visibility', 'stock', 'stock_status', 'backorders', 'manage_stock', 'sale_price', 'regular_price', 'weight', 'length', 'width', 'height', 'tax_status', 'tax_class', 'upsell_ids', 'crosssell_ids', 'sale_price_dates_from', 'sale_price_dates_to', 'min_variation_price', 'max_variation_price', 'featured', 'product_attributes', 'file_path', 'download_limit', 'product_url', 'min_variation_price', 'max_variation_price'); $wpdb->query(" - UPDATE $wpdb->postmeta - LEFT JOIN $wpdb->posts ON ( $wpdb->postmeta.post_id = $wpdb->posts.ID ) - SET meta_key = CONCAT('_', meta_key) - WHERE meta_key IN ('". implode("', '", $meta) ."') - AND $wpdb->posts.post_type IN ('product', 'product_variation') + UPDATE {$wpdb->postmeta} + LEFT JOIN {$wpdb->posts} ON ( {$wpdb->postmeta}.post_id = {$wpdb->posts}.ID ) + SET meta_key = CONCAT( '_', meta_key ) + WHERE meta_key IN ( '" . implode( "', '", $meta ) . "' ) + AND {$wpdb->posts}.post_type IN ('product', 'product_variation') "); } - $wpdb->show_errors(); - } /** @@ -326,9 +304,9 @@ function woocommerce_default_taxonomies() { 'external' ); - foreach($product_types as $type) { - if (!get_term_by( 'slug', sanitize_title($type), 'product_type')) { - wp_insert_term($type, 'product_type'); + foreach ( $product_types as $type ) { + if ( ! get_term_by( 'slug', sanitize_title( $type ), 'product_type' ) ) { + wp_insert_term( $type, 'product_type' ); } } @@ -342,31 +320,31 @@ function woocommerce_default_taxonomies() { 'cancelled' ); - foreach($order_status as $status) { - if (!get_term_by( 'slug', sanitize_title($status), 'shop_order_status')) { - wp_insert_term($status, 'shop_order_status'); + foreach ( $order_status as $status ) { + if ( ! get_term_by( 'slug', sanitize_title($status), 'shop_order_status' ) ) { + wp_insert_term( $status, 'shop_order_status' ); } } // Upgrade from old downloadable/virtual product types - $downloadable_type = get_term_by('slug', 'downloadable', 'product_type'); - if ($downloadable_type) : + $downloadable_type = get_term_by( 'slug', 'downloadable', 'product_type' ); + if ( $downloadable_type ) { $products = get_objects_in_term( $downloadable_type->term_id, 'product_type' ); - foreach ($products as $product) : + foreach ( $products as $product ) { update_post_meta( $product, '_downloadable', 'yes' ); update_post_meta( $product, '_virtual', 'yes' ); wp_set_object_terms( $product, 'simple', 'product_type'); - endforeach; - endif; + } + } - $virtual_type = get_term_by('slug', 'virtual', 'product_type'); - if ($virtual_type) : + $virtual_type = get_term_by( 'slug', 'virtual', 'product_type' ); + if ( $virtual_type ) { $products = get_objects_in_term( $virtual_type->term_id, 'product_type' ); - foreach ($products as $product) : + foreach ( $products as $product ) { update_post_meta( $product, '_downloadable', 'no' ); update_post_meta( $product, '_virtual', 'yes' ); wp_set_object_terms( $product, 'simple', 'product_type'); - endforeach; - endif; + } + } } \ No newline at end of file diff --git a/assets/css/menu.css b/assets/css/menu.css index ab67f51429e..375c0d78913 100644 --- a/assets/css/menu.css +++ b/assets/css/menu.css @@ -1,13 +1,47 @@ -#adminmenu #menu-posts-product div.wp-menu-image{background:transparent url(../images/icons/menu_icons.png) no-repeat -32px -32px;} -#adminmenu #menu-posts-product.wp-menu-open div.wp-menu-image,#adminmenu #menu-posts-product:hover div.wp-menu-image{background-position:-32px 0px;} -#adminmenu #menu-posts-product img{display:none;} -#adminmenu #menu-posts-shop_order div.wp-menu-image{background:transparent url(../images/icons/menu_icons.png) no-repeat -64px -32px;} -#adminmenu #menu-posts-shop_order.wp-menu-open div.wp-menu-image,#adminmenu #menu-posts-shop_order:hover div.wp-menu-image{background-position:-64px 0px;} -#adminmenu #menu-posts-shop_order img{display:none;} -#adminmenu #menu-posts-shop_coupon div.wp-menu-image{background:transparent url(../images/icons/menu_icons.png) no-repeat -96px -32px;} -#adminmenu #menu-posts-shop_coupon.wp-menu-open div.wp-menu-image,#adminmenu #menu-posts-shop_coupon:hover div.wp-menu-image{background-position:-96px 0px;} -#adminmenu #menu-posts-shop_coupon img{display:none;} -#adminmenu #toplevel_page_woocommerce div.wp-menu-image{background:transparent url(../images/icons/menu_icons.png) no-repeat 0px -32px;} -#adminmenu #toplevel_page_woocommerce.wp-menu-open div.wp-menu-image,#adminmenu #toplevel_page_woocommerce:hover div.wp-menu-image{background-position:0px 0px;} -#adminmenu #toplevel_page_woocommerce img{display:none;} -span.mce_woocommerce_shortcodes_button{background-image:url(../images/icons/wc_icon.png)!important;background-repeat:no-repeat!important;background-position:center!important;} \ No newline at end of file +/* Menu */ +#adminmenu #menu-posts-product div.wp-menu-image { + background: transparent url(../images/icons/menu_icons.png) no-repeat -32px -32px; +} +#adminmenu #menu-posts-product.wp-menu-open div.wp-menu-image, +#adminmenu #menu-posts-product:hover div.wp-menu-image { + background-position: -32px 0px; +} +#adminmenu #menu-posts-product img { + display: none; +} +#adminmenu #menu-posts-shop_order div.wp-menu-image { + background: transparent url(../images/icons/menu_icons.png) no-repeat -64px -32px; +} +#adminmenu #menu-posts-shop_order.wp-menu-open div.wp-menu-image, +#adminmenu #menu-posts-shop_order:hover div.wp-menu-image { + background-position: -64px 0px; +} +#adminmenu #menu-posts-shop_order img { + display: none; +} +#adminmenu #menu-posts-shop_coupon div.wp-menu-image { + background: transparent url(../images/icons/menu_icons.png) no-repeat -96px -32px; +} +#adminmenu #menu-posts-shop_coupon.wp-menu-open div.wp-menu-image, +#adminmenu #menu-posts-shop_coupon:hover div.wp-menu-image { + background-position: -96px 0px; +} +#adminmenu #menu-posts-shop_coupon img { + display: none; +} +#adminmenu #toplevel_page_woocommerce div.wp-menu-image { + background: transparent url(../images/icons/menu_icons.png) no-repeat 0px -32px; +} +#adminmenu #toplevel_page_woocommerce.wp-menu-open div.wp-menu-image, +#adminmenu #toplevel_page_woocommerce:hover div.wp-menu-image { + background-position: 0px 0px; +} +#adminmenu #toplevel_page_woocommerce img { + display: none; +} +/* Editor button */ +span.mce_woocommerce_shortcodes_button { + background-image: url(../images/icons/wc_icon.png) !important; + background-repeat: no-repeat !important; + background-position: center !important; +} diff --git a/readme.txt b/readme.txt index 90d0ff817cd..f8f2a140b87 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: ecommerce, e-commerce, commerce, woothemes, wordpress ecommerce, affiliate Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal@woothemes.com&item_name=Donation+for+WooCommerce Requires at least: 3.3 Tested up to: 3.4 -Stable tag: 1.5.5 +Stable tag: 1.5.6 WooCommerce is a powerful, extendable eCommerce plugin that helps you sell anything. Beautifully. @@ -147,7 +147,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc == Changelog == -= 1.5.6 = += 1.5.6 - 17/05/2012 = * Feature - Default display for shipping methods is radio buttons. Before, when methods were enabled/disabled based on coupons or customer, changed methods could go unnoticed. Radio options are always visible. * Feature - Option to display shipping methods as a select box vs. radio buttons * Feature - Added support for cost per order to Flat Rate shipping @@ -158,6 +158,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc * Tweak - Removed mdash; from shipping options * Tweak - Made woocommerce_locate_template more useful for third party plugins - ability to pass a full path * Tweak - WC Debug page hooks +* Tweak - Tidied up installer * Fix - Google Analytics options fix * Fix - % discount rounding * Fix - get_stock_quantity returns '' if stock management is off in global settings diff --git a/woocommerce.php b/woocommerce.php index a8a6cfb7642..9d2b8427c62 100644 --- a/woocommerce.php +++ b/woocommerce.php @@ -3,7 +3,7 @@ * Plugin Name: WooCommerce * Plugin URI: http://www.woothemes.com/woocommerce/ * Description: An e-commerce toolkit that helps you sell anything. Beautifully. - * Version: 1.5.5 + * Version: 1.5.6 * Author: WooThemes * Author URI: http://woothemes.com * Requires at least: 3.3 @@ -32,7 +32,7 @@ class Woocommerce { /** Version ***************************************************************/ - var $version = '1.5.5'; + var $version = '1.5.6'; /** URLS ******************************************************************/ From 96f5e7464f61ace3ca7b9d36207bd2389cd17c52 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 17 May 2012 13:56:18 +0100 Subject: [PATCH 21/23] removed unused function --- classes/class-wc-query.php | 56 +++++++++----------------------------- readme.txt | 1 + 2 files changed, 14 insertions(+), 43 deletions(-) diff --git a/classes/class-wc-query.php b/classes/class-wc-query.php index 44d4d5426f4..7da6d95d78f 100644 --- a/classes/class-wc-query.php +++ b/classes/class-wc-query.php @@ -54,14 +54,10 @@ class WC_Query { if ( ( ! $query ) // Abort if theres no query - || - ( empty( $this->post__in ) ) // Abort if we're not filtering posts - || - ( ! empty( $query->wc_query ) ) // Abort if this query is already done - || - ( empty( $query->query_vars["s"] ) ) // Abort if this isn't a search query - || - ( ! $query->is_post_type_archive( 'product' ) && ! $query->is_tax( array_merge( array('product_cat', 'product_tag'), $woocommerce->get_attribute_taxonomy_names() ) ) ) // Abort if we're not on a post type archive/prduct taxonomy + || ( empty( $this->post__in ) ) // Abort if we're not filtering posts + || ( ! empty( $query->wc_query ) ) // Abort if this query is already done + || ( empty( $query->query_vars["s"] ) ) // Abort if this isn't a search query + || ( ! $query->is_post_type_archive( 'product' ) && ! $query->is_tax( array_merge( array('product_cat', 'product_tag'), $woocommerce->get_attribute_taxonomy_names() ) ) ) // Abort if we're not on a post type archive/prduct taxonomy ) return $posts; @@ -110,13 +106,15 @@ class WC_Query { // Ordering query vars $q->set( 'orderby', $ordering['orderby'] ); $q->set( 'order', $ordering['order'] ); - if (isset($ordering['meta_key'])) $q->set( 'meta_key', $ordering['meta_key'] ); + if ( isset( $ordering['meta_key'] ) ) + $q->set( 'meta_key', $ordering['meta_key'] ); // Query vars that affect posts shown - if (!$q->is_tax( 'product_cat' ) && !$q->is_tax( 'product_tag' )) $q->set( 'post_type', 'product' ); + if ( ! $q->is_tax( 'product_cat' ) && ! $q->is_tax( 'product_tag' ) ) + $q->set( 'post_type', 'product' ); $q->set( 'meta_query', $meta_query ); $q->set( 'post__in', $post__in ); - $q->set( 'posts_per_page', ($q->get('posts_per_page')) ? $q->get('posts_per_page') : apply_filters('loop_shop_per_page', get_option('posts_per_page') ) ); + $q->set( 'posts_per_page', $q->get('posts_per_page') ? $q->get('posts_per_page') : apply_filters('loop_shop_per_page', get_option('posts_per_page') ) ); // Set a special variable $q->set( 'wc_query', true ); @@ -143,14 +141,14 @@ class WC_Query { // Get WP Query for current page (without 'paged') $current_wp_query = $wp_query->query; - unset($current_wp_query['paged']); + unset( $current_wp_query['paged'] ); // Generate a transient name based on current query $transient_name = 'wc_uf_pid_' . md5( http_build_query($current_wp_query) ); - $transient_name = (is_search()) ? $transient_name . '_s' : $transient_name; + $transient_name = ( is_search() ) ? $transient_name . '_s' : $transient_name; if ( false === ( $unfiltered_product_ids = get_transient( $transient_name ) ) ) { - + // Get all visible posts, regardless of filters $unfiltered_product_ids = get_posts( array_merge( @@ -255,33 +253,5 @@ class WC_Query { endif; return $meta_query; } - - /** - * Get a list of product id's which should be hidden from the frontend; useful for custom queries and loops. Makes use of transients. - */ - function get_hidden_product_ids() { - - $transient_name = (is_search()) ? 'wc_hidden_product_ids_search' : 'wc_hidden_product_ids'; - - if ( false === ( $hidden_product_ids = get_transient( $transient_name ) ) ) { - - $meta_query = array(); - $meta_query[] = $this->visibility_meta_query( 'NOT IN' ); - $meta_query[] = $this->stock_status_meta_query( 'outofstock' ); - - $hidden_product_ids = get_posts(array( - 'post_type' => 'product', - 'numberposts' => -1, - 'post_status' => 'publish', - 'meta_query' => $meta_query, - 'fields' => 'ids', - 'no_found_rows' => true - )); - - set_transient( $transient_name, $hidden_product_ids ); - } - - return (array) $hidden_product_ids; - } - + } \ No newline at end of file diff --git a/readme.txt b/readme.txt index f8f2a140b87..5fcb4e6ab44 100644 --- a/readme.txt +++ b/readme.txt @@ -159,6 +159,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc * Tweak - Made woocommerce_locate_template more useful for third party plugins - ability to pass a full path * Tweak - WC Debug page hooks * Tweak - Tidied up installer +* Tweak - Removed unused get_hidden_product_ids * Fix - Google Analytics options fix * Fix - % discount rounding * Fix - get_stock_quantity returns '' if stock management is off in global settings From ba1377933f55992ef3881e14eebdd950a144911e Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 17 May 2012 13:57:51 +0100 Subject: [PATCH 22/23] removed alert --- assets/js/woocommerce.js | 2 -- assets/js/woocommerce.min.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/assets/js/woocommerce.js b/assets/js/woocommerce.js index aaae08ea08d..0af447fed12 100755 --- a/assets/js/woocommerce.js +++ b/assets/js/woocommerce.js @@ -425,8 +425,6 @@ jQuery(document).ready(function($) { $('.single_variation_wrap').find('input[name=quantity]').removeAttr('data-max'); } - alert(variation.is_sold_individually); - if ( variation.is_sold_individually == 'yes' ) { $('.single_variation_wrap').find('input[name=quantity]').val('1'); $('.single_variation_wrap').find('.quantity').hide(); diff --git a/assets/js/woocommerce.min.js b/assets/js/woocommerce.min.js index 758a4e902f7..c4937584892 100644 --- a/assets/js/woocommerce.min.js +++ b/assets/js/woocommerce.min.js @@ -10,4 +10,4 @@ * http://www.gnu.org/licenses/gpl.html * * Thanks to Amir-Hossein Sobhi for some excellent contributions! - */(function(a){function h(c,h){var j=c==window,l=h&&h.message!==undefined?h.message:undefined;h=a.extend({},a.blockUI.defaults,h||{});h.overlayCSS=a.extend({},a.blockUI.defaults.overlayCSS,h.overlayCSS||{});var p=a.extend({},a.blockUI.defaults.css,h.css||{}),q=a.extend({},a.blockUI.defaults.themedCSS,h.themedCSS||{});l=l===undefined?h.message:l;j&&f&&i(window,{fadeOut:0});if(l&&typeof l!="string"&&(l.parentNode||l.jquery)){var r=l.jquery?l[0]:l,s={};a(c).data("blockUI.history",s);s.el=r;s.parent=r.parentNode;s.display=r.style.display;s.position=r.style.position;s.parent&&s.parent.removeChild(r)}a(c).data("blockUI.onUnblock",h.onUnblock);var t=h.baseZ,u=a.browser.msie||h.forceIframe?a(''):a(''),v=h.theme?a(''):a(''),w,x;h.theme&&j?x='":h.theme?x='":j?x='':x='';w=a(x);if(l)if(h.theme){w.css(q);w.addClass("ui-widget-content")}else w.css(p);!h.theme&&(!h.applyPlatformOpacityRules||!a.browser.mozilla||!/Linux/.test(navigator.platform))&&v.css(h.overlayCSS);v.css("position",j?"fixed":"absolute");(a.browser.msie||h.forceIframe)&&u.css("opacity",0);var y=[u,v,w],z=j?a("body"):a(c);a.each(y,function(){this.appendTo(z)});h.theme&&h.draggable&&a.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var A=d&&(!a.boxModel||a("object,embed",j?null:c).length>0);if(e||A){j&&h.allowBodyStretch&&a.boxModel&&a("html,body").css("height","100%");if((e||!a.boxModel)&&!j)var B=o(c,"borderTopWidth"),C=o(c,"borderLeftWidth"),D=B?"(0 - "+B+")":0,E=C?"(0 - "+C+")":0;a.each([u,v,w],function(a,b){var c=b[0].style;c.position="absolute";if(a<2){j?c.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:"+h.quirksmodeOffsetHack+') + "px"'):c.setExpression("height",'this.parentNode.offsetHeight + "px"');j?c.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):c.setExpression("width",'this.parentNode.offsetWidth + "px"');E&&c.setExpression("left",E);D&&c.setExpression("top",D)}else if(h.centerY){j&&c.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');c.marginTop=0}else if(!h.centerY&&j){var d=h.css&&h.css.top?parseInt(h.css.top):0,e="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+d+') + "px"';c.setExpression("top",e)}})}if(l){h.theme?w.find(".ui-widget-content").append(l):w.append(l);(l.jquery||l.nodeType)&&a(l).show()}(a.browser.msie||h.forceIframe)&&h.showOverlay&&u.show();if(h.fadeIn){var F=h.onBlock?h.onBlock:b,G=h.showOverlay&&!l?F:b,H=l?F:b;h.showOverlay&&v._fadeIn(h.fadeIn,G);l&&w._fadeIn(h.fadeIn,H)}else{h.showOverlay&&v.show();l&&w.show();h.onBlock&&h.onBlock()}k(1,c,h);if(j){f=w[0];g=a(":input:enabled:visible",f);h.focusInput&&setTimeout(m,20)}else n(w[0],h.centerX,h.centerY);if(h.timeout){var I=setTimeout(function(){j?a.unblockUI(h):a(c).unblock(h)},h.timeout);a(c).data("blockUI.timeout",I)}}function i(b,c){var d=b==window,e=a(b),h=e.data("blockUI.history"),i=e.data("blockUI.timeout");if(i){clearTimeout(i);e.removeData("blockUI.timeout")}c=a.extend({},a.blockUI.defaults,c||{});k(0,b,c);if(c.onUnblock===null){c.onUnblock=e.data("blockUI.onUnblock");e.removeData("blockUI.onUnblock")}var l;d?l=a("body").children().filter(".blockUI").add("body > .blockUI"):l=a(".blockUI",b);d&&(f=g=null);if(c.fadeOut){l.fadeOut(c.fadeOut);setTimeout(function(){j(l,h,c,b)},c.fadeOut)}else j(l,h,c,b)}function j(b,c,d,e){b.each(function(a,b){this.parentNode&&this.parentNode.removeChild(this)});if(c&&c.el){c.el.style.display=c.display;c.el.style.position=c.position;c.parent&&c.parent.appendChild(c.el);a(e).removeData("blockUI.history")}typeof d.onUnblock=="function"&&d.onUnblock(e,d)}function k(b,c,d){var e=c==window,g=a(c);if(!b&&(e&&!f||!e&&!g.data("blockUI.isBlocked")))return;e||g.data("blockUI.isBlocked",b);if(!d.bindEvents||b&&!d.showOverlay)return;var h="mousedown mouseup keydown keypress";b?a(document).bind(h,d,l):a(document).unbind(h,l)}function l(b){if(b.keyCode&&b.keyCode==9&&f&&b.data.constrainTabKey){var c=g,d=!b.shiftKey&&b.target===c[c.length-1],e=b.shiftKey&&b.target===c[0];if(d||e){setTimeout(function(){m(e)},10);return!1}}var h=b.data;return a(b.target).parents("div."+h.blockMsgClass).length>0?!0:a(b.target).parents().children().filter("div.blockUI").length==0}function m(a){if(!g)return;var b=g[a===!0?g.length-1:0];b&&b.focus()}function n(a,b,c){var d=a.parentNode,e=a.style,f=(d.offsetWidth-a.offsetWidth)/2-o(d,"borderLeftWidth"),g=(d.offsetHeight-a.offsetHeight)/2-o(d,"borderTopWidth");b&&(e.left=f>0?f+"px":"0");c&&(e.top=g>0?g+"px":"0")}function o(b,c){return parseInt(a.css(b,c))||0}if(/1\.(0|1|2)\.(0|1|2)/.test(a.fn.jquery)||/^1.1/.test(a.fn.jquery)){alert("blockUI requires jQuery v1.2.3 or later! You are using v"+a.fn.jquery);return}a.fn._fadeIn=a.fn.fadeIn;var b=function(){},c=document.documentMode||0,d=a.browser.msie&&(a.browser.version<8&&!c||c<8),e=a.browser.msie&&/MSIE 6.0/.test(navigator.userAgent)&&!c;a.blockUI=function(a){h(window,a)};a.unblockUI=function(a){i(window,a)};a.growlUI=function(b,c,d,e){var f=a('
');b&&f.append("

"+b+"

");c&&f.append("

"+c+"

");d==undefined&&(d=3e3);a.blockUI({message:f,fadeIn:700,fadeOut:1e3,centerY:!1,timeout:d,showOverlay:!1,onUnblock:e,css:a.blockUI.defaults.growlCSS})};a.fn.block=function(b){return this.unblock({fadeOut:0}).each(function(){a.css(this,"position")=="static"&&(this.style.position="relative");a.browser.msie&&(this.style.zoom=1);h(this,b)})};a.fn.unblock=function(a){return this.each(function(){i(this,a)})};a.blockUI.version=2.39;a.blockUI.defaults={message:"

Please wait...

",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,applyPlatformOpacityRules:!0,onBlock:null,onUnblock:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg"};var f=null,g=[]})(jQuery);(function(a){function b(b){this.input=b;b.attr("type")=="password"&&this.handlePassword();a(b[0].form).submit(function(){b.hasClass("placeholder")&&b[0].value==b.attr("placeholder")&&(b[0].value="")})}b.prototype={show:function(a){if(this.input[0].value===""||a&&this.valueIsPlaceholder()){if(this.isPassword)try{this.input[0].setAttribute("type","text")}catch(b){this.input.before(this.fakePassword.show()).hide()}this.input.addClass("placeholder");this.input[0].value=this.input.attr("placeholder")}},hide:function(){if(this.valueIsPlaceholder()&&this.input.hasClass("placeholder")&&(this.input.removeClass("placeholder"),this.input[0].value="",this.isPassword)){try{this.input[0].setAttribute("type","password")}catch(a){}this.input.show();this.input[0].focus()}},valueIsPlaceholder:function(){return this.input[0].value==this.input.attr("placeholder")},handlePassword:function(){var b=this.input;b.attr("realType","password");this.isPassword=!0;if(a.browser.msie&&b[0].outerHTML){var c=a(b[0].outerHTML.replace(/type=(['"])?password\1/gi,"type=$1text$1"));this.fakePassword=c.val(b.attr("placeholder")).addClass("placeholder").focus(function(){b.trigger("focus");a(this).hide()});a(b[0].form).submit(function(){c.remove();b.show()})}}};var c="placeholder"in document.createElement("input");a.fn.placeholder=function(){return c?this:this.each(function(){var c=a(this),e=new b(c);e.show(!0);c.focus(function(){e.hide()});c.blur(function(){e.show(!1)});a.browser.msie&&(a(window).load(function(){c.val()&&c.removeClass("placeholder");e.show(!0)}),c.focus(function(){if(this.value==""){var a=this.createTextRange();a.collapse(!0);a.moveStart("character",0);a.select()}}))})}})(jQuery);jQuery("input[placeholder], textarea[placeholder]").placeholder();jQuery(document).ready(function(a){function d(a,b){var c=!0;for(name in a){var d=a[name],e=b[name];d.length!=0&&e.length!=0&&d!=e&&(c=!1)}return c}function e(a){var b=[];for(var c=0;c").html(g).text();g=g.replace(/'/g,"\\'");g=g.replace(/"/g,'\\"');current_attr_select.find('option[value="'+g+'"]').removeAttr("disabled")}else current_attr_select.find("option").removeAttr("disabled")}}});a(document).trigger("woocommerce_update_variation_values")}function g(b){var c=a("div.images img:eq(0)"),d=a("div.images a.zoom:eq(0)"),e=a(c).attr("data-o_src"),f=a(d).attr("data-o_href"),g=b.image_src,h=b.image_link;a(".variations_button").show();a(".single_variation").html(b.price_html+b.availability_html);e||a(c).attr("data-o_src",a(c).attr("src"));f||a(d).attr("data-o_href",a(d).attr("href"));if(g&&g.length>1){a(c).attr("src",g);a(d).attr("href",h)}else{a(c).attr("src",e);a(d).attr("href",f)}b.sku?a(".product_meta").find(".sku").text(b.sku):a(".product_meta").find(".sku").text("");a(".single_variation_wrap").find(".quantity").show();b.min_qty?a(".single_variation_wrap").find("input[name=quantity]").attr("data-min",b.min_qty).val(b.min_qty):a(".single_variation_wrap").find("input[name=quantity]").removeAttr("data-min");b.max_qty?a(".single_variation_wrap").find("input[name=quantity]").attr("data-max",b.max_qty):a(".single_variation_wrap").find("input[name=quantity]").removeAttr("data-max");alert(b.is_sold_individually);if(b.is_sold_individually=="yes"){a(".single_variation_wrap").find("input[name=quantity]").val("1");a(".single_variation_wrap").find(".quantity").hide()}a(".single_variation_wrap").slideDown("200").trigger("variationWrapShown").trigger("show_variation")}function h(b){var c=!0,d=!1,h={};a(".variations select").each(function(){if(b&&a(this).attr("name")==b){c=!1;h[a(this).attr("name")]=""}else{a(this).val().length==0?c=!1:d=!0;value=a(this).val().replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">");h[a(this).attr("name")]=value}});var i=e(h);if(c){var j=i.pop();if(j){a("form input[name=variation_id]").val(j.variation_id).change();g(j)}else a(".variations select").val("")}else f(i);d?a(".reset_variations").css("visibility")=="hidden"&&a(".reset_variations").css("visibility","visible").hide().fadeIn():a(".reset_variations").css("visibility","hidden")}woocommerce_params.option_ajax_add_to_cart=="yes"&&a(".add_to_cart_button").live("click",function(){var b=a(this);if(b.is(".product_type_simple, .product_type_downloadable, .product_type_virtual")){if(!b.attr("data-product_id"))return!0;b.removeClass("added");b.addClass("loading");var c={action:"woocommerce_add_to_cart",product_id:b.attr("data-product_id"),security:woocommerce_params.add_to_cart_nonce};a("body").trigger("adding_to_cart");a.post(woocommerce_params.ajax_url,c,function(d){b.removeClass("loading");c=a.parseJSON(d);if(c.error&&c.product_url){window.location=c.product_url;return}fragments=c;fragments&&a.each(fragments,function(b,c){a(b).addClass("updating")});a(".widget_shopping_cart, .shop_table.cart, .updating, .cart_totals").fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+woocommerce_params.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});b.addClass("added");if(a(".widget_shopping_cart").size()>0)a(".widget_shopping_cart:eq(0)").load(window.location+" .widget_shopping_cart:eq(0) > *",function(){fragments&&a.each(fragments,function(b,c){a(b).replaceWith(c)});a(".widget_shopping_cart, .updating").css("opacity","1").unblock();a("body").trigger("cart_widget_refreshed")});else{fragments&&a.each(fragments,function(b,c){a(b).replaceWith(c)});a(".widget_shopping_cart, .updating").css("opacity","1").unblock()}a(".shop_table.cart").load(window.location+" .shop_table.cart:eq(0) > *",function(){a("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('').prepend('');a(".shop_table.cart").css("opacity","1").unblock();a("body").trigger("cart_page_refreshed")});a(".cart_totals").load(window.location+" .cart_totals:eq(0) > *",function(){a(".cart_totals").css("opacity","1").unblock()});a("body").trigger("added_to_cart")});return!1}return!0});a("select.orderby").change(function(){a(this).closest("form").submit()});a("#rating").hide().before('

12345

');a("p.stars a").click(function(){var b=a(this);a("#rating").val(b.text());a("p.stars a").removeClass("active");b.addClass("active");return!1});a("#review_form #submit").live("click",function(){var b=a("#rating").val();if(a("#rating").size()>0&&!b&&woocommerce_params.review_rating_required=="yes"){alert(woocommerce_params.required_rating_text);return!1}});a("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('').prepend('');a("input.qty:not(.product-quantity input.qty)").each(function(){var b=parseInt(a(this).attr("data-min"));b&&b>1&&parseInt(a(this).val())c)?$qty.val(c):$qty.val(b+1);$qty.trigger("change")});a(".minus").live("click",function(){var b=parseInt(a(this).next(".qty").val());if(!b||b==""||b=="NaN")b=0;$qty=a(this).next(".qty");var c=parseInt($qty.attr("data-min"));if(c==""||c=="NaN")c=0;c&&(c==b||b0&&$qty.val(b-1);$qty.trigger("change")});var b=woocommerce_params.countries.replace(/"/g,'"'),c=a.parseJSON(b);a("select.country_to_state").change(function(){var b=a(this).val(),d=a(this).closest("div").find("#billing_state, #shipping_state, #calc_shipping_state"),e=d.parent(),f=d.attr("name"),g=d.attr("id"),h=d.val();if(c[b])c[b].length==0?e.fadeOut(200,function(){d.parent().find(".chzn-container").remove();d.replaceWith('');a("body").trigger("country_to_state_changed",[b,a(this).closest("div")])}):e.fadeOut(200,function(){var i="",j=c[b];for(var k in j)i=i+'";if(d.is("input")){d.replaceWith('');d=a(this).closest("div").find("#billing_state, #shipping_state, #calc_shipping_state")}d.html('"+i);d.val(h);a("body").trigger("country_to_state_changed",[b,a(this).closest("div")]);e.fadeIn(500)});else if(d.is("select"))e.fadeOut(200,function(){e.find(".chzn-container").remove();d.replaceWith('');a("body").trigger("country_to_state_changed",[b,a(this).closest("div")]);e.fadeIn(500)});else if(d.is(".hidden")){e.find(".chzn-container").remove();d.replaceWith('');a("body").trigger("country_to_state_changed",[b,a(this).closest("div")]);e.delay(200).fadeIn(500)}a("body").delay(200).trigger("country_to_state_changing",[b,a(this).closest("div")])});a(".woocommerce_tabs .panel").hide();a(".woocommerce_tabs ul.tabs li a").click(function(){var b=a(this),c=b.closest(".woocommerce_tabs");a("ul.tabs li",c).removeClass("active");a("div.panel",c).hide();a("div"+b.attr("href")).show();b.parent().addClass("active");return!1});a(".woocommerce_tabs").each(function(){var b=window.location.hash;b.toLowerCase().indexOf("comment-")>=0?a("ul.tabs li.reviews_tab a",a(this)).click():a("ul.tabs li:first a",a(this)).click()});a(".shipping-calculator-form").hide();a(".shipping-calculator-button").click(function(){a(".shipping-calculator-form").slideToggle("slow");return!1});a(".reset_variations").click(function(){a(".variations select").val("").change();return!1}).css("visibility","hidden");a(".variations select").change(function(){var b=a("div.images img:eq(0)"),c=a("div.images a.zoom:eq(0)"),d=a(b).attr("data-o_src"),e=a(c).attr("data-o_href");if(d&&e){a(b).attr("src",d);a(c).attr("href",e)}a("form input[name=variation_id]").val("").change();a(".single_variation_wrap").hide();a(".single_variation").text("");h();a(this).blur();a().uniform&&a.isFunction(a.uniform.update)&&a.uniform.update()}).bind("focusin",function(){h(a(this).attr("name"))}).change();woocommerce_params.is_cart==1&&a("select#shipping_method, input[name=shipping_method]").live("change",function(){var b=a(this).val();a("div.cart_totals").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_params.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var c={action:"woocommerce_update_shipping_method",security:woocommerce_params.update_shipping_method_nonce,shipping_method:b};a.post(woocommerce_params.ajax_url,c,function(b){a("div.cart_totals").replaceWith(b);a("body").trigger("updated_shipping_method")})});if(woocommerce_params.is_checkout==1||woocommerce_params.is_pay_page==1){var i,j;function k(){j&&j.abort();if(a("select#shipping_method").size()>0)var b=a("select#shipping_method").val();else var b=a("input[name=shipping_method]:checked").val();var c=a("#order_review input[name=payment_method]:checked").val(),d=a("#billing_country").val(),e=a("#billing_state").val(),f=a("input#billing_postcode").val();if(a("#shiptobilling input").is(":checked")||a("#shiptobilling input").size()==0)var g=d,h=e,i=f;else var g=a("#shipping_country").val(),h=a("#shipping_state").val(),i=a("input#shipping_postcode").val();a("#order_methods, #order_review").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_params.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var k={action:"woocommerce_update_order_review",security:woocommerce_params.update_order_review_nonce,shipping_method:b,payment_method:c,country:d,state:e,postcode:f,s_country:g,s_state:h,s_postcode:i,post_data:a("form.checkout").serialize()};j=a.ajax({type:"POST",url:woocommerce_params.ajax_url,data:k,success:function(b){a("#order_review").after(b).remove();a("#order_review input[name=payment_method]:checked").click();a("body").trigger("updated_checkout")}})}a("body").bind("update_checkout",function(){clearTimeout(i);k()});a("p.password, form.login, form.checkout_coupon, div.shipping_address").hide();a("input.show_password").change(function(){a("p.password").slideToggle()});a("a.showlogin").click(function(){a("form.login").slideToggle();return!1});a("a.showcoupon").click(function(){a("form.checkout_coupon").slideToggle();return!1});a("#shiptobilling input").change(function(){a("div.shipping_address").hide();a(this).is(":checked")||a("div.shipping_address").slideDown()}).change();if(woocommerce_params.option_guest_checkout=="yes"){a("div.create-account").hide();a("input#createaccount").change(function(){a("div.create-account").hide();a(this).is(":checked")&&a("div.create-account").slideDown()}).change()}a(".payment_methods input.input-radio").live("click",function(){a("div.payment_box").filter(":visible").slideUp(250);a(this).is(":checked")&&a("div.payment_box."+a(this).attr("ID")).slideDown(250)});a("#order_review input[name=payment_method]:checked").click();a("select#shipping_method, input[name=shipping_method]").live("change",function(){a("body").trigger("update_checkout")});a("input#billing_country, input#billing_state, #billing_postcode, input#shipping_country, input#shipping_state, #shipping_postcode").live("keydown",function(){clearTimeout(i);i=setTimeout(k,"1000")});a("select#billing_country, select#billing_state, select#shipping_country, select#shipping_state, #shiptobilling input, .update_totals_on_change").live("change",function(){a("body").trigger("update_checkout")});woocommerce_params.is_checkout==1&&a("body").trigger("update_checkout");a("form.checkout").submit(function(){var b=a(this);if(b.is(".processing"))return!1;b.addClass("processing").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_params.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});a.ajax({type:"POST",url:woocommerce_params.checkout_url,data:b.serialize(),success:function(c){a(".woocommerce_error, .woocommerce_message").remove();try{result=a.parseJSON(c);if(result.result=="success")window.location=decodeURI(result.redirect);else{if(result.result!="failure")throw"Invalid response";b.prepend(result.messages);b.removeClass("processing").unblock();result.refresh=="true"&&a("body").trigger("update_checkout");a("html, body").animate({scrollTop:a("form.checkout").offset().top-100},1e3)}}catch(d){b.prepend(c);b.removeClass("processing").unblock();a("html, body").animate({scrollTop:a("form.checkout").offset().top-100},1e3)}},dataType:"html"});return!1});var l=woocommerce_params.locale.replace(/"/g,'"'),m=a.parseJSON(l),n=' *';a("body").bind("country_to_state_changing",function(b,c,d){var e=d;if(m[c])var f=m[c];else var f=m["default"];var g={address_1:"#billing_address_1_field, #shipping_address_1_field",address_2:"#billing_address_2_field, #shipping_address_2_field",state:"#billing_state_field, #shipping_state_field",postcode:"#billing_postcode_field, #shipping_postcode_field",city:"#billing_city_field, #shipping_city_field"};a.each(g,function(a,b){var c=e.find(b);if(f[a]){f[a].label&&c.find("label").html(f[a].label);f[a].placeholder&&c.find("input").attr("placeholder",f[a].placeholder);c.find("label abbr").remove();(typeof f[a]["required"]=="undefined"||f[a]["required"]==1)&&c.find("label").append(n);a!=="state"&&(f[a]["hidden"]==1?c.fadeOut(200).find("input").val(""):c.fadeIn(500))}else if(m["default"][a]){m["default"][a]["required"]==1&&c.find("label abbr").size()==0&&c.find("label").append(n);a!=="state"&&(typeof m["default"][a]["hidden"]=="undefined"||m["default"][a]["hidden"]==0)&&c.fadeIn(500)}});var h=e.find("#billing_postcode_field, #shipping_postcode_field"),i=e.find("#billing_city_field, #shipping_city_field");if(f.postcode_before_city){if(i.is(".form-row-first")){i.fadeOut(200,function(){i.removeClass("form-row-first").addClass("form-row-last").insertAfter(h).fadeIn(500)});h.fadeOut(200,function(){h.removeClass("form-row-last").addClass("form-row-first").fadeIn(500)})}}else if(i.is(".form-row-last")){i.fadeOut(200,function(){i.removeClass("form-row-last").addClass("form-row-first").insertBefore(h).fadeIn(500)});h.fadeOut(200,function(){h.removeClass("form-row-first").addClass("form-row-last").fadeIn(500)})}})}a("select.country_to_state").change()}); \ No newline at end of file + */(function(a){function h(c,h){var j=c==window,l=h&&h.message!==undefined?h.message:undefined;h=a.extend({},a.blockUI.defaults,h||{});h.overlayCSS=a.extend({},a.blockUI.defaults.overlayCSS,h.overlayCSS||{});var p=a.extend({},a.blockUI.defaults.css,h.css||{}),q=a.extend({},a.blockUI.defaults.themedCSS,h.themedCSS||{});l=l===undefined?h.message:l;j&&f&&i(window,{fadeOut:0});if(l&&typeof l!="string"&&(l.parentNode||l.jquery)){var r=l.jquery?l[0]:l,s={};a(c).data("blockUI.history",s);s.el=r;s.parent=r.parentNode;s.display=r.style.display;s.position=r.style.position;s.parent&&s.parent.removeChild(r)}a(c).data("blockUI.onUnblock",h.onUnblock);var t=h.baseZ,u=a.browser.msie||h.forceIframe?a(''):a(''),v=h.theme?a(''):a(''),w,x;h.theme&&j?x='":h.theme?x='":j?x='':x='';w=a(x);if(l)if(h.theme){w.css(q);w.addClass("ui-widget-content")}else w.css(p);!h.theme&&(!h.applyPlatformOpacityRules||!a.browser.mozilla||!/Linux/.test(navigator.platform))&&v.css(h.overlayCSS);v.css("position",j?"fixed":"absolute");(a.browser.msie||h.forceIframe)&&u.css("opacity",0);var y=[u,v,w],z=j?a("body"):a(c);a.each(y,function(){this.appendTo(z)});h.theme&&h.draggable&&a.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var A=d&&(!a.boxModel||a("object,embed",j?null:c).length>0);if(e||A){j&&h.allowBodyStretch&&a.boxModel&&a("html,body").css("height","100%");if((e||!a.boxModel)&&!j)var B=o(c,"borderTopWidth"),C=o(c,"borderLeftWidth"),D=B?"(0 - "+B+")":0,E=C?"(0 - "+C+")":0;a.each([u,v,w],function(a,b){var c=b[0].style;c.position="absolute";if(a<2){j?c.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:"+h.quirksmodeOffsetHack+') + "px"'):c.setExpression("height",'this.parentNode.offsetHeight + "px"');j?c.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):c.setExpression("width",'this.parentNode.offsetWidth + "px"');E&&c.setExpression("left",E);D&&c.setExpression("top",D)}else if(h.centerY){j&&c.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');c.marginTop=0}else if(!h.centerY&&j){var d=h.css&&h.css.top?parseInt(h.css.top):0,e="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+d+') + "px"';c.setExpression("top",e)}})}if(l){h.theme?w.find(".ui-widget-content").append(l):w.append(l);(l.jquery||l.nodeType)&&a(l).show()}(a.browser.msie||h.forceIframe)&&h.showOverlay&&u.show();if(h.fadeIn){var F=h.onBlock?h.onBlock:b,G=h.showOverlay&&!l?F:b,H=l?F:b;h.showOverlay&&v._fadeIn(h.fadeIn,G);l&&w._fadeIn(h.fadeIn,H)}else{h.showOverlay&&v.show();l&&w.show();h.onBlock&&h.onBlock()}k(1,c,h);if(j){f=w[0];g=a(":input:enabled:visible",f);h.focusInput&&setTimeout(m,20)}else n(w[0],h.centerX,h.centerY);if(h.timeout){var I=setTimeout(function(){j?a.unblockUI(h):a(c).unblock(h)},h.timeout);a(c).data("blockUI.timeout",I)}}function i(b,c){var d=b==window,e=a(b),h=e.data("blockUI.history"),i=e.data("blockUI.timeout");if(i){clearTimeout(i);e.removeData("blockUI.timeout")}c=a.extend({},a.blockUI.defaults,c||{});k(0,b,c);if(c.onUnblock===null){c.onUnblock=e.data("blockUI.onUnblock");e.removeData("blockUI.onUnblock")}var l;d?l=a("body").children().filter(".blockUI").add("body > .blockUI"):l=a(".blockUI",b);d&&(f=g=null);if(c.fadeOut){l.fadeOut(c.fadeOut);setTimeout(function(){j(l,h,c,b)},c.fadeOut)}else j(l,h,c,b)}function j(b,c,d,e){b.each(function(a,b){this.parentNode&&this.parentNode.removeChild(this)});if(c&&c.el){c.el.style.display=c.display;c.el.style.position=c.position;c.parent&&c.parent.appendChild(c.el);a(e).removeData("blockUI.history")}typeof d.onUnblock=="function"&&d.onUnblock(e,d)}function k(b,c,d){var e=c==window,g=a(c);if(!b&&(e&&!f||!e&&!g.data("blockUI.isBlocked")))return;e||g.data("blockUI.isBlocked",b);if(!d.bindEvents||b&&!d.showOverlay)return;var h="mousedown mouseup keydown keypress";b?a(document).bind(h,d,l):a(document).unbind(h,l)}function l(b){if(b.keyCode&&b.keyCode==9&&f&&b.data.constrainTabKey){var c=g,d=!b.shiftKey&&b.target===c[c.length-1],e=b.shiftKey&&b.target===c[0];if(d||e){setTimeout(function(){m(e)},10);return!1}}var h=b.data;return a(b.target).parents("div."+h.blockMsgClass).length>0?!0:a(b.target).parents().children().filter("div.blockUI").length==0}function m(a){if(!g)return;var b=g[a===!0?g.length-1:0];b&&b.focus()}function n(a,b,c){var d=a.parentNode,e=a.style,f=(d.offsetWidth-a.offsetWidth)/2-o(d,"borderLeftWidth"),g=(d.offsetHeight-a.offsetHeight)/2-o(d,"borderTopWidth");b&&(e.left=f>0?f+"px":"0");c&&(e.top=g>0?g+"px":"0")}function o(b,c){return parseInt(a.css(b,c))||0}if(/1\.(0|1|2)\.(0|1|2)/.test(a.fn.jquery)||/^1.1/.test(a.fn.jquery)){alert("blockUI requires jQuery v1.2.3 or later! You are using v"+a.fn.jquery);return}a.fn._fadeIn=a.fn.fadeIn;var b=function(){},c=document.documentMode||0,d=a.browser.msie&&(a.browser.version<8&&!c||c<8),e=a.browser.msie&&/MSIE 6.0/.test(navigator.userAgent)&&!c;a.blockUI=function(a){h(window,a)};a.unblockUI=function(a){i(window,a)};a.growlUI=function(b,c,d,e){var f=a('
');b&&f.append("

"+b+"

");c&&f.append("

"+c+"

");d==undefined&&(d=3e3);a.blockUI({message:f,fadeIn:700,fadeOut:1e3,centerY:!1,timeout:d,showOverlay:!1,onUnblock:e,css:a.blockUI.defaults.growlCSS})};a.fn.block=function(b){return this.unblock({fadeOut:0}).each(function(){a.css(this,"position")=="static"&&(this.style.position="relative");a.browser.msie&&(this.style.zoom=1);h(this,b)})};a.fn.unblock=function(a){return this.each(function(){i(this,a)})};a.blockUI.version=2.39;a.blockUI.defaults={message:"

Please wait...

",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,applyPlatformOpacityRules:!0,onBlock:null,onUnblock:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg"};var f=null,g=[]})(jQuery);(function(a){function b(b){this.input=b;b.attr("type")=="password"&&this.handlePassword();a(b[0].form).submit(function(){b.hasClass("placeholder")&&b[0].value==b.attr("placeholder")&&(b[0].value="")})}b.prototype={show:function(a){if(this.input[0].value===""||a&&this.valueIsPlaceholder()){if(this.isPassword)try{this.input[0].setAttribute("type","text")}catch(b){this.input.before(this.fakePassword.show()).hide()}this.input.addClass("placeholder");this.input[0].value=this.input.attr("placeholder")}},hide:function(){if(this.valueIsPlaceholder()&&this.input.hasClass("placeholder")&&(this.input.removeClass("placeholder"),this.input[0].value="",this.isPassword)){try{this.input[0].setAttribute("type","password")}catch(a){}this.input.show();this.input[0].focus()}},valueIsPlaceholder:function(){return this.input[0].value==this.input.attr("placeholder")},handlePassword:function(){var b=this.input;b.attr("realType","password");this.isPassword=!0;if(a.browser.msie&&b[0].outerHTML){var c=a(b[0].outerHTML.replace(/type=(['"])?password\1/gi,"type=$1text$1"));this.fakePassword=c.val(b.attr("placeholder")).addClass("placeholder").focus(function(){b.trigger("focus");a(this).hide()});a(b[0].form).submit(function(){c.remove();b.show()})}}};var c="placeholder"in document.createElement("input");a.fn.placeholder=function(){return c?this:this.each(function(){var c=a(this),e=new b(c);e.show(!0);c.focus(function(){e.hide()});c.blur(function(){e.show(!1)});a.browser.msie&&(a(window).load(function(){c.val()&&c.removeClass("placeholder");e.show(!0)}),c.focus(function(){if(this.value==""){var a=this.createTextRange();a.collapse(!0);a.moveStart("character",0);a.select()}}))})}})(jQuery);jQuery("input[placeholder], textarea[placeholder]").placeholder();jQuery(document).ready(function(a){function d(a,b){var c=!0;for(name in a){var d=a[name],e=b[name];d.length!=0&&e.length!=0&&d!=e&&(c=!1)}return c}function e(a){var b=[];for(var c=0;c").html(g).text();g=g.replace(/'/g,"\\'");g=g.replace(/"/g,'\\"');current_attr_select.find('option[value="'+g+'"]').removeAttr("disabled")}else current_attr_select.find("option").removeAttr("disabled")}}});a(document).trigger("woocommerce_update_variation_values")}function g(b){var c=a("div.images img:eq(0)"),d=a("div.images a.zoom:eq(0)"),e=a(c).attr("data-o_src"),f=a(d).attr("data-o_href"),g=b.image_src,h=b.image_link;a(".variations_button").show();a(".single_variation").html(b.price_html+b.availability_html);e||a(c).attr("data-o_src",a(c).attr("src"));f||a(d).attr("data-o_href",a(d).attr("href"));if(g&&g.length>1){a(c).attr("src",g);a(d).attr("href",h)}else{a(c).attr("src",e);a(d).attr("href",f)}b.sku?a(".product_meta").find(".sku").text(b.sku):a(".product_meta").find(".sku").text("");a(".single_variation_wrap").find(".quantity").show();b.min_qty?a(".single_variation_wrap").find("input[name=quantity]").attr("data-min",b.min_qty).val(b.min_qty):a(".single_variation_wrap").find("input[name=quantity]").removeAttr("data-min");b.max_qty?a(".single_variation_wrap").find("input[name=quantity]").attr("data-max",b.max_qty):a(".single_variation_wrap").find("input[name=quantity]").removeAttr("data-max");if(b.is_sold_individually=="yes"){a(".single_variation_wrap").find("input[name=quantity]").val("1");a(".single_variation_wrap").find(".quantity").hide()}a(".single_variation_wrap").slideDown("200").trigger("variationWrapShown").trigger("show_variation")}function h(b){var c=!0,d=!1,h={};a(".variations select").each(function(){if(b&&a(this).attr("name")==b){c=!1;h[a(this).attr("name")]=""}else{a(this).val().length==0?c=!1:d=!0;value=a(this).val().replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">");h[a(this).attr("name")]=value}});var i=e(h);if(c){var j=i.pop();if(j){a("form input[name=variation_id]").val(j.variation_id).change();g(j)}else a(".variations select").val("")}else f(i);d?a(".reset_variations").css("visibility")=="hidden"&&a(".reset_variations").css("visibility","visible").hide().fadeIn():a(".reset_variations").css("visibility","hidden")}woocommerce_params.option_ajax_add_to_cart=="yes"&&a(".add_to_cart_button").live("click",function(){var b=a(this);if(b.is(".product_type_simple, .product_type_downloadable, .product_type_virtual")){if(!b.attr("data-product_id"))return!0;b.removeClass("added");b.addClass("loading");var c={action:"woocommerce_add_to_cart",product_id:b.attr("data-product_id"),security:woocommerce_params.add_to_cart_nonce};a("body").trigger("adding_to_cart");a.post(woocommerce_params.ajax_url,c,function(d){b.removeClass("loading");c=a.parseJSON(d);if(c.error&&c.product_url){window.location=c.product_url;return}fragments=c;fragments&&a.each(fragments,function(b,c){a(b).addClass("updating")});a(".widget_shopping_cart, .shop_table.cart, .updating, .cart_totals").fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+woocommerce_params.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});b.addClass("added");if(a(".widget_shopping_cart").size()>0)a(".widget_shopping_cart:eq(0)").load(window.location+" .widget_shopping_cart:eq(0) > *",function(){fragments&&a.each(fragments,function(b,c){a(b).replaceWith(c)});a(".widget_shopping_cart, .updating").css("opacity","1").unblock();a("body").trigger("cart_widget_refreshed")});else{fragments&&a.each(fragments,function(b,c){a(b).replaceWith(c)});a(".widget_shopping_cart, .updating").css("opacity","1").unblock()}a(".shop_table.cart").load(window.location+" .shop_table.cart:eq(0) > *",function(){a("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('').prepend('');a(".shop_table.cart").css("opacity","1").unblock();a("body").trigger("cart_page_refreshed")});a(".cart_totals").load(window.location+" .cart_totals:eq(0) > *",function(){a(".cart_totals").css("opacity","1").unblock()});a("body").trigger("added_to_cart")});return!1}return!0});a("select.orderby").change(function(){a(this).closest("form").submit()});a("#rating").hide().before('

12345

');a("p.stars a").click(function(){var b=a(this);a("#rating").val(b.text());a("p.stars a").removeClass("active");b.addClass("active");return!1});a("#review_form #submit").live("click",function(){var b=a("#rating").val();if(a("#rating").size()>0&&!b&&woocommerce_params.review_rating_required=="yes"){alert(woocommerce_params.required_rating_text);return!1}});a("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('').prepend('');a("input.qty:not(.product-quantity input.qty)").each(function(){var b=parseInt(a(this).attr("data-min"));b&&b>1&&parseInt(a(this).val())c)?$qty.val(c):$qty.val(b+1);$qty.trigger("change")});a(".minus").live("click",function(){var b=parseInt(a(this).next(".qty").val());if(!b||b==""||b=="NaN")b=0;$qty=a(this).next(".qty");var c=parseInt($qty.attr("data-min"));if(c==""||c=="NaN")c=0;c&&(c==b||b0&&$qty.val(b-1);$qty.trigger("change")});var b=woocommerce_params.countries.replace(/"/g,'"'),c=a.parseJSON(b);a("select.country_to_state").change(function(){var b=a(this).val(),d=a(this).closest("div").find("#billing_state, #shipping_state, #calc_shipping_state"),e=d.parent(),f=d.attr("name"),g=d.attr("id"),h=d.val();if(c[b])c[b].length==0?e.fadeOut(200,function(){d.parent().find(".chzn-container").remove();d.replaceWith('');a("body").trigger("country_to_state_changed",[b,a(this).closest("div")])}):e.fadeOut(200,function(){var i="",j=c[b];for(var k in j)i=i+'";if(d.is("input")){d.replaceWith('');d=a(this).closest("div").find("#billing_state, #shipping_state, #calc_shipping_state")}d.html('"+i);d.val(h);a("body").trigger("country_to_state_changed",[b,a(this).closest("div")]);e.fadeIn(500)});else if(d.is("select"))e.fadeOut(200,function(){e.find(".chzn-container").remove();d.replaceWith('');a("body").trigger("country_to_state_changed",[b,a(this).closest("div")]);e.fadeIn(500)});else if(d.is(".hidden")){e.find(".chzn-container").remove();d.replaceWith('');a("body").trigger("country_to_state_changed",[b,a(this).closest("div")]);e.delay(200).fadeIn(500)}a("body").delay(200).trigger("country_to_state_changing",[b,a(this).closest("div")])});a(".woocommerce_tabs .panel").hide();a(".woocommerce_tabs ul.tabs li a").click(function(){var b=a(this),c=b.closest(".woocommerce_tabs");a("ul.tabs li",c).removeClass("active");a("div.panel",c).hide();a("div"+b.attr("href")).show();b.parent().addClass("active");return!1});a(".woocommerce_tabs").each(function(){var b=window.location.hash;b.toLowerCase().indexOf("comment-")>=0?a("ul.tabs li.reviews_tab a",a(this)).click():a("ul.tabs li:first a",a(this)).click()});a(".shipping-calculator-form").hide();a(".shipping-calculator-button").click(function(){a(".shipping-calculator-form").slideToggle("slow");return!1});a(".reset_variations").click(function(){a(".variations select").val("").change();return!1}).css("visibility","hidden");a(".variations select").change(function(){var b=a("div.images img:eq(0)"),c=a("div.images a.zoom:eq(0)"),d=a(b).attr("data-o_src"),e=a(c).attr("data-o_href");if(d&&e){a(b).attr("src",d);a(c).attr("href",e)}a("form input[name=variation_id]").val("").change();a(".single_variation_wrap").hide();a(".single_variation").text("");h();a(this).blur();a().uniform&&a.isFunction(a.uniform.update)&&a.uniform.update()}).bind("focusin",function(){h(a(this).attr("name"))}).change();woocommerce_params.is_cart==1&&a("select#shipping_method, input[name=shipping_method]").live("change",function(){var b=a(this).val();a("div.cart_totals").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_params.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var c={action:"woocommerce_update_shipping_method",security:woocommerce_params.update_shipping_method_nonce,shipping_method:b};a.post(woocommerce_params.ajax_url,c,function(b){a("div.cart_totals").replaceWith(b);a("body").trigger("updated_shipping_method")})});if(woocommerce_params.is_checkout==1||woocommerce_params.is_pay_page==1){var i,j;function k(){j&&j.abort();if(a("select#shipping_method").size()>0)var b=a("select#shipping_method").val();else var b=a("input[name=shipping_method]:checked").val();var c=a("#order_review input[name=payment_method]:checked").val(),d=a("#billing_country").val(),e=a("#billing_state").val(),f=a("input#billing_postcode").val();if(a("#shiptobilling input").is(":checked")||a("#shiptobilling input").size()==0)var g=d,h=e,i=f;else var g=a("#shipping_country").val(),h=a("#shipping_state").val(),i=a("input#shipping_postcode").val();a("#order_methods, #order_review").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_params.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var k={action:"woocommerce_update_order_review",security:woocommerce_params.update_order_review_nonce,shipping_method:b,payment_method:c,country:d,state:e,postcode:f,s_country:g,s_state:h,s_postcode:i,post_data:a("form.checkout").serialize()};j=a.ajax({type:"POST",url:woocommerce_params.ajax_url,data:k,success:function(b){a("#order_review").after(b).remove();a("#order_review input[name=payment_method]:checked").click();a("body").trigger("updated_checkout")}})}a("body").bind("update_checkout",function(){clearTimeout(i);k()});a("p.password, form.login, form.checkout_coupon, div.shipping_address").hide();a("input.show_password").change(function(){a("p.password").slideToggle()});a("a.showlogin").click(function(){a("form.login").slideToggle();return!1});a("a.showcoupon").click(function(){a("form.checkout_coupon").slideToggle();return!1});a("#shiptobilling input").change(function(){a("div.shipping_address").hide();a(this).is(":checked")||a("div.shipping_address").slideDown()}).change();if(woocommerce_params.option_guest_checkout=="yes"){a("div.create-account").hide();a("input#createaccount").change(function(){a("div.create-account").hide();a(this).is(":checked")&&a("div.create-account").slideDown()}).change()}a(".payment_methods input.input-radio").live("click",function(){a("div.payment_box").filter(":visible").slideUp(250);a(this).is(":checked")&&a("div.payment_box."+a(this).attr("ID")).slideDown(250)});a("#order_review input[name=payment_method]:checked").click();a("select#shipping_method, input[name=shipping_method]").live("change",function(){a("body").trigger("update_checkout")});a("input#billing_country, input#billing_state, #billing_postcode, input#shipping_country, input#shipping_state, #shipping_postcode").live("keydown",function(){clearTimeout(i);i=setTimeout(k,"1000")});a("select#billing_country, select#billing_state, select#shipping_country, select#shipping_state, #shiptobilling input, .update_totals_on_change").live("change",function(){a("body").trigger("update_checkout")});woocommerce_params.is_checkout==1&&a("body").trigger("update_checkout");a("form.checkout").submit(function(){var b=a(this);if(b.is(".processing"))return!1;b.addClass("processing").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_params.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});a.ajax({type:"POST",url:woocommerce_params.checkout_url,data:b.serialize(),success:function(c){a(".woocommerce_error, .woocommerce_message").remove();try{result=a.parseJSON(c);if(result.result=="success")window.location=decodeURI(result.redirect);else{if(result.result!="failure")throw"Invalid response";b.prepend(result.messages);b.removeClass("processing").unblock();result.refresh=="true"&&a("body").trigger("update_checkout");a("html, body").animate({scrollTop:a("form.checkout").offset().top-100},1e3)}}catch(d){b.prepend(c);b.removeClass("processing").unblock();a("html, body").animate({scrollTop:a("form.checkout").offset().top-100},1e3)}},dataType:"html"});return!1});var l=woocommerce_params.locale.replace(/"/g,'"'),m=a.parseJSON(l),n=' *';a("body").bind("country_to_state_changing",function(b,c,d){var e=d;if(m[c])var f=m[c];else var f=m["default"];var g={address_1:"#billing_address_1_field, #shipping_address_1_field",address_2:"#billing_address_2_field, #shipping_address_2_field",state:"#billing_state_field, #shipping_state_field",postcode:"#billing_postcode_field, #shipping_postcode_field",city:"#billing_city_field, #shipping_city_field"};a.each(g,function(a,b){var c=e.find(b);if(f[a]){f[a].label&&c.find("label").html(f[a].label);f[a].placeholder&&c.find("input").attr("placeholder",f[a].placeholder);c.find("label abbr").remove();(typeof f[a]["required"]=="undefined"||f[a]["required"]==1)&&c.find("label").append(n);a!=="state"&&(f[a]["hidden"]==1?c.fadeOut(200).find("input").val(""):c.fadeIn(500))}else if(m["default"][a]){m["default"][a]["required"]==1&&c.find("label abbr").size()==0&&c.find("label").append(n);a!=="state"&&(typeof m["default"][a]["hidden"]=="undefined"||m["default"][a]["hidden"]==0)&&c.fadeIn(500)}});var h=e.find("#billing_postcode_field, #shipping_postcode_field"),i=e.find("#billing_city_field, #shipping_city_field");if(f.postcode_before_city){if(i.is(".form-row-first")){i.fadeOut(200,function(){i.removeClass("form-row-first").addClass("form-row-last").insertAfter(h).fadeIn(500)});h.fadeOut(200,function(){h.removeClass("form-row-last").addClass("form-row-first").fadeIn(500)})}}else if(i.is(".form-row-last")){i.fadeOut(200,function(){i.removeClass("form-row-last").addClass("form-row-first").insertBefore(h).fadeIn(500)});h.fadeOut(200,function(){h.removeClass("form-row-first").addClass("form-row-last").fadeIn(500)})}})}a("select.country_to_state").change()}); \ No newline at end of file From 8332137cf9770e4c8427c85c150b2842dbf53506 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 17 May 2012 22:26:56 +0100 Subject: [PATCH 23/23] Strange error where detecting the page (is_page etc) would break the canonical redirect in some instances when hooked into 'wp'. Used the later get_header hook instead. --- readme.txt | 4 ++++ woocommerce-hooks.php | 4 ++-- woocommerce.php | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/readme.txt b/readme.txt index 5fcb4e6ab44..446481ea33f 100644 --- a/readme.txt +++ b/readme.txt @@ -147,6 +147,10 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc == Changelog == +== + +* Fix - Strange error where detecting the page (is_page etc) would break the canonical redirect in some instances when hooked into 'wp'. Used the later get_header hook instead. + = 1.5.6 - 17/05/2012 = * Feature - Default display for shipping methods is radio buttons. Before, when methods were enabled/disabled based on coupons or customer, changed methods could go unnoticed. Radio options are always visible. * Feature - Option to display shipping methods as a select box vs. radio buttons diff --git a/woocommerce-hooks.php b/woocommerce-hooks.php index ec8ad178e27..8de46f3b225 100644 --- a/woocommerce-hooks.php +++ b/woocommerce-hooks.php @@ -102,7 +102,7 @@ if ( !is_admin() || defined('DOING_AJAX') ) { /* Shop Page Handling and Support */ add_action( 'template_redirect', 'woocommerce_redirects' ); add_filter( 'wp_nav_menu_objects', 'woocommerce_nav_menu_item_classes', 2, 20 ); -add_action( 'wp', 'woocommerce_front_page_archive_paging_fix', 1 ); +add_action( 'get_header', 'woocommerce_front_page_archive_paging_fix', 1 ); add_action( 'woocommerce_before_shop_loop', 'woocommerce_front_page_archive', 1 ); add_filter( 'wp_list_pages', 'woocommerce_list_pages' ); @@ -111,7 +111,7 @@ add_filter( 'wp_nav_menu_items', 'woocommerce_nav_menu_items', 10, 2 ); /* Clear the cart */ if (get_option('woocommerce_clear_cart_on_logout')=='yes') add_action( 'wp_logout', 'woocommerce_empty_cart' ); -add_action( 'wp', 'woocommerce_clear_cart_after_payment' ); +add_action( 'get_header', 'woocommerce_clear_cart_after_payment' ); /* Disable admin bar */ add_action( 'init', 'woocommerce_disable_admin_bar' ); diff --git a/woocommerce.php b/woocommerce.php index 9d2b8427c62..a97cd7575c8 100644 --- a/woocommerce.php +++ b/woocommerce.php @@ -220,7 +220,7 @@ class Woocommerce { add_filter( 'template_include', array(&$this, 'template_loader') ); add_filter( 'comments_template', array(&$this, 'comments_template_loader') ); add_filter( 'wp_redirect', array(&$this, 'redirect'), 1, 2 ); - add_action( 'wp', array(&$this, 'buffer_checkout') ); + add_action( 'get_header', array(&$this, 'buffer_checkout') ); add_action( 'wp_enqueue_scripts', array(&$this, 'frontend_scripts') ); add_action( 'wp_head', array(&$this, 'generator') ); add_action( 'wp_head', array(&$this, 'wp_head') ); @@ -239,7 +239,7 @@ class Woocommerce { // Actions for SSL if ( ! is_admin() || defined('DOING_AJAX') ) { - add_action( 'wp', array( &$this, 'ssl_redirect' ) ); + add_action( 'get_header', array( &$this, 'ssl_redirect' ) ); $filters = array( 'post_thumbnail_html', 'widget_text', 'wp_get_attachment_url', 'wp_get_attachment_image_attributes', 'wp_get_attachment_url', 'option_siteurl', 'option_homeurl', 'option_home', 'option_url', 'option_wpurl', 'option_stylesheet_url', 'option_template_url', 'script_loader_src', 'style_loader_src', 'template_directory_uri', 'stylesheet_directory_uri', 'site_url' ); foreach ( $filters as $filter ) add_filter( $filter, array( &$this, 'force_ssl') );