diff --git a/admin/class-paypal-for-woocommerce-multi-account-management-admin.php b/admin/class-paypal-for-woocommerce-multi-account-management-admin.php index f2cf135..186ceeb 100644 --- a/admin/class-paypal-for-woocommerce-multi-account-management-admin.php +++ b/admin/class-paypal-for-woocommerce-multi-account-management-admin.php @@ -62,7 +62,6 @@ public function enqueue_styles() { * @since 1.0.0 */ public function enqueue_scripts($hook_suffix) { - $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min'; wp_register_script('jquery-blockui', WC()->plugin_url() . '/assets/js/jquery-blockui/jquery.blockUI' . $suffix . '.js', array('jquery'), '2.70', true); wp_enqueue_script('jquery-blockui'); @@ -95,7 +94,7 @@ public function angelleye_display_multi_account_list() { $selected_role = ''; $ec_site_owner_commission = 0; $microprocessing = get_post_meta($_GET['ID']); - echo '
+ echo '
'; $gateway_list = array(); if (class_exists('AngellEYE_Gateway_Paypal')) { @@ -353,8 +352,8 @@ public function angelleye_display_multi_account_list() { } } $option_four = !empty($microprocessing['woocommerce_paypal_express_api_condition_value']) ? $microprocessing['woocommerce_paypal_express_api_condition_value'][0] : ''; - $option_five = '

' . __('Select User Role', 'paypal-for-woocommerce-multi-account-management') . '

'; - $option_five .= ''; $option_five .= ''; $editable_roles = array_reverse(get_editable_roles()); foreach ($editable_roles as $role => $details) { @@ -367,8 +366,8 @@ public function angelleye_display_multi_account_list() { } $option_five .= ''; - $option_five_one = "

" . __('Select Author', 'paypal-for-woocommerce-multi-account-management') . "

"; - $option_five_one .= ""; $user_string = __( 'All', 'paypal-for-woocommerce-multi-account-management'); if( !empty($selected_user) ) { $user = get_user_by( 'id', $selected_user ); @@ -385,7 +384,7 @@ public function angelleye_display_multi_account_list() { $option_five_one .= ""; $option_five_one .= ""; $option_ten = '

' . __('Select Priority', 'paypal-for-woocommerce-multi-account-management') . '

'; - $option_ten .= ''; for ($x = 0; $x <= 100; $x++) { if ($x == 0) { $woocommerce_priority_text = $x . ' - Lowest'; @@ -428,20 +427,21 @@ public function angelleye_display_multi_account_list() { } $option_fourteen .= ''; - - $option_fifteen = '

' . __('Shipping Class', 'paypal-for-woocommerce-multi-account-management') . '

'; - $option_fifteen .= ''; + $classes = get_terms('product_shipping_class', array('hide_empty' => 1)); + $shipping_classes_array = !is_wp_error($classes) ? $classes : array(); + if ($shipping_classes_array) { + $shipping_class = !empty($shipping_class) ? $shipping_class : ''; + $option_fifteen .= ''; + foreach ($shipping_classes_array as $classes_key => $classes_name) { + $option_fifteen .= ''; + } } + $option_fifteen .= ''; } - $option_fifteen .= ''; - $option_eight = '

' . apply_filters('angelleye_multi_account_display_category_label', __('Product categories', 'paypal-for-woocommerce-multi-account-management')) . '

'; $option_eight .= ''; + $option_thirteen .= ''; if ($this->gateway_key == 'paypal_pro_payflow') { $option_twelve = '

' . __('Card Type', 'paypal-for-woocommerce-multi-account-management') . '

'; - $option_twelve .= ''; $option_twelve .= ""; $card_type_array = array('visa' => 'Visa', 'amex' => 'American Express', 'mastercard' => 'MasterCard', 'discover' => 'Discover', 'maestro' => 'Maestro/Switch'); foreach ($card_type_array as $card_key => $card_value) { @@ -512,7 +512,7 @@ public function angelleye_display_multi_account_list() { echo sprintf(' @@ -547,7 +547,7 @@ public function angelleye_multi_account_settings_fields() { ?>
@@ -698,7 +698,7 @@ public function angelleye_multi_account_ui() { ?>