diff --git a/admin/woocommerce-admin-settings.php b/admin/woocommerce-admin-settings.php index 4f63caa379a..42bfb9b182e 100644 --- a/admin/woocommerce-admin-settings.php +++ b/admin/woocommerce-admin-settings.php @@ -1101,75 +1101,6 @@ $woocommerce_settings['email'] = apply_filters('woocommerce_email_settings', arr )); // End email settings -$woocommerce_settings['integration'] = apply_filters('woocommerce_intregation_settings', array( - - array( 'name' => __( 'ShareThis', 'woocommerce' ), 'type' => 'title', 'desc' => __('ShareThis offers a sharing widget which will allow customers to share links to products with their friends.', 'woocommerce'), 'id' => 'share_this' ), - - array( - 'name' => __( 'ShareThis Publisher ID', 'woocommerce' ), - 'desc' => sprintf( __( 'Enter your %1$sShareThis publisher ID%2$s to show social sharing buttons on product pages.', 'woocommerce' ), '', '' ), - 'id' => 'woocommerce_sharethis', - 'type' => 'text', - 'std' => '', - 'css' => 'min-width:300px;', - ), - - array( 'type' => 'sectionend', 'id' => 'share_this'), - - array( 'name' => __( 'ShareDaddy', 'woocommerce' ), 'type' => 'title', 'desc' => __('ShareDaddy is a sharing plugin bundled with JetPack.', 'woocommerce'), 'id' => 'sharedaddy' ), - - array( - 'name' => __( 'Output ShareDaddy button?', 'woocommerce' ), - 'desc' => __( 'Enable this option to show the ShareDaddy button (if installed) on the product page.', 'woocommerce' ), - 'id' => 'woocommerce_sharedaddy', - 'type' => 'checkbox', - 'std' => 'no', - ), - - array( 'type' => 'sectionend', 'id' => 'sharedaddy'), - - array( 'name' => __( 'ShareYourCart', 'woocommerce' ), 'type' => 'title', 'desc' => __('ShareYourCart helps you get more customers by motivating satisfied customers to talk with their friends about your products.', 'woocommerce'), 'id' => 'shareyourcart' ), - - array( - 'name' => __( 'ShareYourCart integration', 'woocommerce' ), - 'desc' => __( 'Enable this option to enable ShareYourCart', 'woocommerce' ), - 'id' => 'woocommerce_shareyourcart', - 'type' => 'checkbox', - 'std' => 'no', - ), - - array( 'type' => 'sectionend', 'id' => 'shareyourcart'), - - array( 'name' => __( 'Google Analytics', 'woocommerce' ), 'type' => 'title', 'desc' => __('Google Analytics is a free service offered by Google that generates detailed statistics about the visitors to a website.', 'woocommerce'), 'id' => 'google_analytics' ), - - array( - 'name' => __('Google Analytics ID', 'woocommerce'), - 'desc' => __('Log into your google analytics account to find your ID. e.g. UA-XXXXX-X', 'woocommerce'), - 'id' => 'woocommerce_ga_id', - 'type' => 'text', - 'css' => 'min-width:300px;', - ), - - array( - 'name' => __('Tracking code', 'woocommerce'), - 'desc' => __('Add tracking code to your site\'s footer. You don\'t need to enable this if using a 3rd party analytics plugin.', 'woocommerce'), - 'id' => 'woocommerce_ga_standard_tracking_enabled', - 'type' => 'checkbox', - 'checkboxgroup' => 'start' - ), - - array( - 'name' => __('Tracking code', 'woocommerce'), - 'desc' => __('Add eCommerce tracking code to the thankyou page', 'woocommerce'), - 'id' => 'woocommerce_ga_ecommerce_tracking_enabled', - 'type' => 'checkbox', - 'checkboxgroup' => 'end' - ), - - array( 'type' => 'sectionend', 'id' => 'google_analytics'), - -)); // End integration settings - /** * Settings page * @@ -1179,11 +1110,12 @@ if (!function_exists('woocommerce_settings')) { function woocommerce_settings() { global $woocommerce, $woocommerce_settings; - $current_tab = ( empty( $_GET['tab'] ) ) ? 'general' : urldecode( $_GET['tab'] ); - $current_section = ( empty( $_GET['section'] ) ) ? '' : urldecode( $_GET['section'] ); + $current_tab = ( empty( $_GET['tab'] ) ) ? 'general' : urldecode( $_GET['tab'] ); + $current_section = ( empty( $_REQUEST['section'] ) ) ? '' : urldecode( $_REQUEST['section'] ); // Save settings if ( ! empty( $_POST ) ) { + if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'woocommerce-settings' ) ) die( __( 'Action failed. Please refresh the page and retry.', 'woocommerce' ) ); @@ -1197,7 +1129,6 @@ function woocommerce_settings() { case "shipping" : case "tax" : case "email" : - case "integration" : woocommerce_update_options( $woocommerce_settings[$current_tab] ); break; } @@ -1225,13 +1156,28 @@ function woocommerce_settings() { wp_redirect( $redirect ); exit; } - - // Settings saved message + + // Get any returned messages + $error = ( empty( $_GET['wc_error'] ) ) ? '' : urldecode( stripslashes( $_GET['wc_error'] ) ); + $message = ( empty( $_GET['wc_message'] ) ) ? '' : urldecode( stripslashes( $_GET['wc_message'] ) ); + + if ( $error || $message ) { + + if ( $error ) { + echo '

' . wptexturize( $error ) . '

'; + } else { + echo '

' . wptexturize( $message ) . '

'; + } + + } elseif ( ! empty( $_GET['saved'] ) ) { + + echo '

' . __( 'Your settings have been saved.', 'woocommerce' ) . '

'; + + } + + // Were the settings saved? if ( ! empty( $_GET['saved'] ) ) { - echo '

' . __( 'Your settings have been saved.', 'woocommerce' ) . '

'; - flush_rewrite_rules( false ); - do_action('woocommerce_settings_saved'); } @@ -1317,7 +1263,6 @@ function woocommerce_settings() { case "inventory" : case "tax" : case "email" : - case "integration" : woocommerce_admin_fields( $woocommerce_settings[$current_tab] ); break; case "shipping" : @@ -1460,6 +1405,25 @@ function woocommerce_settings() { echo ''; + break; + case "integration" : + + $integrations = $woocommerce->integrations->get_integrations(); + + $section = empty( $_GET['section'] ) ? key( $integrations ) : urldecode( $_GET['section'] ); + + foreach ( $integrations as $integration ) { + $title = ( isset( $integration->method_title ) && $integration->method_title) ? ucwords( $integration->method_title ) : ucwords( $method->id ); + $current = ( $integration->id == $section ) ? 'class="current"' : ''; + + $links[] = '' . $title . ''; + } + + echo '
'; + + if ( isset( $integrations[ $section ] ) ) + $integrations[ $section ]->admin_options(); + break; default : do_action( 'woocommerce_settings_tabs_' . $current_tab ); diff --git a/assets/css/admin.css b/assets/css/admin.css index 9f43bfcf437..58c646cc4e9 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}#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 #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,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAARklEQVQYGWP8//8/AzGACV3Rnj17/oMwujiGQnQFMD7RChlBbsRmFcwkEO3i4sJImonIumGmg0xBFifaRKIVgj2DbAUuNgCfThpracSKqwAAAABJRU5ErkJggg==) no-repeat left}.wc-metaboxes-wrapper .close_all{padding-left:14px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAKUlEQVQYlWP8//8/Az7AhFeWGAUsDAwMDHv27MFqj4uLCyNBExhp70gAohwKC5KJ+HQAAAAASUVORK5CYII=) 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}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 #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,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAARklEQVQYGWP8//8/AzGACV3Rnj17/oMwujiGQnQFMD7RChlBbsRmFcwkEO3i4sJImonIumGmg0xBFifaRKIVgj2DbAUuNgCfThpracSKqwAAAABJRU5ErkJggg==) no-repeat left}.wc-metaboxes-wrapper .close_all{padding-left:14px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAKUlEQVQYlWP8//8/Az7AhFeWGAUsDAwMDHv27MFqj4uLCyNBExhp70gAohwKC5KJ+HQAAAAASUVORK5CYII=) 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 6c9ccfba38c..0f845efc097 100644 --- a/assets/css/admin.less +++ b/assets/css/admin.less @@ -110,6 +110,12 @@ } } +#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; diff --git a/assets/images/gear.png b/assets/images/gear.png new file mode 100644 index 00000000000..82e3cc747ac Binary files /dev/null and b/assets/images/gear.png differ diff --git a/classes/integrations/class-wc-integration.php b/classes/integrations/class-wc-integration.php new file mode 100644 index 00000000000..acb7fbd2de7 --- /dev/null +++ b/classes/integrations/class-wc-integration.php @@ -0,0 +1,38 @@ + + +

method_title ) ? $this->method_title : __( 'Settings', 'woocommerce' ) ; ?>

+ + method_description ) ? wpautop( $this->method_description ) : ''; ?> + + + generate_settings_html(); ?> +
+ + +
+ + integrations[$load_integration->id] = $load_integration; + + } + + } + + function get_integrations() { + return $this->integrations; + } + +} \ No newline at end of file diff --git a/classes/integrations/google-analytics/class-wc-google-analytics.php b/classes/integrations/google-analytics/class-wc-google-analytics.php new file mode 100644 index 00000000000..123fb76ac72 --- /dev/null +++ b/classes/integrations/google-analytics/class-wc-google-analytics.php @@ -0,0 +1,204 @@ +id = 'google_analytics'; + $this->method_title = __( 'Google Analytics', 'woocommerce' ); + $this->method_description = __( 'Google Analytics is a free service offered by Google that generates detailed statistics about the visitors to a website.', 'woocommerce' ); + + // Load the form fields. + $this->init_form_fields(); + + // Load the settings. + $this->init_settings(); + + // Define user set variables + $this->ga_id = $this->settings['ga_id']; + $this->ga_standard_tracking_enabled = $this->settings['ga_standard_tracking_enabled']; + $this->ga_ecommerce_tracking_enabled = $this->settings['ga_ecommerce_tracking_enabled']; + + // Actions + add_action( 'woocommerce_update_options_integration_google_analytics', array( &$this, 'process_admin_options') ); + + // Tracking code + add_action( 'wp_footer', array( &$this, 'google_tracking_code' ) ); + add_action( 'woocommerce_thankyou', array( &$this, 'ecommerce_tracking_code' ) ); + } + + /** + * Initialise Settings Form Fields + */ + function init_form_fields() { + + $this->form_fields = array( + 'ga_id' => array( + 'title' => __('Google Analytics ID', 'woocommerce'), + 'description' => __('Log into your google analytics account to find your ID. e.g. UA-XXXXX-X', 'woocommerce'), + 'type' => 'text', + 'default' => get_option('woocommerce_ga_id') + ), + 'ga_standard_tracking_enabled' => array( + 'title' => __('Tracking code', 'woocommerce'), + 'label' => __('Add tracking code to your site\'s footer. You don\'t need to enable this if using a 3rd party analytics plugin.', 'woocommerce'), + 'type' => 'checkbox', + 'checkboxgroup' => 'start', + 'default' => get_option('woocommerce_ga_standard_tracking_enabled') ? get_option('woocommerce_ga_standard_tracking_enabled') : 'no' + ), + 'ga_ecommerce_tracking_enabled' => array( + 'label' => __('Add eCommerce tracking code to the thankyou page', 'woocommerce'), + 'type' => 'checkbox', + 'checkboxgroup' => 'end', + 'default' => get_option('woocommerce_ga_ecommerce_tracking_enabled') ? get_option('woocommerce_ga_ecommerce_tracking_enabled') : 'no' + ) + ); + + /** + * Google Analytics standard tracking + **/ + function google_tracking_code() { + global $woocommerce; + + if ( is_admin() || current_user_can('manage_options') || get_option('woocommerce_ga_standard_tracking_enabled') == "no" ) return; + + $tracking_id = get_option('woocommerce_ga_id'); + + if ( ! $tracking_id ) return; + + $loggedin = ( is_user_logged_in() ) ? 'yes' : 'no'; + if ( is_user_logged_in() ) { + $user_id = get_current_user_id(); + $current_user = get_user_by('id', $user_id); + $username = $current_user->user_login; + } else { + $user_id = ''; + $username = __('Guest', 'woocommerce'); + } + ?> + + user_login; + } else { + $user_id = ''; + $username = __('Guest', 'woocommerce'); + } + ?> + + id = 'sharedaddy'; + $this->method_title = __( 'ShareDaddy', 'woocommerce' ); + $this->method_description = __( 'ShareDaddy is a sharing plugin bundled with JetPack.', 'woocommerce' ); + + // Load the form fields. + $this->init_form_fields(); + + // Load the settings. + $this->init_settings(); + + // Define user set variables + $this->enabled = $this->settings['enabled']; + + // Actions + add_action( 'woocommerce_update_options_integration_sharedaddy', array( &$this, 'process_admin_options') ); + + // Share widget + add_action( 'woocommerce_share', array( &$this, 'sharedaddy_code') ); + } + + /** + * Initialise Settings Form Fields + */ + function init_form_fields() { + + $this->form_fields = array( + 'enabled' => array( + 'title' => __( 'Output ShareDaddy button?', 'woocommerce' ), + 'description' => __( 'Enable this option to show the ShareDaddy button on the product page.', 'woocommerce' ), + 'type' => 'checkbox', + 'default' => get_option('woocommerce_sharedaddy') ? get_option('woocommerce_sharedaddy') : 'no' + ) + ); + + } // End init_form_fields() + + + /** + * sharedaddy_code function. + * + */ + function sharedaddy_code() { + global $post; + + if ( $this->enabled == 'yes' && function_exists('sharing_display') ) { + + ?>
id = 'sharethis'; + $this->method_title = __( 'ShareThis', 'woocommerce' ); + $this->method_description = __( 'ShareThis offers a sharing widget which will allow customers to share links to products with their friends.', 'woocommerce' ); + + $this->default_code = '
+ + +
'; + + // Load the form fields. + $this->init_form_fields(); + + // Load the settings. + $this->init_settings(); + + // Define user set variables + $this->publisher_id = $this->settings['publisher_id']; + $this->sharethis_code = $this->settings['sharethis_code']; + + if ( ! $this->sharethis_code ) $this->sharethis_code = $this->default_code; + + // Actions + add_action( 'woocommerce_update_options_integration_sharethis', array( &$this, 'process_admin_options') ); + + // Share widget + add_action( 'woocommerce_share', array( &$this, 'sharethis_code') ); + } + + /** + * Initialise Settings Form Fields + */ + function init_form_fields() { + + $this->form_fields = array( + 'publisher_id' => array( + 'title' => __( 'ShareThis Publisher ID', 'woocommerce' ), + 'description' => sprintf( __( 'Enter your %1$sShareThis publisher ID%2$s to show social sharing buttons on product pages.', 'woocommerce' ), '', '' ), + 'type' => 'text', + 'default' => get_option('woocommerce_sharethis') + ), + 'sharethis_code' => array( + 'title' => __( 'ShareThis Code', 'woocommerce' ), + 'description' => __( 'You can tweak the ShareThis code by editing this option.', 'woocommerce' ), + 'type' => 'textarea', + 'default' => $this->default_code + ) + ); + + } // End init_form_fields() + + + /** + * sharethis_code function. + * + */ + function sharethis_code() { + global $post; + + if ( $this->publisher_id ) { + + $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 ); + + echo ''; + echo ''; + + } + } + +} + +/** + * Add the integration to WooCommerce + **/ +function add_sharethis_integration( $integrations ) { + $integrations[] = 'WC_ShareThis'; return $integrations; +} +add_filter('woocommerce_integrations', 'add_sharethis_integration' ); diff --git a/classes/integrations/shareyourcart/class-shareyourcart-woocommerce.php b/classes/integrations/shareyourcart/class-shareyourcart-woocommerce.php new file mode 100755 index 00000000000..f714aaac0cb --- /dev/null +++ b/classes/integrations/shareyourcart/class-shareyourcart-woocommerce.php @@ -0,0 +1,383 @@ +settings = $settings; + + parent::__construct(); + + //if there is installed another plugin with a never version + //do not load this one further + if (!$this->canLoad()) return; + + // Shortcodes + add_shortcode( 'shareyourcart', array(&$this, 'getButton') ); + add_shortcode( 'shareyourcart_button', array(&$this, 'getButton') ); + + // Actions + add_action( 'init', array(&$this, 'init') ); + add_action( 'wp', array(&$this, 'hook_buttons') ); + add_action( 'wp_head', array(&$this, 'wp_head') ); + } + + function admin_settings_page() { + $this->checkSDKStatus(true); + } + + /** + * processInit function. + * + * @access public + */ + public function init() { + if (isset($_REQUEST['action'])) { + switch ($_REQUEST['action']) { + case $this->_plugin_name: + $this->buttonCallback(); + break; + + case $this->_plugin_name . '_coupon': + $this->couponCallback(); + break; + } + } + } + + /** + * hook_buttons function. + * + * @access public + */ + public function hook_buttons() { + if ( $this->isSingleProduct() ) + add_filter('woocommerce_product_description_heading', array(&$this, '_getProductButton')); + + add_action('woocommerce_cart_coupon', array(&$this, '_getCartButton')); + } + + public function wp_head() { + echo ''; + } + + public function _getProductButton( $title ) { + $title .= $this->getProductButton(); + return $title; + } + + public function _getCartButton() { + echo '
' . $this->getCartButton() . '
'; + } + + public function getSecretKey() { + return '2cfd496d-7812-44ba-91ce-e43c59f6c680'; + } + + public function isSingleProduct() { + return is_singular('product'); + } + + public function saveCoupon( $token, $coupon_code, $coupon_value, $coupon_type ) { + + // Create coupon + $post_id = $this->_saveCouponPost($coupon_code); + + // Set coupon meta + switch ($coupon_type) { + case 'amount': + $discount_type = 'fixed_product'; + $free_shipping = 'no'; + break; + case 'percent': + $discount_type = 'percent_product'; + $free_shipping = 'no'; + break; + case 'free_shipping': + $discount_type = 'fixed_product'; + $coupon_value = 0; + $free_shipping = 'yes'; + break; + default : + $discount_type = 'fixed_cart'; + $free_shipping = 'no'; + } + + update_post_meta( $post_id, 'customer_email', array() ); + update_post_meta( $post_id, 'minimum_amount', '' ); + update_post_meta( $post_id, 'exclude_product_categories', array() ); + update_post_meta( $post_id, 'product_categories', array() ); + update_post_meta( $post_id, 'free_shipping', $free_shipping ); + update_post_meta( $post_id, 'apply_before_tax', 'yes' ); + update_post_meta( $post_id, 'expiry_date', '' ); + update_post_meta( $post_id, 'usage_limit', 1 ); + update_post_meta( $post_id, 'exclude_product_ids', '' ); + update_post_meta( $post_id, 'product_ids', '' ); + update_post_meta( $post_id, 'individual_use', 'yes' ); + update_post_meta( $post_id, 'coupon_amount', $coupon_value ); + update_post_meta( $post_id, 'discount_type', $discount_type ); + + // parent + parent::saveCoupon( $token, $coupon_code, $coupon_value, $coupon_type ); + } + + public function applyCoupon( $coupon_code ) {} + + private function _saveCouponPost($coupon_code) { + $new_post = array( + 'post_title' => $coupon_code, + 'post_name' => ereg_replace("[^A-Za-z0-9]", "", $coupon_code), + 'post_content' => '', + 'post_status' => 'publish', + 'comment_status'=> 'closed', + 'ping_status' => 'closed', + 'post_author' => $this->_post_user_id, + 'post_type' => 'shop_coupon' + ); + + $post_id = wp_insert_post($new_post); + + return $post_id; + } + + public function getButtonCallbackURL() { + global $wp_query; + + $callback_url = add_query_arg( 'action', $this->_plugin_name, trailingslashit( home_url() ) ); + + if ($this->isSingleProduct()) { + $callback_url .= '&p='. $wp_query->post->ID; + } + + return $callback_url; + } + + public function buttonCallback() { + + //specify the parameters + $params = array( + 'callback_url' => get_bloginfo('wpurl').'/?action='.$this->_plugin_name.'_coupon'.(isset($_REQUEST['p']) ? '&p='.$_REQUEST['p'] : '' ), + 'success_url' => get_option('shopping_cart_url'), + 'cancel_url' => get_option('shopping_cart_url'), + ); + + //there is no product set, thus send the products from the shopping cart + if (!isset($_REQUEST['p'])) { + if (empty($_SESSION['cart'])) + exit("Cart is empty"); + + foreach ($_SESSION['cart'] as $cart_details) { + $params['cart'][] = $this->_getProductDetails($cart_details['product_id']); + } + } + else { + $params['cart'][] = $this->_getProductDetails($_GET['p']); + } + + try + { + $this->startSession($params); + } + catch(Exception $e) { + //display the error to the user + echo $e->getMessage(); + } + exit; + } + + private function _getProductDetails($product_id) { + $product = new WC_Product($product_id); + + ob_start(); + + $product->get_image(); + + $image = ob_get_clean(); + + return array( + "item_name" => $product->get_title(), + "item_description" => $product->post->post_content, + "item_url" => $product->post->guid, + "item_price" => $product->price, + "item_picture_url" => $image, + ); + } + + public function loadSessionData() { + return; + } + + /** + * + * Get the plugin version. + * @return an integer + * + */ + protected function getPluginVersion() { + + return self::$_VERSION; + } + + /** + * + * Return the project's URL + * + */ + protected function getDomain() { + + return get_bloginfo('url'); + } + + /** + * + * Return the admin's email + * + */ + protected function getAdminEmail() { + + return get_settings('admin_email'); + } + + /** + * + * Set the field value + * + */ + public function setConfigValue($field, $value) { + $this->settings[$field] = $value; + update_option( 'woocommerce_shareyourcart_settings', $this->settings ); + } + + /** + * + * Get the field value + * + */ + protected function getConfigValue( $field ) { + + switch ( $field ) { + case "clientId" : + return $this->settings['client_id']; + case "hide_on_checkout" : + return ( $this->settings['show_on_cart'] == 'yes' ) ? false : true; + case "hide_on_product" : + return ( $this->settings['show_on_product'] == 'yes' ) ? false : true; + case "appKey" : + return $this->settings['app_key']; + case "account_status" : + return 'active'; + case "button_type" : + + if ( $this->settings['button_style'] == 'image_button' ) return 2; + if ( $this->settings['button_style'] == 'custom_html' ) return 3; + + return 1; // Standard + + break; + default : + return ( isset( $this->settings[$field] ) ) ? $this->settings[$field] : ''; + } + + } + + /** + * + * Execute the SQL statement + * + */ + protected function executeNonQuery($sql) { + + if (substr($sql, 0, 12) == "CREATE TABLE") { + + require_once ABSPATH . 'wp-admin/includes/upgrade.php'; + + //if this is a create table command, use the special function which compares tables + dbDelta($sql); + + } else { + + global $wpdb; + + //use the normal query + $wpdb->query($sql); + } + } + + /** + * + * Get the row returned from the SQL + * + * @return an associative array containing the data of the row OR NULL + * if there is none + */ + protected function getRow($sql) { + + global $wpdb; + + //get the row as an associative array + return $wpdb->get_row($sql, ARRAY_A); + } + + /** + * + * Get the table name based on the key + * + */ + protected function getTableName($key) { + global $wpdb; + + return $wpdb->base_prefix . $key; + } + + /** + * + * Insert the row into the specified table + * + */ + protected function insertRow($tableName, $data) { + global $wpdb; + + $wpdb->insert($tableName, $data); + } + + /** + * + * Create url for the specified file. The file must be specified in relative path + * to the base of the plugin + */ + protected function createUrl($file) { + //get the real file path + $file = realpath($file); + + //calculate the relative path from this file + $file = SyC::relativepath(dirname(__FILE__), $file); + + //append the relative path to the current file's URL + return WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__), "", plugin_basename(__FILE__)).$file; + } + + /* + * + * Called when a new coupon is generated + * + */ + public function couponCallback() { + + parent::couponCallback(); + + //since this is actually an API, exit + exit; + } + +} \ No newline at end of file diff --git a/classes/integrations/shareyourcart/class-wc-shareyourcart.php b/classes/integrations/shareyourcart/class-wc-shareyourcart.php new file mode 100644 index 00000000000..636fcd13c51 --- /dev/null +++ b/classes/integrations/shareyourcart/class-wc-shareyourcart.php @@ -0,0 +1,373 @@ +id = 'shareyourcart'; + $this->method_title = __( 'ShareYourCart', 'woocommerce' ); + $this->method_description = sprintf( __( 'Increase your social media exposure by 10 percent! ShareYourCart helps you get more customers by motivating satisfied customers to talk with their friends about your products. For help with ShareYourCart view the documentation.', 'woocommerce' ), 'http://www.woothemes.com/woocommerce-docs/user-guide/shareyourcart/' ); + + // Load the form fields. + $this->init_form_fields(); + + // Load the settings. + $this->init_settings(); + + // Define user set variables + $this->enabled = $this->settings['enabled']; + $this->client_id = $this->settings['client_id']; + $this->app_key = $this->settings['app_key']; + $this->email = $this->settings['email']; + + // Actions + add_action( 'woocommerce_update_options_integration_shareyourcart', array( &$this, 'process_admin_options') ); + add_action( 'woocommerce_update_options_integration_shareyourcart', array( &$this, 'process_forms') ); + + // Actions if enabled + if ( $this->enabled == 'yes' ) { + add_action( 'wp_enqueue_scripts', array(&$this, 'styles') ); + + // Share your cart api class + include_once('class-shareyourcart-woocommerce.php'); + + // Init the class + $this->shareYourCartWooCommerce = new ShareYourCartWooCommerce( $this->settings ); + } + } + + /** + * styles function. + * + * @access public + * @return void + */ + public function styles() { + wp_enqueue_style( 'shareyourcart', plugins_url( 'css/style.css', __FILE__ ) ); + } + + /** + * process_forms function. + * + * @access public + */ + function process_forms() { + + if ( ! empty( $_REQUEST['syc-account'] ) && $_REQUEST['syc-account'] == 'create' ) { + + $error = $message = ''; + + $redirect = remove_query_arg( 'saved' ); + $redirect = remove_query_arg( 'wc_error', $redirect ); + $redirect = remove_query_arg( 'wc_message', $redirect ); + + if ( ! empty( $_POST['domain'] ) && ! empty( $_POST['email'] ) && ! empty( $_POST['syc-terms-agreement'] ) ) { + if ( ! ( ( $register = $this->shareYourCartWooCommerce->register( $this->shareYourCartWooCommerce->getSecretKey(), $_POST['domain'], $_POST['email'], $message ) ) === false) ) { + + $this->shareYourCartWooCommerce->setConfigValue('app_key', $register['app_key']); + $this->shareYourCartWooCommerce->setConfigValue('client_id', $register['client_id']); + + $redirect = remove_query_arg( 'syc-account', $redirect ); + } else { + + $error = $message; + + if ( json_decode($error) ) { + $error = json_decode($error); + $error = $error->message; + } + + $message = ''; + + } + + } else { + + $error = __( 'Please complete all fields.', 'woocommerce' ); + + } + + if ( $error ) $redirect = add_query_arg( 'wc_error', urlencode( esc_attr( $error ) ), $redirect ); + if ( $message ) $redirect = add_query_arg( 'wc_message', urlencode( esc_attr( $message ) ), $redirect ); + + wp_safe_redirect( $redirect ); + exit; + + } elseif ( ! empty( $_REQUEST['syc-account'] ) && $_REQUEST['syc-account'] == 'recover' ) { + + $error = $message = ''; + + $redirect = remove_query_arg( 'saved' ); + $redirect = remove_query_arg( 'wc_error', $redirect ); + $redirect = remove_query_arg( 'wc_message', $redirect ); + + if ( ! empty( $_POST['domain'] ) && ! empty( $_POST['email'] ) ) { + + if ( ! $this->shareYourCartWooCommerce->recover( $this->shareYourCartWooCommerce->getSecretKey(), $_POST['domain'], $_POST['email'], $message ) ) { + + $error = $message; + + if ( json_decode($error) ) { + $error = json_decode($error); + $error = $error->message; + } + + $message = ''; + + } else { + $redirect = remove_query_arg( 'syc-account', $redirect ); + } + + } else { + + $error = __( 'Please complete all fields.', 'woocommerce' ); + + } + + if ( $error ) $redirect = add_query_arg( 'wc_error', urlencode( esc_attr( $error ) ), $redirect ); + if ( $message ) $redirect = add_query_arg( 'wc_message', urlencode( esc_attr( $message ) ), $redirect ); + + wp_safe_redirect( $redirect ); + exit; + + } + + } + + /** + * Admin Options + * + * Setup the gateway settings screen. + * Override this in your gateway. + * + * @since 1.0.0 + */ + function admin_options() { + + if ( $this->enabled == 'yes' ) { + // Installation + $this->shareYourCartWooCommerce->install(); + + // Check status + $this->shareYourCartWooCommerce->admin_settings_page(); + } + ?> + + client_id && ! $this->app_key ) { + + if ( ! empty( $_REQUEST['syc-account'] ) && $_REQUEST['syc-account'] == 'create' ) { + + ?> +
+

+ + + + + + + + + + + + + +
 
+

+
+ +
+

+ + + + + + + + + +
+

+
+ +
+ + method_description; ?> +

+
+ ShareYourCart'; + echo wpautop( $this->method_description ); + } + ?> + + + generate_settings_html(); ?> + client_id && $this->app_key ) : ?> + + + + + +
+

+

+
+ + + +
+ + form_fields = array( + 'enabled' => array( + 'title' => __( 'Enable/Disable', 'woocommerce' ), + 'label' => __( 'Enable ShareYourCart integration', 'woocommerce' ), + 'type' => 'checkbox', + 'default' => 'no', + ), + 'client_id' => array( + 'title' => __( 'Client ID', 'woocommerce' ), + 'description' => __( 'Get your client ID by creating a ShareYourCart account.', 'woocommerce' ), + 'type' => 'text', + 'default' => '', + 'css' => 'width: 300px' + ), + 'app_key' => array( + 'title' => __( 'App Key', 'woocommerce' ), + 'description' => __( 'Get your app key by creating a ShareYourCart account.', 'woocommerce' ), + 'type' => 'text', + 'default' => '', + 'css' => 'width: 300px' + ), + 'email' => array( + 'title' => __( 'Email address', 'woocommerce' ), + 'description' => __( 'The email address you used to sign up for ShareYourCart.', 'woocommerce' ), + 'type' => 'text', + 'default' => get_option('admin_email'), + 'css' => 'width: 300px' + ), + 'show_on_product' => array( + 'title' => __( 'Show button by default on:', 'woocommerce' ), + 'label' => __( 'Product page', 'woocommerce' ), + 'type' => 'checkbox', + 'default' => 'yes', + ), + 'show_on_cart' => array( + 'label' => __( 'Cart page', 'woocommerce' ), + 'type' => 'checkbox', + 'default' => 'yes', + ), + 'button_style' => array( + 'title' => __( 'Button style', 'woocommerce' ), + 'description' => __( 'Select a style for your share buttons', 'woocommerce' ), + 'default' => 'standard_button', + 'type' => 'select', + 'options' => array( + 'standard_button' => __( 'Standard Button', 'woocommerce' ), + 'custom_html' => __( 'Custom HTML', 'woocommerce' ) + ) + ), + 'button_skin' => array( + 'title' => __( 'Button skin', 'woocommerce' ), + 'description' => __( 'Select a skin for your share buttons', 'woocommerce' ), + 'default' => 'orange', + 'type' => 'select', + 'options' => array( + 'orange' => __( 'Orange', 'woocommerce' ), + 'blue' => __( 'Blue', 'woocommerce' ), + 'light' => __( 'Light', 'woocommerce' ), + 'dark' => __( 'Dark', 'woocommerce' ) + ), + 'class' => 'standard_button' + ), + 'button_position' => array( + 'title' => __( 'Button position', 'woocommerce' ), + 'description' => __( 'Where should the button be positioned?', 'woocommerce' ), + 'default' => 'normal', + 'type' => 'select', + 'options' => array( + 'normal' => __( 'Normal', 'woocommerce' ), + 'floating' => __( 'Floating', 'woocommerce' ) + ), + 'class' => 'standard_button' + ), + 'button_html' => array( + 'title' => __( 'HTML for the button', 'woocommerce' ), + 'description' => __( 'Enter the HTML code for your custom button.', 'woocommerce' ), + 'default' => '', + 'type' => 'textarea', + 'class' => 'custom_html' + ) + ); + + } // End init_form_fields() + +} + +/** + * Add the integration to WooCommerce + **/ +function add_shareyourcart_integration( $integrations ) { + if ( ! class_exists('ShareYourCartAPI') ) // Only allow this integration if we're not already using shareyourcart via another plugin + $integrations[] = 'WC_ShareYourCart'; + return $integrations; +} +add_filter('woocommerce_integrations', 'add_shareyourcart_integration' ); diff --git a/classes/integrations/shareyourcart/css/style.css b/classes/integrations/shareyourcart/css/style.css new file mode 100644 index 00000000000..1493868f54f --- /dev/null +++ b/classes/integrations/shareyourcart/css/style.css @@ -0,0 +1,24 @@ +.button_iframe iframe { + width: 58px; + height: 230px; + position: fixed; + top:360px; + right:0px; +} + +.button_iframe-normal iframe { + float:right; + height: 58px; + width: 230px; + position:relative; + z-index:1000; +} + +.button_iframe-normal.button_height { + height: 60px; +} + +#shareyourcart_button { + margin: .5em 0 0; + overflow: hidden; +} \ No newline at end of file diff --git a/integration/shareyourcart/sdk/class.shareyourcart-api.php b/classes/integrations/shareyourcart/sdk/class.shareyourcart-api.php similarity index 100% rename from integration/shareyourcart/sdk/class.shareyourcart-api.php rename to classes/integrations/shareyourcart/sdk/class.shareyourcart-api.php diff --git a/integration/shareyourcart/sdk/class.shareyourcart-base.php b/classes/integrations/shareyourcart/sdk/class.shareyourcart-base.php similarity index 93% rename from integration/shareyourcart/sdk/class.shareyourcart-base.php rename to classes/integrations/shareyourcart/sdk/class.shareyourcart-base.php index cc76c428c0d..9ff4bb7f2a8 100755 --- a/integration/shareyourcart/sdk/class.shareyourcart-base.php +++ b/classes/integrations/shareyourcart/sdk/class.shareyourcart-base.php @@ -1,4 +1,5 @@ getConfigValue("btn-img-h"); $button_img_hover_width = $this->getConfigValue("btn-img-h-width"); $button_img_hover_height = $this->getConfigValue("btn-img-h-height"); - - $is_product_page = $this->isSingleProduct(); switch ($current_button_type) { @@ -690,7 +689,7 @@ abstract class ShareYourCartBase extends ShareYourCartAPI { } //make sure there is a session variable setup - if ( ! session_id() ) session_start(); + session_start(); //since switching the API status has a great impact on how the UI looks, refresh the page //just to make sure the UI is using the latest value @@ -765,7 +764,7 @@ abstract class ShareYourCartBase extends ShareYourCartAPI { if($_FILES["button-img"]["name"]!='') { - $target_path = $this->getUploadDir(); + $target_path = dirname(__FILE__). "/img/"; $target_path = $target_path . 'button-img.png'; @@ -783,7 +782,7 @@ abstract class ShareYourCartBase extends ShareYourCartAPI { } if($_FILES["button-img-hover"]["name"]!='') { - $target_path = $this->getUploadDir(); + $target_path = dirname(__FILE__). "/img/"; $target_path = $target_path . 'btn-img-hover.png'; @@ -819,10 +818,6 @@ abstract class ShareYourCartBase extends ShareYourCartAPI { include(dirname(__FILE__) . '/views/button-settings-page.php'); return ob_get_clean(); } - - public function getUploadDir(){ - return dirname(_FILE_). "/img/"; - } /** * showDocumentation @@ -959,7 +954,7 @@ abstract class ShareYourCartBase extends ShareYourCartAPI { //we can't relly on the fact that the table has been properly created, so check it! if(!$this->existsTable($tableName)) - throw new Exception(SyC::t('sdk','Cannot create table "{table_name}". Check your database permissions or manually run the following SQL command and try again:
{sql}', array('{table_name}' => $tableName,'{sql}' => nl2br($sql)))); + throw new Exception(SyC::t('sdk','Cannot create table "{table_name}". Check your database permissions.', array('{table_name}' => $tableName))); } /** @@ -982,12 +977,11 @@ abstract class ShareYourCartBase extends ShareYourCartAPI { */ protected function dropTable($tableName) { - $sql = "DROP TABLE $tableName"; - $this->executeNonQuery($sql); + $this->executeNonQuery("DROP TABLE $tableName"); //we can't relly on the fact that the table has been properly droped, so check it! - if($this->existsTable($tableName)) - throw new Exception(SyC::t('sdk','Cannot drop table "{table_name}". Check your database permissions or manually run the following SQL command and try again:
{sql}', array('{table_name}' => $tableName, '{sql}' => nl2br($sql)))); + if(!$this->existsTable($tableName)) + throw new Exception(SyC::t('sdk','Cannot drop table "{table_name}". Check your database permissions.', array('{table_name}' => $tableName))); } /** diff --git a/integration/shareyourcart/sdk/css/admin-style.css b/classes/integrations/shareyourcart/sdk/css/admin-style.css similarity index 100% rename from integration/shareyourcart/sdk/css/admin-style.css rename to classes/integrations/shareyourcart/sdk/css/admin-style.css diff --git a/integration/shareyourcart/sdk/css/ie.css b/classes/integrations/shareyourcart/sdk/css/ie.css similarity index 100% rename from integration/shareyourcart/sdk/css/ie.css rename to classes/integrations/shareyourcart/sdk/css/ie.css diff --git a/integration/shareyourcart/sdk/css/style.css b/classes/integrations/shareyourcart/sdk/css/style.css similarity index 87% rename from integration/shareyourcart/sdk/css/style.css rename to classes/integrations/shareyourcart/sdk/css/style.css index 636d056b8f4..a61acdae2a5 100755 --- a/integration/shareyourcart/sdk/css/style.css +++ b/classes/integrations/shareyourcart/sdk/css/style.css @@ -8,7 +8,7 @@ .button_iframe-normal iframe { float:right; - height: 78px; + height: 58px; width: 230px; position:relative; z-index:1000; diff --git a/classes/integrations/shareyourcart/sdk/img/btn-img-hover.png b/classes/integrations/shareyourcart/sdk/img/btn-img-hover.png new file mode 100755 index 00000000000..32f01d5a6aa Binary files /dev/null and b/classes/integrations/shareyourcart/sdk/img/btn-img-hover.png differ diff --git a/integration/shareyourcart/sdk/img/button-img-hover.png b/classes/integrations/shareyourcart/sdk/img/button-img-hover.png similarity index 100% rename from integration/shareyourcart/sdk/img/button-img-hover.png rename to classes/integrations/shareyourcart/sdk/img/button-img-hover.png diff --git a/classes/integrations/shareyourcart/sdk/img/button-img.png b/classes/integrations/shareyourcart/sdk/img/button-img.png new file mode 100755 index 00000000000..93e4980dfe9 Binary files /dev/null and b/classes/integrations/shareyourcart/sdk/img/button-img.png differ diff --git a/integration/shareyourcart/sdk/img/pixel.gif b/classes/integrations/shareyourcart/sdk/img/pixel.gif similarity index 100% rename from integration/shareyourcart/sdk/img/pixel.gif rename to classes/integrations/shareyourcart/sdk/img/pixel.gif diff --git a/integration/shareyourcart/sdk/img/shareyourcart-logo.png b/classes/integrations/shareyourcart/sdk/img/shareyourcart-logo.png similarity index 100% rename from integration/shareyourcart/sdk/img/shareyourcart-logo.png rename to classes/integrations/shareyourcart/sdk/img/shareyourcart-logo.png diff --git a/integration/shareyourcart/sdk/img/shareyourcart.png b/classes/integrations/shareyourcart/sdk/img/shareyourcart.png similarity index 100% rename from integration/shareyourcart/sdk/img/shareyourcart.png rename to classes/integrations/shareyourcart/sdk/img/shareyourcart.png diff --git a/integration/shareyourcart/sdk/img/spacer.png b/classes/integrations/shareyourcart/sdk/img/spacer.png similarity index 100% rename from integration/shareyourcart/sdk/img/spacer.png rename to classes/integrations/shareyourcart/sdk/img/spacer.png diff --git a/integration/shareyourcart/sdk/messages/config.php b/classes/integrations/shareyourcart/sdk/messages/config.php similarity index 100% rename from integration/shareyourcart/sdk/messages/config.php rename to classes/integrations/shareyourcart/sdk/messages/config.php diff --git a/integration/shareyourcart/sdk/messages/cs/sdk.php b/classes/integrations/shareyourcart/sdk/messages/cs/sdk.php similarity index 100% rename from integration/shareyourcart/sdk/messages/cs/sdk.php rename to classes/integrations/shareyourcart/sdk/messages/cs/sdk.php diff --git a/integration/shareyourcart/sdk/messages/fr/sdk.php b/classes/integrations/shareyourcart/sdk/messages/fr/sdk.php similarity index 100% rename from integration/shareyourcart/sdk/messages/fr/sdk.php rename to classes/integrations/shareyourcart/sdk/messages/fr/sdk.php diff --git a/integration/shareyourcart/sdk/messages/ro/sdk.php b/classes/integrations/shareyourcart/sdk/messages/ro/sdk.php similarity index 100% rename from integration/shareyourcart/sdk/messages/ro/sdk.php rename to classes/integrations/shareyourcart/sdk/messages/ro/sdk.php diff --git a/integration/shareyourcart/sdk/views/account-create-partial.php b/classes/integrations/shareyourcart/sdk/views/account-create-partial.php similarity index 93% rename from integration/shareyourcart/sdk/views/account-create-partial.php rename to classes/integrations/shareyourcart/sdk/views/account-create-partial.php index 220a8b125a5..35e1834dcd8 100755 --- a/integration/shareyourcart/sdk/views/account-create-partial.php +++ b/classes/integrations/shareyourcart/sdk/views/account-create-partial.php @@ -1,4 +1,3 @@ - diff --git a/integration/shareyourcart/sdk/views/account-recover-partial.php b/classes/integrations/shareyourcart/sdk/views/account-recover-partial.php similarity index 89% rename from integration/shareyourcart/sdk/views/account-recover-partial.php rename to classes/integrations/shareyourcart/sdk/views/account-recover-partial.php index 69a6a2b1851..6b38a8da6d2 100755 --- a/integration/shareyourcart/sdk/views/account-recover-partial.php +++ b/classes/integrations/shareyourcart/sdk/views/account-recover-partial.php @@ -1,4 +1,3 @@ - diff --git a/integration/shareyourcart/sdk/views/admin-header.php b/classes/integrations/shareyourcart/sdk/views/admin-header.php similarity index 90% rename from integration/shareyourcart/sdk/views/admin-header.php rename to classes/integrations/shareyourcart/sdk/views/admin-header.php index 1950124d25c..df04b5f6a34 100755 --- a/integration/shareyourcart/sdk/views/admin-header.php +++ b/classes/integrations/shareyourcart/sdk/views/admin-header.php @@ -1,4 +1,3 @@ - diff --git a/integration/shareyourcart/sdk/views/button-custom.php b/classes/integrations/shareyourcart/sdk/views/button-custom.php similarity index 54% rename from integration/shareyourcart/sdk/views/button-custom.php rename to classes/integrations/shareyourcart/sdk/views/button-custom.php index 039cdc8ff12..a986ff6a1b4 100755 --- a/integration/shareyourcart/sdk/views/button-custom.php +++ b/classes/integrations/shareyourcart/sdk/views/button-custom.php @@ -1,13 +1,11 @@ - -" data-syc-layout="custom"> + data-syc-layout="custom"> - \ No newline at end of file + \ No newline at end of file diff --git a/integration/shareyourcart/sdk/views/button-img.php b/classes/integrations/shareyourcart/sdk/views/button-img.php similarity index 87% rename from integration/shareyourcart/sdk/views/button-img.php rename to classes/integrations/shareyourcart/sdk/views/button-img.php index 7c9e01be680..5372066a054 100755 --- a/integration/shareyourcart/sdk/views/button-img.php +++ b/classes/integrations/shareyourcart/sdk/views/button-img.php @@ -1,6 +1,4 @@ -" data-syc-layout="custom"> + data-syc-layout="custom"> ShareYourCart Discount @@ -50,11 +48,11 @@ } ?> - \ No newline at end of file + \ No newline at end of file diff --git a/integration/shareyourcart/sdk/views/button-settings-page.php b/classes/integrations/shareyourcart/sdk/views/button-settings-page.php similarity index 97% rename from integration/shareyourcart/sdk/views/button-settings-page.php rename to classes/integrations/shareyourcart/sdk/views/button-settings-page.php index 86dc01f3bac..21589fb9359 100755 --- a/integration/shareyourcart/sdk/views/button-settings-page.php +++ b/classes/integrations/shareyourcart/sdk/views/button-settings-page.php @@ -1,4 +1,3 @@ - isActive()) return; //if the plugin is not active, do not show this page ?> \ No newline at end of file diff --git a/integration/shareyourcart/sdk/views/documentation.php b/classes/integrations/shareyourcart/sdk/views/documentation.php similarity index 97% rename from integration/shareyourcart/sdk/views/documentation.php rename to classes/integrations/shareyourcart/sdk/views/documentation.php index 5fcb17f8287..7f679ecb380 100755 --- a/integration/shareyourcart/sdk/views/documentation.php +++ b/classes/integrations/shareyourcart/sdk/views/documentation.php @@ -1,4 +1,3 @@ - isActive()) return; //if the plugin is not active, do not show this page ?> - + \ No newline at end of file diff --git a/integration/shareyourcart/sdk/views/update-notification-partial.php b/classes/integrations/shareyourcart/sdk/views/update-notification-partial.php similarity index 80% rename from integration/shareyourcart/sdk/views/update-notification-partial.php rename to classes/integrations/shareyourcart/sdk/views/update-notification-partial.php index 1a349f89d90..ee6bde3c5e0 100755 --- a/integration/shareyourcart/sdk/views/update-notification-partial.php +++ b/classes/integrations/shareyourcart/sdk/views/update-notification-partial.php @@ -1,4 +1,3 @@ - hasNewerVersion()): //if there is a newer version, show the upgrade message?>
is available! {link}Please update now.', array('{version}' => $this->getConfigValue('latest_version'), '{link}' => '')); ?> diff --git a/integration/shareyourcart/class.shareyourcart-wp-woo-commerce.php b/integration/shareyourcart/class.shareyourcart-wp-woo-commerce.php deleted file mode 100755 index 07a5dad2f08..00000000000 --- a/integration/shareyourcart/class.shareyourcart-wp-woo-commerce.php +++ /dev/null @@ -1,258 +0,0 @@ -_plugin_name: - $this->buttonCallback(); - break; - - case $this->_plugin_name.'_coupon': - $this->couponCallback(); - break; - } - } - } - - public function isCartActive() { - return true; - } - - /* - * - * Extend the base class implementation - * - */ - public function pluginsLoadedHook() { - parent::pluginsLoadedHook(); - - if (!$this->isCartActive()) return; - - add_action('init', array(&$this, 'processInit')); - - $this->_hookButton(); - } - - private function _hookButton() { - if ($this->isCartActive()) { - if (isset($_GET['product'])) - add_filter('woocommerce_product_description_heading', array(&$this, '_getProductButton')); - - add_action('woocommerce_cart_contents', array(&$this, '_getCartButton')); - } - } - - public function _getProductButton() { - $passed_arguments = func_get_args(); - $description = array_shift($passed_arguments); - $ret = $description; - $ret .= $this->getProductButton(); - return $ret; - } - - public function _getCartButton() { - $ret = ""; - $ret .= '
'; - $ret .= $this->getCartButton(); - $ret .= '
'; - $ret .= ''; - echo $ret; - } - - public function getSecretKey() { - return '2cfd496d-7812-44ba-91ce-e43c59f6c680'; - } - - public function isSingleProduct() { - return isset($_GET['product']) ? true : false; - } - - public function saveCoupon($token, $coupon_code, $coupon_value, $coupon_type) { - $post_id = $this->_saveCouponPost($coupon_code); - - $this->_saveCouponMetaData($post_id, $this->_getCouponMetaData($coupon_type, $coupon_value)); - - parent::saveCoupon($token, $coupon_code, $coupon_value, $coupon_type); - } - - public function applyCoupon($coupon_code) { - //$this->_loadWooCommerce(); - - //global $woocommerce; - //$woocommerce->cart->add_discount($coupon_code); - - return; - } - - private function _saveCouponPost($coupon_code) { - $new_post = array( - 'post_title' => $coupon_code, - 'post_name' => ereg_replace("[^A-Za-z0-9]", "", $coupon_code), - 'post_content' => '', - 'post_status' => 'publish', - 'comment_status'=> 'closed', - 'ping_status' => 'closed', - 'post_date' => date('Y-m-d H:i:s'), - 'post_author' => $this->_post_user_id, - 'post_type' => 'shop_coupon', - 'post_category' => array(0) - ); - - $post_id = wp_insert_post($new_post); - - $new_post['ID'] = $post_id; - $new_post['guid']= get_bloginfo('url').'/?post_type=shop_coupon&p='.$post_id; - - wp_update_post($new_post); - - return $post_id; - } - - private function _saveCouponMetaData($post_id, $metas) { - foreach ($metas as $meta_key=>$meta_value) { - $this->_saveSingleCouponMetaData($post_id, $meta_key, $meta_value); - } - } - - private function _saveSingleCouponMetaData($post_id, $meta_key, $meta_value) { - $this->insertRow($this->getTableName('postmeta'), - array('post_id' => $post_id, - 'meta_key' => $meta_key, - 'meta_value' => $meta_value, - )); - } - - private function _getCouponMetaData($coupon_type, $discount_value) { - switch ($coupon_type) { - case 'amount': - $discount_type = 'fixed_product'; - $free_shipping = 'no'; - break; - case 'percent': - $discount_type = 'percent_product'; - $free_shipping = 'no'; - break; - case 'free_shipping': - $discount_type = 'fixed_product'; - $discount_value = 0; - $free_shipping = 'yes'; - break; - default : - $discount_type = 'fixed_cart'; - $free_shipping = 'no'; - } - - return array( - 'customer_email' => 'a:0:{}', - 'minimum_amount' => '', - 'exclude_product_categories' => 'a:0:{}', - 'product_categories' => 'a:0:{}', - 'free_shipping' => $free_shipping, - 'apply_before_tax' => 'yes', - 'expiry_date' => '', - 'usage_limit' => 1, - 'exclude_product_ids' => '', - 'product_ids' => '', - 'individual_use' => 'yes', - 'coupon_amount' => $discount_value, - 'discount_type' => $discount_type, - '_edit_lock' => '1333727222:1', - ); - } - - public function getButtonCallbackURL() { - global $wp_query; - - $callback_url = get_bloginfo('wpurl').'/?action='.$this->_plugin_name; - - if ($this->isSingleProduct()) { - $callback_url .= '&p='. $wp_query->post->ID; - } - - return $callback_url; - } - - public function buttonCallback() { - if (!$this->isCartActive()) return; - - $this->_loadWooCommerce(); - - //specify the parameters - $params = array( - 'callback_url' => get_bloginfo('wpurl').'/?action='.$this->_plugin_name.'_coupon'.(isset($_REQUEST['p']) ? '&p='.$_REQUEST['p'] : '' ), - 'success_url' => get_option('shopping_cart_url'), - 'cancel_url' => get_option('shopping_cart_url'), - ); - - //there is no product set, thus send the products from the shopping cart - if (!isset($_REQUEST['p'])) { - if (empty($_SESSION['cart'])) - exit("Cart is empty"); - - foreach ($_SESSION['cart'] as $cart_details) { - $params['cart'][] = $this->_getProductDetails($cart_details['product_id']); - } - } - else { - $params['cart'][] = $this->_getProductDetails($_GET['p']); - } - - try - { - $this->startSession($params); - } - catch(Exception $e) { - //display the error to the user - echo $e->getMessage(); - } - exit; - } - - private function _getProductDetails($product_id) { - $product = new WC_Product($product_id); - - ob_start(); - - $product->get_image(); - - $image = ob_get_clean(); - - return array( - "item_name" => $product->get_title(), - "item_description" => $product->post->post_content, - "item_url" => $product->post->guid, - "item_price" => $product->price, - "item_picture_url" => $image, - ); - } - - public function loadSessionData() { - return; - } - - private function _loadWooCommerce() { - // Sometimes the WooCommerce Class is not loaded... - - if (!class_exists('Woocommerce', false)) { - require_once ABSPATH . 'wp-content/plugins/woocommerce/woocommerce.php'; - } - - // Important Classes Not included - if (!function_exists('has_post_thumbnail')) { - require_once ABSPATH . 'wp-includes/post-thumbnail-template.php'; - } - } -} - -$shareYourCartWooCommerce = new ShareYourCartWooCommerce(); diff --git a/integration/shareyourcart/sdk/img/button-img.png b/integration/shareyourcart/sdk/img/button-img.png deleted file mode 100755 index e80357e99e3..00000000000 Binary files a/integration/shareyourcart/sdk/img/button-img.png and /dev/null differ diff --git a/integration/shareyourcart/sdk/views/button.php b/integration/shareyourcart/sdk/views/button.php deleted file mode 100755 index 74ad179213e..00000000000 --- a/integration/shareyourcart/sdk/views/button.php +++ /dev/null @@ -1,13 +0,0 @@ - -
getConfigValue('button_position') == 'floating' ? 'button_iframe' : 'button_iframe-normal');?> getConfigValue('dont_set_height') ? 'button_height' : ''); ?>" data-syc-skin="getConfigValue('button_skin');?>" data-syc-orientation="getConfigValue('button_position'); ?>" > -ShareYourCart Discount - - - \ No newline at end of file diff --git a/readme.txt b/readme.txt index 7545da3e7cc..370ab416098 100644 --- a/readme.txt +++ b/readme.txt @@ -28,8 +28,8 @@ Keep a birds-eye view of incoming sales and reviews, stock levels and general st = FEATURES = Seriously, WooCommerce has got more features than you can shake a stick at. But don’t just take our word for it, try it for yourself. -= BUNDLED GATEWAYS AND SHIPPING = -WooCommerce has enough power to be used straight out of the box and comes with the following payment gateways and shipping methods: += BUNDLED GATEWAYS, SHIPPING AND INTEGRATIONS = +WooCommerce has enough power to be used straight out of the box and comes with the following payment gateways, shipping methods and third party integrations: * PayPal Standard * BACS @@ -40,6 +40,10 @@ WooCommerce has enough power to be used straight out of the box and comes with t * International delivery * Local delivery * Local Pickup +* Google Analytics +* Sharedaddy +* ShareThis +* ShareYourCart = EXTENSIONS = Need a specific payment gateway? Perhaps additional shipping methods? WooCommerce has a plethora of eCommerce extensions available to provide just that: [View our extensions](http://www.woothemes.com/extensions/woocommerce-extensions/ "eCommerce extensions for WooCommerce from WooThemes"). @@ -144,6 +148,8 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc == Changelog == = 1.5.5 = +* Feature - New integration section which allows other class-based integrations to be added. +* Feature - ShareYourCart integration built in. * Feature - is_sold_individually() function for disabling quantity inputs for products * Feature - Collect shipping address even when not required option * Feature - Stock display options - show no stock amount, low stock amount, or always show stock amount diff --git a/templates/cart/cart.php b/templates/cart/cart.php index 4eb8ef54808..7a2a6e4d518 100644 --- a/templates/cart/cart.php +++ b/templates/cart/cart.php @@ -104,7 +104,11 @@ global $woocommerce;
+ + + +
diff --git a/templates/single-product/share.php b/templates/single-product/share.php index a4f0c2421bc..2986b1bcfb0 100644 --- a/templates/single-product/share.php +++ b/templates/single-product/share.php @@ -1,25 +1,9 @@ - - -
- - -
- - - - - - - - - - -
- - \ No newline at end of file + \ No newline at end of file diff --git a/uninstall.php b/uninstall.php index 0c3b07d414e..c2d6609ea70 100644 --- a/uninstall.php +++ b/uninstall.php @@ -37,9 +37,11 @@ wp_delete_post( get_option('woocommerce_pay_page_id'), true ); wp_delete_post( get_option('woocommerce_thanks_page_id'), true ); // Tables -$wpdb->query("DROP TABLE IF EXISTS ".$wpdb->prefix."woocommerce_attribute_taxonomies"); -$wpdb->query("DROP TABLE IF EXISTS ".$wpdb->prefix."woocommerce_downloadable_product_permissions"); -$wpdb->query("DROP TABLE IF EXISTS ".$wpdb->prefix."woocommerce_termmeta"); +$wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "woocommerce_attribute_taxonomies" ); +$wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "woocommerce_downloadable_product_permissions" ); +$wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "woocommerce_termmeta" ); +$wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->base_prefix . "shareyourcart_tokens" ); +$wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->base_prefix . "shareyourcart_coupons" ); // Delete options $wpdb->query("DELETE FROM $wpdb->options WHERE option_name LIKE 'woocommerce_%';"); \ No newline at end of file diff --git a/woocommerce-functions.php b/woocommerce-functions.php index ba40a75b40b..9e2042f3451 100644 --- a/woocommerce-functions.php +++ b/woocommerce-functions.php @@ -1033,136 +1033,6 @@ function woocommerce_download_product() { endif; } -/** - * Google Analytics standard tracking - **/ -function woocommerce_google_tracking() { - global $woocommerce; - - if ( is_admin() || current_user_can('manage_options') || get_option('woocommerce_ga_standard_tracking_enabled') == "no" ) return; - - $tracking_id = get_option('woocommerce_ga_id'); - - if ( ! $tracking_id ) return; - - $loggedin = ( is_user_logged_in() ) ? 'yes' : 'no'; - if ( is_user_logged_in() ) { - $user_id = get_current_user_id(); - $current_user = get_user_by('id', $user_id); - $username = $current_user->user_login; - } else { - $user_id = ''; - $username = __('Guest', 'woocommerce'); - } - ?> - - user_login; - } else { - $user_id = ''; - $username = __('Guest', 'woocommerce'); - } - ?> - - payment_gateways = new WC_Payment_gateways(); // Payment gateways. Loads and stores payment methods $this->shipping = new WC_Shipping(); // Shipping class. loads and stores shipping methods $this->countries = new WC_Countries(); // Countries class + $this->integrations = new WC_Integrations(); // Integrations class - // Init shipping and payment gateways + // Init shipping, payment gateways, and integrations $this->shipping->init(); $this->payment_gateways->init(); + $this->integrations->init(); // Classes/actions loaded for the frontend and for ajax requests if ( ! is_admin() || defined('DOING_AJAX') ) {